Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ALLOWED_HOSTS = [
- '127.0.0.1'
- ]
- STATIC_ROOT = os.path.abspath(os.path.join(BASE_DIR, '..', 'static'))
- STATIC_URL = '/static/'
- STATICFILES_DIRS = (
- BASE_DIR + "/static/",
- )
- STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
- STATICFILES_FINDERS = (
- 'django.contrib.staticfiles.finders.FileSystemFinder',
- 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
- )
- {% load pipeline %}
- {% load staticfiles %}
- ..
- {% stylesheet 'name_style' %}
- ..
- from django.conf import settings
- from django.conf.urls.static import static
- if settings.DEBUG:
- urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
- urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement