Django.conf module not found, why?

后端 未结 4 1508
清酒与你
清酒与你 2021-01-05 14:34

I\'m trying to install the Evennia Python MUD and when I get to the python manage.py syncdb command I get the below message... any ideas on why?

Traceback (m         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 14:43

    An ImportError exception happens when Python cannot import a particular module. Usually it's because that module doesn't appear in your PYTHONPATH environment variable.

    So, in your case, you need to add the path to django.conf to your PYTHONPATH.

    Here's a great write-up on several different ways of accomplishing this:

    http://docs.webfaction.com/software/python.html#importerror

    Edited: corrected typo--django.conf should be added to the path, not evennia.py, thanks Yuji.

提交回复
热议问题