I
I
Ivan Soshnikov2018-07-11 22:11:27
Django
Ivan Soshnikov, 2018-07-11 22:11:27

How to configure Django through environment variables?

A long time ago, I left Django for Flask, and then I decided to tinker with django.
Flask is imperative, it's somehow clearer how everything works - you control everything yourself.
Junga is declarative and somewhat more difficult to deal with the details.
The output requires a docker image of the django application, which is configured by environment variables.
In general, I had several configuration layers in the flask and I myself steered the configuration loading sequence: object, file, environment variables
How are such things implemented in jung? Or is settings.py the only option?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question