Opened 11 years ago
Closed 11 years ago
#22930 closed Uncategorized (duplicate)
AttributeError: 'module' object has no attribute 'models' when debug = false
| Reported by: | Owned by: | Alan Campos | |
|---|---|---|---|
| Component: | Uncategorized | Version: | 1.4 |
| Severity: | Normal | Keywords: | AttributeError |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
When I set variable Debug to False in django==1.4.5, the server throws me a 500 error. I don't know what I'm doing wrong. I f I set to True it doesn't have any problem. My allowed hosts is like this
ALLOWED_HOSTS = [
'domain name',
'ip-address', # Allow domain and subdomains
]
My apache configuration is like this:
<VirtualHost *:80>
WSGIDaemonProcess Vermonti python-path=/srv/www/app:/srv/www/app/ENV/lib/python2.7/site-packages
WSGIProcessGroup app
WSGIScriptAlias / /srv/www/Vermonti/app/wsgi.py
ServerName domain name
DocumentRoot /srv/www/app
<Directory /srv/www/app>
Order allow,deny
Allow from all
</Directory>
SetEnv DJANGO_SETTINGS_MODULE app.settings
</VirtualHost>
Change History (1)
comment:1 by , 11 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I suspect this is some loading issue similar to #10405. It's probably fixed in 1.7 by the app loading refactor. Please reopen if you can test there and it's still an issue, although I think it's more likely you should use TicketClosingReasons/UseSupportChannels to get help.
Also, note that 1.4.5 has known security issues and you should upgrade to the latest minor release (1.4.13 as of this writing) ASAP.