general: add base template, using gadjo
This commit is contained in:
parent
72754b7405
commit
2084024edc
|
@ -8,6 +8,8 @@ For the full list of settings and their values, see
|
|||
https://docs.djangoproject.com/en/1.7/ref/settings/
|
||||
"""
|
||||
|
||||
from django.conf import global_settings
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
import os
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
@ -36,6 +38,7 @@ INSTALLED_APPS = (
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'gadjo',
|
||||
'pfwb_thesaurus.thesaurus',
|
||||
)
|
||||
|
||||
|
@ -86,6 +89,12 @@ TEMPLATE_DIRS = (
|
|||
# https://docs.djangoproject.com/en/1.7/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + ('gadjo.finders.XStaticFinder',)
|
||||
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(BASE_DIR, 'pfwb_thesaurus', 'static'),
|
||||
)
|
||||
|
||||
|
||||
local_settings_file = os.environ.get('PFWB_THESAURUS_SETTINGS_FILE',
|
||||
os.path.join(os.path.dirname(__file__), 'local_settings.py'))
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{% extends "gadjo/base.html" %}
|
Reference in New Issue