|
|
|
@ -61,7 +61,7 @@ ROOT_URLCONF = "shiftregister.urls"
|
|
|
|
|
TEMPLATES = [
|
|
|
|
|
{
|
|
|
|
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
|
|
|
|
"DIRS": [Path(BASE_DIR, Path("templates"))],
|
|
|
|
|
"DIRS": [BASE_DIR / "templates"],
|
|
|
|
|
"APP_DIRS": True,
|
|
|
|
|
"OPTIONS": {
|
|
|
|
|
"context_processors": [
|
|
|
|
@ -131,7 +131,7 @@ STATIC_ROOT = "/opt/shiftregister/static"
|
|
|
|
|
STATIC_URL = "static/"
|
|
|
|
|
|
|
|
|
|
STATICFILES_DIRS = [
|
|
|
|
|
Path(BASE_DIR, Path("assets")),
|
|
|
|
|
BASE_DIR / "assets",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Default primary key field type
|
|
|
|
@ -149,3 +149,5 @@ CELERY_BEAT_SCHEDULE = {
|
|
|
|
|
"schedule": float(getenv("SHIFT_IMPORT_INTERVAL", 60.0)), # seconds
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CELERY_BEAT_SCHEDULE_FILENAME = str(BASE_DIR / "storage" / "celerybeat-schedule")
|
|
|
|
|