feat: added psycopg2 to deps and mimetypes to settings.py

This commit is contained in:
Rushil Umaretiya 2021-02-15 15:19:27 -05:00
parent f2af8f2399
commit f4ecc6d3d3
3 changed files with 26 additions and 3 deletions

View File

@ -12,6 +12,7 @@ requests = "*"
django-secrets = "*"
whitenoise = "*"
gunicorn = "*"
psycopg2 = "*"
[requires]
python_version = "3.8"

23
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "85fc70f63db494608b7c3266817b54c18605d0ef7890e324de55aa2fa506048a"
"sha256": "063c73d58afc4c79cdac1a99508cc3adf9f48795c962e79296b2587aa53fc690"
},
"pipfile-spec": 6,
"requires": {
@ -85,6 +85,27 @@
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==2.10"
},
"psycopg2": {
"hashes": [
"sha256:00195b5f6832dbf2876b8bf77f12bdce648224c89c880719c745b90515233301",
"sha256:068115e13c70dc5982dfc00c5d70437fe37c014c808acce119b5448361c03725",
"sha256:26e7fd115a6db75267b325de0fba089b911a4a12ebd3d0b5e7acb7028bc46821",
"sha256:2c93d4d16933fea5bbacbe1aaf8fa8c1348740b2e50b3735d1b0bf8154cbf0f3",
"sha256:56007a226b8e95aa980ada7abdea6b40b75ce62a433bd27cec7a8178d57f4051",
"sha256:56fee7f818d032f802b8eed81ef0c1232b8b42390df189cab9cfa87573fe52c5",
"sha256:6a3d9efb6f36f1fe6aa8dbb5af55e067db802502c55a9defa47c5a1dad41df84",
"sha256:a49833abfdede8985ba3f3ec641f771cca215479f41523e99dace96d5b8cce2a",
"sha256:ad2fe8a37be669082e61fb001c185ffb58867fdbb3e7a6b0b0d2ffe232353a3e",
"sha256:b8cae8b2f022efa1f011cc753adb9cbadfa5a184431d09b273fb49b4167561ad",
"sha256:d160744652e81c80627a909a0e808f3c6653a40af435744de037e3172cf277f5",
"sha256:d5062ae50b222da28253059880a871dc87e099c25cb68acf613d9d227413d6f7",
"sha256:f22ea9b67aea4f4a1718300908a2fb62b3e4276cf00bd829a97ab5894af42ea3",
"sha256:f974c96fca34ae9e4f49839ba6b78addf0346777b46c4da27a7bf54f48d3057d",
"sha256:fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543"
],
"index": "pypi",
"version": "==2.8.6"
},
"pytz": {
"hashes": [
"sha256:83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da",

View File

@ -98,7 +98,7 @@ if DEBUG:
else:
DATABASES = {
'default': {
"ENGINE": "django_prometheus.db.backends.postgresql",
"ENGINE": "django.db.backends.postgresql",
"NAME": os.environ["DIRECTOR_DATABASE_NAME"],
"USER": os.environ["DIRECTOR_DATABASE_USERNAME"],
"PASSWORD": os.environ["DIRECTOR_DATABASE_PASSWORD"],
@ -159,7 +159,6 @@ MEDIA_URL = '/media/'
LOGIN_REDIRECT_URL = 'blog-home'
LOGIN_URL = 'login'
# Email
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
@ -170,3 +169,5 @@ EMAIL_PORT = 587
EMAIL_HOST_USER = secrets.EMAIL_USER
EMAIL_HOST_PASSWORD = secrets.EMAIL_PASSWORD
import mimetypes
mimetypes.add_type("text/css", ".css", True)