2

I'm trying to call environment specific settings in django.

I found that you can do something close in django admin according to: https://docs.djangoproject.com/en/2.0/topics/settings/#the-django-admin-utility

I tried this with the manage.py:

python3 manage.py runserver --settings=mysite.settings.prod_settings

I get the error:

ModuleNotFoundError: No module named 'mysite.settings.prod_settings'; 'mysite.settings' is not a package

How can I call environment specific settings?

Thanks

Atma
  • 29,141
  • 56
  • 198
  • 299

1 Answers1

5

I changed the command to:

python3 manage.py runserver --settings=mysite.prod_settings

because I have a file called prod_settings.py and it worked.

Atma
  • 29,141
  • 56
  • 198
  • 299