Bring back the static files

This commit is contained in:
Tanner Collin 2022-04-06 23:17:39 +00:00
parent 3529dbb359
commit 42b878abbf

View File

@ -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: