python - How to view my local database name in Django -


i trying find local database name is, isn't directly stated in settings file. have listed.

databases = {     'default': dj_database_url.config(         default='sqlite:////{0}'.format(os.path.join(base_dir, 'db.sqlite3'))     ) } 

i don't want change because bit freaked out change have. way through shell?

your config should this:

databases = {         'default': {             'engine': 'django.db.backends.sqlite3',             'name': os.path.join(base_dir, 'db.sqlite3'),         } } 

as can see, database name db.sqlite3.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -