GithubHelp home page GithubHelp logo

Centos Installation about django-swiftbrowser HOT 7 OPEN

cschwede avatar cschwede commented on September 4, 2024
Centos Installation

from django-swiftbrowser.

Comments (7)

sudharani-m avatar sudharani-m commented on September 4, 2024

Can anyone help me here?

from django-swiftbrowser.

manoj-ms avatar manoj-ms commented on September 4, 2024

from django-swiftbrowser.

sudharani-m avatar sudharani-m commented on September 4, 2024

Hi Manoj, I tired different options. My url.py I have updated to include swift urls. However I getting import error. Pls can you help me here?

from django.conf.urls import url
from django.contrib import admin

urlpatterns = [
url(r'^admin/', admin.site.urls, swiftbrowser.urls),
]

import swiftbrowser.urls
urlpatterns = [
url(r'^', include(swiftbrowser.urls),
]

python manage.py runserver
Performing system checks...

Unhandled exception in thread started by <function wrapper at 0x7f08956d30c8>
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run
self.check(display_num_errors=True)
File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 374, in check
include_deployment_checks=include_deployment_checks,
File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 361, in _run_checks
return checks.run_checks(**kwargs)
File "/usr/lib64/python2.7/site-packages/django/core/checks/registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "/usr/lib64/python2.7/site-packages/django/core/checks/urls.py", line 14, in check_url_config
return check_resolver(resolver)
File "/usr/lib64/python2.7/site-packages/django/core/checks/urls.py", line 24, in check_resolver
for pattern in resolver.url_patterns:
File "/usr/lib64/python2.7/site-packages/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/lib64/python2.7/site-packages/django/urls/resolvers.py", line 313, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib64/python2.7/site-packages/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/lib64/python2.7/site-packages/django/urls/resolvers.py", line 306, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/lib/python2.7/site-packages/swiftbrowser/urls.py", line 1, in
from django.conf.urls import patterns, url
ImportError: cannot import name patterns

from django-swiftbrowser.

manoj-ms avatar manoj-ms commented on September 4, 2024

from django-swiftbrowser.

sudharani-m avatar sudharani-m commented on September 4, 2024

Hi Manoj, Can I set up some quick call to discuss on this?

from django-swiftbrowser.

manoj-ms avatar manoj-ms commented on September 4, 2024

from django-swiftbrowser.

hoogenm avatar hoogenm commented on September 4, 2024

The import patterns ImportError might be caused by an incompatibility with django 1.10. You could try pip install django==1.09 to make sure django 1.09 is installed (then try to run swiftbrowser again). For me that worked to get swiftbrowser running without import errors (although I get an issue similar to #15).

from django-swiftbrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.