Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django change settings at runtime

import django.conf as conf

conf.settings.DATABASES['default']['NAME'] = 'novo_banco'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #change #settings #runtime
ADD COMMENT
Topic
Name
2+9 =