45 lines
970 B
Python
45 lines
970 B
Python
import os
|
|
|
|
from .settings_base import * # noqa
|
|
from .settings_base import BASE_DIR, INSTALLED_APPS, MIDDLEWARE
|
|
|
|
DEBUG = True
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.contrib.gis.db.backends.spatialite",
|
|
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
|
|
}
|
|
}
|
|
|
|
USE_DEBUG_TOOLBAR = False
|
|
|
|
if USE_DEBUG_TOOLBAR:
|
|
INSTALLED_APPS += [
|
|
"debug_toolbar",
|
|
]
|
|
|
|
MIDDLEWARE = ("debug_toolbar.middleware.DebugToolbarMiddleware",) + MIDDLEWARE
|
|
|
|
INTERNAL_IPS = ["127.0.0.1"]
|
|
|
|
SPATIALITE_LIBRARY_PATH = "mod_spatialite"
|
|
|
|
STATIC_ROOT = "/home/evarin/Bureau/experiENS/static/"
|
|
|
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
|
|
|
STATIC_URL = "/experiens/static/"
|
|
|
|
ELASTICSEARCH_DSL = {
|
|
"default": {"hosts": "localhost:9200"},
|
|
}
|
|
|
|
|
|
CLIPPER_LDAP_SERVER = "ldaps://localhost:636"
|
|
|
|
# Changer à True pour développer avec ES
|
|
USE_ELASTICSEARCH = False
|
|
|
|
if not USE_ELASTICSEARCH:
|
|
INSTALLED_APPS.remove("django_elasticsearch_dsl")
|