Commit 88ad0861 authored by Administrator's avatar Administrator

[FIX] Settings for production.

parent 9a0e4e1c
......@@ -10,7 +10,7 @@ https://docs.djangoproject.com/en/1.6/ref/settings/
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
PROJECT_PATH = os.path.join(BASE_DIR, os.pardir)
PROJECT_PATH = os.path.abspath(PROJECT_PATH)
......@@ -27,13 +27,22 @@ CELERY_IMPORTS=("node.models",)
SECRET_KEY = 'bt)3n9v&a02cu7^^=+u_t2tmn8ex5fvx8$x4r*j*pb1yawd+rz'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
TEMPLATE_DEBUG = True
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates'),
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes
# Don't forget to use absolute paths, not relative paths.
'/srv/gargantext/templates',
#import os.path
#
#TEMPLATE_DIRS = (
# os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'),
#)
)
......@@ -112,11 +121,11 @@ USE_TZ = True
ROOT_URLCONF = 'gargantext_web.urls'
STATIC_ROOT = os.path.join(PROJECT_PATH, 'static')
STATIC_ROOT = '/var/www/gargantext/static/'
STATIC_URL = '/static/'
# MEDIA_ROOT = '/var/www/gargantext/media'
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
MEDIA_ROOT = '/var/www/gargantext/media'
#MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
MEDIA_URL = '/media/'
......@@ -127,8 +136,11 @@ STATICFILES_FINDERS = (
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)
#os.path.join(BASE_DIR, "static"),
'/srv/gargantext/static',
#'/var/www/www/alexandre/media',
#'/var/www/alexandre.delanoe.org/',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment