I need to change the database configuration used on application execution, depending on the environment. I have a configuration for DB Has followed:
database = {'localhost': {'engine': 'django.db.backends.sqlite3', 'NAME': os.path.join (PROJECT_VAR), ' Data / localhost Skylight 3 '),},' Test ': {' Engine ':' DJG DB Backend MSWL ',' NAME ':' Newmaj ',' User ':' Navamaj ',' Password ':' Novamaj ',' Host ':' ',' Port ':' ',' ',' Production ': {' Engine ':' Dijanga DB Backend 'Set database database', 'password database': 'set database user password', 'HOST': '', 'PORT': '', },}
Try it in wsgi.py and the management.py none of them work in set up.
This should go to your projects 'settings.py' file -
Comments
Post a Comment