Move db settings to defaults
[redakcja.git] / src / redakcja / settings / defaults.py
index 297cd42..6e88084 100644 (file)
@@ -7,12 +7,11 @@ PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
 
 DATABASES = {
     'default': {
 
 DATABASES = {
     'default': {
-        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME': os.path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3.
-        'USER': '',                      # Not used with sqlite3.
-        'PASSWORD': '',                  # Not used with sqlite3.
-        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
-        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
+        'ENGINE': 'django.db.backends.postgresql',
+        'HOST': 'db',
+        'USER': os.environ.get('POSTGRES_USER'),
+        'PASSWORD': os.environ.get('POSTGRES_PASSWORD'),
+        'NAME': os.environ.get('POSTGRES_USER'),
     }
 }
 
     }
 }
 
@@ -78,3 +77,4 @@ LEGIMI_USERNAME = None
 LEGIMI_PASSWORD = None
 LEGIMI_PUBLISHER_ID = None
 
 LEGIMI_PASSWORD = None
 LEGIMI_PUBLISHER_ID = None
 
+MIN_COVER_SIZE = (800, 800)