Sak*_*vam 3 django environment-variables django-rest-framework
I'm running two django application in same server. Server setup and multi settings file are created.
But I have DJANGO_SETTINGS_MODULE env variable as dynamic and I need to set two different values.
If I change DJANGO_SETTINGS_MODULE variable name to something else, i'm getting error.
Can anyone suggest some solution for this problem.
gunicorn例如,如果使用,则可以使用--settings=your_project.settings.production参数传递每个gunicorn实例的设置。
如果运行应用程序,则可以执行相同的操作runserver(这对于生产环境而言是一个不好的选择)。
| 归档时间: |
|
| 查看次数: |
35 次 |
| 最近记录: |