» What could cause a Django error when debug=False that isnt there when debug=True
What could cause a Django error when debug=False that isnt there when debug=True
|February 11, 2011
Posted by forumadmin
Using the development server, it works with debug=True or False.
In production, everything works if debug=True, but if debug=False, I get a 500 error and the apache logs end with an import error: “ImportError: cannot import name Project”.
Nothing in the import does anything conditional on debug – the only code that does is whether the development server should serve static files or not (in production, apache should handle this – and this is tested separately and works fine).
More Related Questions
- How to debug in Django, the good way? So, I started learning to code in Python and later Django. The first times it was hard looking at tracebacks and actually figure out what I did wrong and where the syntax error was. Some […]
- Adding django site to apache2 on ubuntu when already hosting rstudio and rapache I've built a django site for managing some of the data rstudio and rapache use. I'd like to deploy it to the same box, either on a different port or on a different directory, but my […]
- Apache mod_wsgi: PermissionError when trying to access a page Trying to get Django running on this Apache box, using Python 3.3
httpd starts without fault but as soon as I try to access localhost, I am thrown a 500 error. The Apache logs say […]
- django 1.6.5 + python3 wsgi problems When I try to run my django project as a wsgi application, I get the following error in my app's error log:
Exception ignored in: <module 'threading' from […]
- How do I modify sys.path from .htaccess to allow mod_python to see Django? The host I'm considering for hosting a Django site has mod_python installed, but does not have Django. Django's INSTALL file indicates that I can simply copy the django directory to […]
- Running two seperate Django site from one apache I am running Ubuntu 14.04 on my notebook and I am using Django 1.6.4 (with virtualenv) together with Apache 2.4.7.
I would like to access two django projects through my local apache. […]
- Running Django with FastCGI or with mod_python which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? Asked By - daniels Read Answers
- django request.POST contains <could not parse> I am having a django form to get the username,password. when the user posts data, i see that the post dictionary contains the following(traceback),
Traceback (most recent call last):
- Popular techniques to debug .htaccess I'm a self-taught coder and I like to debug by echoing suspicious variables and commenting out code.
Lately, I've had to learn more about the .htaccess file. I need it to do things […]
- Restarting a Django application running on Apache + mod_python I'm running a Django app on Apache + mod_python. When I make some changes to the code, sometimes they have effect immediately, other times they don't, until I restart Apache. However I […]