Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # must be the last path
- path("", TemplateView.as_view(template_name="index.html")),
- STATICFILES_DIRS = [
- str(APPS_DIR.path('static')),
- ]
- if DEBUG:
- STATICFILES_DIRS += [
- str(ROOT_DIR.path('frontend/build/')),
- str(ROOT_DIR.path('frontend/build/static/')), ]
- else:
- # something to serve webpack locally
- pass
- TEMPLATES = [
- {
- ...
- 'DIRS': [
- str(APPS_DIR.path('templates')),
- ],
- ...
- }
- ]
- if DEBUG:
- TEMPLATES[0]['DIRS'] += [str(ROOT_DIR.path('frontend/build')), ]
- else:
- # something to serve webpack locally
- pass
- # index.html
- {% load static %}
- {% static 'favicon.ico' %}
- {% static 'manifest.json' %}
Add Comment
Please, Sign In to add comment