From 48789b07ee80e8d2094ad74f2f401b70d13b35d2 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Tue, 24 Jan 2017 16:08:54 +0200 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20collectstatic=20?= =?UTF-8?q?=D1=81=20=D0=BC=D0=B0=D1=81=D1=82=D0=B5=D1=80=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=82=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proj/settings.py | 7 ++----- support/nginx.conf | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/proj/settings.py b/proj/settings.py index 8a9f363a..4e424535 100644 --- a/proj/settings.py +++ b/proj/settings.py @@ -90,10 +90,7 @@ USE_L10N = False USE_TZ = False -MEDIA_ROOT = os.path.join(SITE_ROOT, 'media/') CKEDITOR_UPLOAD_PATH = os.path.join(SITE_ROOT, 'media/upload') - - CKEDITOR_CONFIGS = { 'default': { 'toolbar': 'standart', @@ -119,11 +116,12 @@ CKEDITOR_CONFIGS = { } MEDIA_URL = '/media/' +MEDIA_ROOT = os.path.join(SITE_ROOT, 'media/') STATIC_URL = '/static/' STATIC_ROOT = os.path.join(SITE_ROOT, 'collected_static') STATICFILES_DIRS = ( - 'static', + os.path.join(SITE_ROOT, 'static'), ) STATICFILES_FINDERS = ( @@ -461,7 +459,6 @@ HAYSTACK_CONNECTIONS = { """ -THUMBNAIL_DEBUG = DEBUG THUMBNAIL_ENGINE = "proj.sorlengine.SorlEngine" THUMBNAIL_FORMAT = "PNG" diff --git a/support/nginx.conf b/support/nginx.conf index a3e287f3..63bd32d9 100644 --- a/support/nginx.conf +++ b/support/nginx.conf @@ -45,7 +45,7 @@ server { location /static { access_log off; expires max; - root /home/www/proj; + alias /home/www/proj/collected_static; } location /media { @@ -57,7 +57,7 @@ server { location /templates { access_log off; expires max; - root /home/www/proj/static; + alias /home/www/proj/collected_static/templates; } }