Created
June 10, 2015 21:11
-
-
Save VerosK/5a832a9c4e66e573101c to your computer and use it in GitHub Desktop.
Check Django DB vendor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import connection | |
connection.vendor | |
# 'postgresql' or 'sqlite' | |
# via: http://stackoverflow.com/questions/18846174/django-detect-database-backend/18849255#18849255 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment