D
D
dvarh2014-10-12 19:52:14
Django
dvarh, 2014-10-12 19:52:14

How can I set django settings for connecting to a database through a web interface?

How can I set up a connection to the database and set the superuser at the initial launch of the django application through the web interface? By analogy with the initial setup of owncloud, ttrss and subsonic.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
webbus, 2014-10-12
@webus

It is obvious to request these parameters from the user and write them to some file. And then at runtime, before starting work with the database, substitute these parameters in the settings for your database.

F
FeNUMe, 2014-10-12
@FeNUMe

No way. Out of the box in Django, there is no such thing (and should not be). Write it yourself, for example, using middleware and using () or another option suitable for your tasks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question