Comments (7)
Can anyone help me here?
from django-swiftbrowser.
from django-swiftbrowser.
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.
from django-swiftbrowser.
Hi Manoj, Can I set up some quick call to discuss on this?
from django-swiftbrowser.
from django-swiftbrowser.
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)
- Make swiftbrowser usable without account ownership HOT 2
- May I inquire about Formpost & ACLS from you? HOT 5
- OpenStack Juno
- tempurl or upload obj direct to 127.0.0.1 HOT 1
- Return 'Unauthorized' after uploading object HOT 1
- It returns 400 after setting up swift HOT 5
- not able to share container to another user HOT 4
- 500 on Upload and Download HOT 3
- Select storage policy when creating new container
- Step-wise installation procedure. HOT 2
- Supply username and password in settings
- Cannot connect from host machine HOT 1
- TypeError while pressinf the (+) upload button on any container HOT 1
- Bad Request(400) when I access on browser. HOT 3
- INSTALLED_APPS and django.contrib.admin HOT 1
- Cant upload file through django browser in container HOT 18
- Add pagination to container and object listing HOT 4
- Add metadata editor HOT 1
- Use Bootstrap V3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-swiftbrowser.