Guest User

Untitled

a guest
Oct 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # must be the last path
  2. path("", TemplateView.as_view(template_name="index.html")),
  3.  
  4. STATICFILES_DIRS = [
  5. str(APPS_DIR.path('static')),
  6. ]
  7. if DEBUG:
  8. STATICFILES_DIRS += [
  9. str(ROOT_DIR.path('frontend/build/')),
  10. str(ROOT_DIR.path('frontend/build/static/')), ]
  11. else:
  12. # something to serve webpack locally
  13. pass
  14.  
  15. TEMPLATES = [
  16. {
  17. ...
  18. 'DIRS': [
  19. str(APPS_DIR.path('templates')),
  20. ],
  21. ...
  22. }
  23. ]
  24. if DEBUG:
  25. TEMPLATES[0]['DIRS'] += [str(ROOT_DIR.path('frontend/build')), ]
  26. else:
  27. # something to serve webpack locally
  28. pass
  29.  
  30. # index.html
  31. {% load static %}
  32. {% static 'favicon.ico' %}
  33. {% static 'manifest.json' %}
Add Comment
Please, Sign In to add comment