150
So, I actually ran into a similar problem. Coincidentally after you posted in the issues for django-stronghold. The issue is in fact due to a missing setting in django-debug-toolbar.
The setting you are missing is:
DEBUG_TOOLBAR_PATCH_SETTINGS = False
It will work with runserver, but if you try to run it with honcho, or gunicorn, or anything else that uses the WSGI interface it blows up.
EDIT: as mentioned below by @japhyr, its useful to check out the explicit setup instructions: http://django-debug-toolbar.readthedocs.org/en/1.0/installation.html#explicit-setup
14
I used reverse instead of reverse_lazy to define the url parameter of a RedirectView.
class YourRedirectView(RedirectView):
url = reverse('reversed_url')
Since the urls.py has not been initialized yet the error is coming up. Just use:
class YourRedirectView(RedirectView):
url = reverse_lazy('reversed_url')
- [Django]-Django: sqlite for dev, mysql for prod?
- [Django]-Django Footer and header on each page with {% extends }
- [Django]-Loading initial data with Django 1.7+ and data migrations
2
Iβve suffered a similar problem after upgrading from django 1.5 to 1.6. Iβm not sure if my experience is the same as yours.
First, can you scroll up the errors, and check the admin.autodiscover()
is whatβs generating the problem? Alternatively comment out this line and see if a page will load.
The problem I found was related to wsgi.py
. Is it possible for you to post this file?
- [Django]-Django Rest Framework: Disable field update after object is created
- [Django]-How do you use the django-filter package with a list of parameters?
- [Django]-How to customize user profile when using django-allauth
0
Iβm having a very similar problem. My project works fine on the test server, but when I try to deploy to gunicorn I get the same ImproperlyConfigured error.
If I comment out the urls which include another url file (i.e. url(r'^admin/', include(admin.site.urls)),
then the rest of my urls work fine.
[UPDATE] I was able to further narrow it down to only one of my included url files, but couldnβt find anything special about it. However, setting Debug=False
in my settings.py
file seems to have fixed for me.
- [Django]-How to revert the last migration?
- [Django]-Write only, read only fields in django rest framework
- [Django]-Using Python's os.path, how do I go up one directory?
0
Also make sure you have urlpatterns
in the file you are including and that it is spelt correctly
- [Django]-Linking to the django admin site
- [Django]-How can I handle Exceptions raised by dango-social-auth?
- [Django]-Django rest framework serializing many to many field