Changeset View
Changeset View
Standalone View
Standalone View
swh/web/settings/common.py
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | |||||
# https://docs.djangoproject.com/en/1.11/howto/static-files/ | # https://docs.djangoproject.com/en/1.11/howto/static-files/ | ||||
STATIC_URL = "/static/" | STATIC_URL = "/static/" | ||||
# static folder location when swh-web has been installed with pip | # static folder location when swh-web has been installed with pip | ||||
STATIC_DIR = os.path.join(sys.prefix, "share/swh/web/static") | STATIC_DIR = os.path.join(sys.prefix, "share/swh/web/static") | ||||
if not os.path.exists(STATIC_DIR): | if not os.path.exists(STATIC_DIR): | ||||
# static folder location when developping swh-web | # static folder location when developping swh-web | ||||
STATIC_DIR = os.path.join(PROJECT_DIR, "../../../static") | STATIC_DIR = os.path.join(PROJECT_DIR, "../../../static") | ||||
STATICFILES_DIRS = [STATIC_DIR] | STATICFILES_DIRS = [STATIC_DIR] | ||||
INTERNAL_IPS = ["127.0.0.1"] | INTERNAL_IPS = ["127.0.0.1"] | ||||
throttle_rates = {} | throttle_rates = {} | ||||
http_requests = ["GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"] | http_requests = ["GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"] | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |