Opened 10 years ago

Last modified 10 years ago

#22930 closed Uncategorized

AttributeError: 'module' object has no attribute 'models' when debug = false — at Initial Version

Reported by: alan@… 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

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 (0)

Note: See TracTickets for help on using tickets.
Back to Top