-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to separate INSTALLED_APPS or dev and prod #216
Comments
dev.env
prod.env
Personally INSTALLED_APPS is one of the things I leave to the |
what does this mean. So how you do it then |
I have multiple settings files e.g. see: https://medium.com/django-musings/the-multiple-settings-files-pattern-a6e6066d2a69 |
but then its better to have one settings.py and use django-environ and different .env files |
That's up to you- I prefer a mix of approaches. I only use Django environ to keep sensitive information out of the repository and to read client-specific details from client.env files. Differences in app environments I leave up to separate settings.py files. |
@sant527 @ptink nice discussion, I fought with this problem a lot of time and I tried always to keep one If I can help you with this I suggest using something like
in this way, we respecting the A side effect could be if you try to set |
@joke2k what do you mean by
|
@sant527 In this case, using my trick to fast exchange environment with
|
In django development i am planning to install django-extensions app
I have to add it to the INSTALLED_APPS.
Now how to use django-envion's .env file which will pass INSTALLED_APPS
because i will have a different .env files for dev and prod
The text was updated successfully, but these errors were encountered: