fix(api): static_url settings is required in dev mode (#1662)
This commit is contained in:
parent
fd603a7aa8
commit
f5bb31e971
|
@ -9,6 +9,7 @@ from ._internal import (
|
||||||
MIDDLEWARE,
|
MIDDLEWARE,
|
||||||
REST_FRAMEWORK,
|
REST_FRAMEWORK,
|
||||||
ROOT_URLCONF,
|
ROOT_URLCONF,
|
||||||
|
STATIC_URL,
|
||||||
TEMPLATES,
|
TEMPLATES,
|
||||||
TEST_RUNNER,
|
TEST_RUNNER,
|
||||||
WSGI_APPLICATION,
|
WSGI_APPLICATION,
|
||||||
|
|
|
@ -89,6 +89,11 @@ REST_FRAMEWORK = {
|
||||||
"URL_FIELD_NAME": "item_url",
|
"URL_FIELD_NAME": "item_url",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Static files (CSS, JavaScript, Images)
|
||||||
|
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||||
|
|
||||||
|
STATIC_URL = "/api/v2/static/"
|
||||||
|
|
||||||
AUTH_USER_MODEL = "libretime_api.User"
|
AUTH_USER_MODEL = "libretime_api.User"
|
||||||
|
|
||||||
TEST_RUNNER = "libretime_api.tests.runners.ManagedModelTestRunner"
|
TEST_RUNNER = "libretime_api.tests.runners.ManagedModelTestRunner"
|
||||||
|
|
Loading…
Reference in New Issue