Skip to content

Commit dda713b

Browse files
committed
separated frontend files from static folders
1 parent 1fe38a5 commit dda713b

File tree

9 files changed

+7
-0
lines changed

9 files changed

+7
-0
lines changed

django_vue/settings.py

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@
107107
STATIC_URL = '/static/'
108108
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
109109

110+
STATICFILES_DIRS = (
111+
os.path.join(BASE_DIR, 'frontend'),
112+
)
113+
110114
STATICFILES_FINDERS = (
111115
'django.contrib.staticfiles.finders.FileSystemFinder',
112116
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

main/static/img/django.svg

+1
Loading

main/templates/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<body>
1313
<div class="antd">
1414
<div class="antd-logo">
15+
<img src="{% static 'img/django.svg' %}" alt="ant_logo">
16+
<span>+</span>
1517
<img src="{% static 'img/antd.svg' %}" alt="ant_logo">
1618
<span>+</span>
1719
<img src="{% static 'img/logo.png'%}" alt="vue_logo">

0 commit comments

Comments
 (0)