Bring back the static files
This commit is contained in:
parent
3529dbb359
commit
42b878abbf
|
@ -67,6 +67,7 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
|
'django.contrib.staticfiles',
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
'rest_framework.authtoken',
|
'rest_framework.authtoken',
|
||||||
|
@ -187,6 +188,7 @@ USE_TZ = True
|
||||||
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
|
STATIC_URL = 'devstatic/'
|
||||||
MEDIA_URL = 'static/'
|
MEDIA_URL = 'static/'
|
||||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'data/static')
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'data/static')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user