ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured

后端 未结 5 1800
别跟我提以往
别跟我提以往 2021-02-07 06:58

I\'m trying to make MongoDB and Django get on with each other the way I want them to. That\'s the error I\'m getting when trying to import viewsets from rest_framework_mongoengi

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 07:48

    If you are using windows run

    set DJANGO_SETTINGS_MODULE= .settings
    

    (or) navigate to the folder containing settings file in terminal and run

    set  DJANGO_SETTINGS_MODULE=settings
    

提交回复
热议问题