Bring back the static files

master
Tanner Collin 2 years ago
parent 3529dbb359
commit 42b878abbf
  1. 2
      apiserver/apiserver/settings.py

@ -67,6 +67,7 @@ INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'rest_framework',
'rest_framework.authtoken',
@ -187,6 +188,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.0/howto/static-files/
if DEBUG:
STATIC_URL = 'devstatic/'
MEDIA_URL = 'static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'data/static')
else:

Loading…
Cancel
Save