Update lots of things
This commit is contained in:
@ -45,6 +45,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.gis',
|
||||
'bootstrap3',
|
||||
'cas_server',
|
||||
'compressor',
|
||||
'crispy_forms',
|
||||
'django_extensions',
|
||||
'leaflet',
|
||||
@ -158,6 +159,13 @@ LOCALE_PATHS = [
|
||||
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
|
||||
STATIC_URL = os.getenv("STATIC_URL", '/static/')
|
||||
STATICFILES_FINDERS = [
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
'compressor.finders.CompressorFinder',
|
||||
]
|
||||
|
||||
|
||||
|
||||
# Cache
|
||||
# https://docs.djangoproject.com/en/1.11/topics/cache/
|
||||
@ -191,3 +199,21 @@ REST_FRAMEWORK = {
|
||||
'rest_framework.parsers.JSONParser',
|
||||
)
|
||||
}
|
||||
|
||||
# Django Crispy Forms
|
||||
# http://django-crispy-forms.readthedocs.io/en/latest/
|
||||
|
||||
CRISPY_TEMPLATE_PACK = 'bootstrap3'
|
||||
|
||||
# Django-Leaflet
|
||||
# https://django-leaflet.readthedocs.io/en/latest/
|
||||
|
||||
LEAFLET_CONFIG = {
|
||||
'MIN_ZOOM': 3,
|
||||
'MAX_ZOOM': 16,
|
||||
'PLUGINS': {
|
||||
'forms': {
|
||||
'auto-include': True
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user