]> git.0d.be Git - chloro.git/blobdiff - chloro/settings.py
do not include non-feed posts on homepage
[chloro.git] / chloro / settings.py
index dffc6df025843b58f75e8ed522d6dabbf798d695..11c840f321922bfeb943b4fc5031475b103f59d4 100644 (file)
@@ -33,6 +33,8 @@ ALLOWED_HOSTS = []
 
 # Application definition
 
+DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
+
 INSTALLED_APPS = [
     'django.contrib.auth',
     'django.contrib.contenttypes',
@@ -41,6 +43,7 @@ INSTALLED_APPS = [
     'django.contrib.staticfiles',
     'ckeditor',
     'gadjo',
+    'sorl.thumbnail',
     'taggit',
     'chloro.phyll',
 ]
@@ -80,7 +83,10 @@ WSGI_APPLICATION = 'chloro.wsgi.application'
 # https://docs.djangoproject.com/en/1.11/ref/settings/#databases
 
 DATABASES = {
-    'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'chloro',},
+    'default': {
+        'ENGINE': 'django.db.backends.postgresql',
+        'NAME': 'chloro',
+    },
 }
 
 
@@ -88,10 +94,18 @@ DATABASES = {
 # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
 
 AUTH_PASSWORD_VALIDATORS = [
-    {'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',},
-    {'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',},
-    {'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',},
-    {'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',},
+    {
+        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
+    },
+    {
+        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
+    },
+    {
+        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
+    },
+    {
+        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
+    },
 ]
 
 LOGIN_REDIRECT_URL = '/'
@@ -110,6 +124,7 @@ USE_L10N = True
 
 USE_TZ = True
 
+LOCALE_PATHS = (os.path.join(BASE_DIR, 'chloro', 'locale'),)
 
 # Static files (CSS, JavaScript, Images)
 # https://docs.djangoproject.com/en/1.11/howto/static-files/
@@ -135,7 +150,9 @@ CKEDITOR_CONFIGS = {
             ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
             ['Link', 'Unlink'],
             ['Image', '-', 'HorizontalRule'],
-            ['RemoveFormat',],
+            [
+                'RemoveFormat',
+            ],
             ['Maximize'],
         ],
         'toolbar': 'Own',
@@ -144,6 +161,9 @@ CKEDITOR_CONFIGS = {
     },
 }
 
+SITE_AUTHOR = 'Frédéric Péters'
+SITE_TITLE = 'Coin web de Frédéric Péters'
+
 local_settings_file = os.environ.get(
     'CHLORO_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py')
 )