ImportError: Could not import settings

前端 未结 6 1001
一生所求
一生所求 2020-12-03 01:11

I am trying to develop an sample project in Django and getting errors when I run the syncdb command.

This is how my project structure looks like:

/Users/djan

6条回答
  •  青春惊慌失措
    2020-12-03 01:39

    Review hour /etc/apache2/httpd.conf file; you must include the WSGIPythonPath directive, to indicate the folder which contains your Django project (manage.py file), like:

    WSGIPythonPath /home/user/Projects/Django/MyProject

    also if you used some weird port in your VirtualHost, specify if for listening:

    Listen 90

    Hope this helps somebody

提交回复
热议问题