D
D
Dmitry Filatov2014-09-10 20:52:22
Django
Dmitry Filatov, 2014-09-10 20:52:22

How to manage application settings from the admin panel?

There is an application in Django. It has an email parameter. All notifications are sent to this email. Now the mail is assigned in the code.
Advise methods or tools on how to bring the setting of this parameter to the admin panel. I do not want to fence the model.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Vasiliev, 2014-09-10
@qmax

As far as I understand, without a normal model with all the meta and manager, you can’t put anything in the admin panel.

M
marazmiki, 2014-09-11
@marazmiki

Look at django-dbsettings ( pypi , github ) , won't it work?

I
Ilya, 2014-09-12
@FireGM

If it is not displayed in all views, then create a model with emailfield. And just take it from the database and transfer it to the template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question