Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ALLOWED_HOSTS = [
  2. '127.0.0.1'
  3. ]
  4. STATIC_ROOT = os.path.abspath(os.path.join(BASE_DIR, '..', 'static'))
  5. STATIC_URL = '/static/'
  6. STATICFILES_DIRS = (
  7. BASE_DIR + "/static/",
  8. )
  9. STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
  10. STATICFILES_FINDERS = (
  11. 'django.contrib.staticfiles.finders.FileSystemFinder',
  12. 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  13. )
  14.  
  15. {% load pipeline %}
  16. {% load staticfiles %}
  17. ..
  18. {% stylesheet 'name_style' %}
  19. ..
  20.  
  21. from django.conf import settings
  22. from django.conf.urls.static import static
  23.  
  24. if settings.DEBUG:
  25. urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  26. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement