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
Post a Comment