Задать вопрос

Тел: +7 965 3737 888

500

Просмотров

0

Ответов

showing environment variables in the django admin

Having things like DATABASE_NAME in the admin interface is handy if you're working on development and deployment systems.

Replace the template admin/base_site.html with the template code.

The variables to be displayed in the admin need to be exported into the environment before running the server.

The python code shown is an example of a wsgi handler, and the same format can be used in manage.py for the development server.

Вопрос полезен? Да0/Нет0
file_2335.py(1.5Кб)
None