修改settings.py

This commit is contained in:
曹前明 2022-05-16 14:41:42 +08:00
parent 6800376519
commit b70aa5131c
1 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,7 @@ ROOT_URLCONF = 'server.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['dist'],
'DIRS': ['vuedist'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
@ -129,6 +129,9 @@ CORS_ORIGIN_ALLOW_ALL = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'vuedist/static'),
)
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')