Django deployment problem in Apache/mod_wsgi. ImportError: Could not import settings 'site.settings'

后端 未结 5 1557
野性不改
野性不改 2021-01-05 09:15

When I\'m executing

django-admin.py startproject site

it works.
But if I\'m only copying site folder it doesn\'t work.
Why?

5条回答
  •  青春惊慌失措
    2021-01-05 09:57

    Ensure you have read:

    http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango

    and also watch this presentation:

    http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations

    Your problem is going to be a sys.path or permissions issue which are both covered by the above.

    That you are using 'maximum-requests=200 stack-size=524288' options to WSGIDaemonProcess directive makes me question whether you have referred to the mainstream documentation as basic instructions don't tell you to use them. Instead looks like you have used some arbitrary persons blog post for how to set it up, or relying on some folklore given to you on an IRC channel. :-)

提交回复
热议问题