Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change default database settings to postgres

Krzysztof Wolskie297994b2112
diff --git a/saleor/settings.py b/saleor/settings.py
index e8cc19122b..3f9c17cff3 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -32,9 +32,10 @@ if os.environ.get('REDIS_URL'):
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': os.environ.get('REDIS_URL')}
-SQLITE_DB_URL = 'sqlite:///' + os.path.join(PROJECT_ROOT, 'dev.sqlite')
DATABASES = {
- 'default': dj_database_url.config(default=SQLITE_DB_URL, conn_max_age=600)}
+ 'default': dj_database_url.config(
+ default='postgres://saleor:saleor@localhost:5432/saleor',
+ conn_max_age=600)}
TIME_ZONE = 'America/Chicago'