diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-07 21:03:11 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-07 21:03:11 +0100 |
commit | 2e21f37eaf031300b4f7ec0626333255f16e7bd0 (patch) | |
tree | 420922015307fde6156345a942f383313f7df180 /config/settings/base.py | |
parent | 2947010fe6fe3d54019164f9d8213a2fede55a45 (diff) |
big update! got working on gcloud and with log and new navbar
Diffstat (limited to 'config/settings/base.py')
-rw-r--r-- | config/settings/base.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config/settings/base.py b/config/settings/base.py index c699798..e3a93a0 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -1,6 +1,7 @@ """ Base settings to build other settings files upon. """ +import os import environ @@ -40,8 +41,12 @@ LOCALE_PATHS = [ROOT_DIR.path("locale")] # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#databases -DATABASES = {"default": env.db("DATABASE_URL", default="postgres:///ctrack")} -DATABASES["default"]["ATOMIC_REQUESTS"] = True +import pymysql # noqa: 402 +pymysql.version_info = (1, 4, 6, 'final', 0) # change mysqlclient version +pymysql.install_as_MySQLdb() + +# DATABASES = {"default": env.db("DATABASE_URL", default="postgres:///ctrack")} +# DATABASES["default"]["ATOMIC_REQUESTS"] = True # URLS # ------------------------------------------------------------------------------ @@ -68,7 +73,7 @@ DJANGO_APPS = [ "django.contrib.sessions", "django.contrib.sites", "django.contrib.messages", - "django_pdb", ## this needs to be before django.contrib.staticfiles according to its docs + # "django_pdb", ## this needs to be before django.contrib.staticfiles according to its docs "django.contrib.staticfiles", # "django.contrib.humanize", # Handy template tags "django.contrib.admin", |