Django - ImproperlyConfigured: Module “django.contrib.auth.middleware”

后端 未结 13 752
我寻月下人不归
我寻月下人不归 2020-12-30 19:25

I\'m running a virtualenv to try to learn Django, but for whatever reason after installing Django and when I try to access the default Django start page, I get the following

13条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 20:00

    Make sure that you are running $ source bin/activate from the root of your project. Otherwise just go ahead and wipe out your project and make a new one. And if you want to be a django dev get ready to make lots of virtualenv's.

    When working on separate branches for example, it's sometimes easier to have two different virtualenv's, etc and when you move to the server you'll probably be running from a virtualenv as well. So it's a good idea to get good at making them and going through the steps.

    It's easy to copy files between directories with the $ cp command.

提交回复
热议问题