Commit 60b12e0c authored by Maxime Bombar's avatar Maxime Bombar

Corrige settings.py pour galois

parent d5681976
......@@ -7,10 +7,8 @@ import platform
import os.path
from django.utils.translation import ugettext_lazy as _
#: Est-on sur la note de dev ?
DEV = (socket.gethostname() in ["bde-test", "bde-test-virt"])
#: Est-on sur la note de prod ?
PROD = (socket.gethostname() in ["bde2", "bde2-virt",])
DEV = True
PROD = False
# Sur quel système la note tourne-t-elle ?
SYSTEM, NODE_NAME, KERNEL, KERNEL_VERSION, __, __ = platform.uname()
......@@ -43,7 +41,7 @@ NOTE_ROOT_URL = r'/note/'
NOTE_LOGIN_URL = NOTE_ROOT_URL
#: Chemin absolu du répertoire racine du client django
#: (Le os.path.join est là pour assurer la présence du trailing slash)
#: (Le os.path.join est là pour assurer la présence du trailing slash)
ROOT_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "")
PROJECT_PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
......@@ -121,7 +119,7 @@ MEDIA_URL = os.path.join(NOTE_ROOT_URL, 'media/')
#: Don't put anything in this directory yourself; store your static files
#: in apps' "static/" subdirectories and in STATICFILES_DIRS.
#: Example: "/home/media/media.lawrence.com/static/"
#STATIC_ROOT = ROOT_PATH + 'static/'
STATIC_ROOT = '/home/note/note-kfet-2015-django/note/static/'
#: URL prefix for static files.
#: Example: "http://media.lawrence.com/static/"
......@@ -129,7 +127,7 @@ STATIC_URL = r'/static/'
#: Additional locations of static files
STATICFILES_DIRS = (
os.path.join(PROJECT_PATH, '../static/'),
'/home/note/note-kfet-2015-django/static/',
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
......
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