fix(api): static_url settings is required in dev mode (#1662)

This commit is contained in:
Jonas L 2022-03-04 14:50:05 +01:00 committed by GitHub
parent fd603a7aa8
commit f5bb31e971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ from ._internal import (
MIDDLEWARE,
REST_FRAMEWORK,
ROOT_URLCONF,
STATIC_URL,
TEMPLATES,
TEST_RUNNER,
WSGI_APPLICATION,

View File

@ -89,6 +89,11 @@ REST_FRAMEWORK = {
"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"
TEST_RUNNER = "libretime_api.tests.runners.ManagedModelTestRunner"