|
@@ -3,7 +3,7 @@
|
|
import os,sys
|
|
import os,sys
|
|
from datetime import timedelta
|
|
from datetime import timedelta
|
|
import django
|
|
import django
|
|
-import dj_database_url
|
|
|
|
|
|
+
|
|
from django.utils.encoding import force_str
|
|
from django.utils.encoding import force_str
|
|
django.utils.encoding.force_text = force_str
|
|
django.utils.encoding.force_text = force_str
|
|
|
|
|
|
@@ -138,17 +138,15 @@ USE_TZ = True
|
|
|
|
|
|
DATABASES = {
|
|
DATABASES = {
|
|
'default': {
|
|
'default': {
|
|
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
|
|
- 'NAME': 'dfi11snf6cpamj',
|
|
|
|
- 'USER' : 'qvkowaptdjfexz',
|
|
|
|
- 'PASSWORD' : '3ef6f3a16c918da406cd2b388042a45080ff7f9dd10d5f9cc1df0ec0eca8ab7a',
|
|
|
|
- 'HOST' : 'ec2-52-48-159-67.eu-west-1.compute.amazonaws.com',
|
|
|
|
- 'PORT' : '5432',
|
|
|
|
|
|
+ 'ENGINE': 'django.db.backends.postgresql',
|
|
|
|
+ 'NAME': 'store',
|
|
|
|
+ 'USER': 'store',
|
|
|
|
+ 'PASSWORD': 'store1234',
|
|
|
|
+ 'HOST': '188.72.209.29',
|
|
|
|
+ 'PORT': '',
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-DATABASE_URL = "postgres://qvkowaptdjfexz:3ef6f3a16c918da406cd2b388042a45080ff7f9dd10d5f9cc1df0ec0eca8ab7a@ec2-52-48-159-67.eu-west-1.compute.amazonaws.com:5432/dfi11snf6cpamj"
|
|
|
|
-DATABASES['default'] = dj_database_url.config(conn_max_age=600, ssl_require=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|