Opened 5 years ago

Closed 5 years ago

#22930 closed Uncategorized (duplicate)

AttributeError: 'module' object has no attribute 'models' when debug = false

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 (last modified by Tim Graham)

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

    '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/
    ServerName domain name
    DocumentRoot /srv/www/app

    <Directory /srv/www/app>
        Order allow,deny
        Allow from all
    SetEnv DJANGO_SETTINGS_MODULE app.settings

Change History (1)

comment:1 Changed 5 years ago by Tim Graham

Description: modified (diff)
Resolution: duplicate
Status: newclosed

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.

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