src/iconolab_mcc/settings/dev.py.tmpl
changeset 4 9cc447bd5280
parent 3 12fb6a535aa6
child 27 8425a9b22dad
equal deleted inserted replaced
3:12fb6a535aa6 4:9cc447bd5280
    25 # dev_mode useful for src_js
    25 # dev_mode useful for src_js
    26 # We need to add 'iconolab.utils.context_processors.env' to context processor
    26 # We need to add 'iconolab.utils.context_processors.env' to context processor
    27 
    27 
    28 # When JS_DEV_MODE is True, the Webpack dev server should be started
    28 # When JS_DEV_MODE is True, the Webpack dev server should be started
    29 JS_DEV_MODE = False
    29 JS_DEV_MODE = False
    30 # STATICFILES_DIRS = [
    30 STATICFILES_DIRS = [
    31 #     os.path.join(BASE_DIR, 'static'),
    31     os.path.join(BASE_DIR, 'static'),
    32 #     os.path.join(BASE_DIR, 'media'),
    32 ]
    33 # ]
       
    34 
    33 
    35 if JS_DEV_MODE:
    34 if JS_DEV_MODE:
    36     SRC_JS_PATH = os.path.join(BASE_DIR, '..', '..', 'src_js')
    35     SRC_JS_PATH = os.path.join(BASE_DIR, '..', '..', 'src_js')
    37     STATICFILES_DIRS.append(SRC_JS_PATH)
    36     STATICFILES_DIRS.append(SRC_JS_PATH)
    38 
    37 
    71 SITE_ID = 1
    70 SITE_ID = 1
    72 
    71 
    73 TEMPLATES = [
    72 TEMPLATES = [
    74     {
    73     {
    75         'BACKEND': 'django.template.backends.django.DjangoTemplates',
    74         'BACKEND': 'django.template.backends.django.DjangoTemplates',
    76         'DIRS': [os.path.join(BASE_DIR,'iconolab_mcc','templates')],
    75         'DIRS': [os.path.join(BASE_DIR,'../iconolab_mcc','templates')],
    77         'APP_DIRS': True,
    76         'APP_DIRS': True,
    78         'OPTIONS': {
    77         'OPTIONS': {
    79             'context_processors': [
    78             'context_processors': [
    80                 'django.template.context_processors.debug',
    79                 'django.template.context_processors.debug',
    81                 'django.template.context_processors.request',
    80                 'django.template.context_processors.request',