1. indifex
  2. transifex

Commits

Apostolis Bessas  committed 7096ebf

Use staticfiles as default static app instead of django.contrib.static.

  • Participants
  • Parent commits 1ffdbe8
  • Branches default

Comments (0)

Files changed (2)

File transifex/settings/10-base.conf

View file
  • Ignore whitespace
 # Storage backend to use for static files
 # Check https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#storages
 # for available options
-STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
+STATICFILES_STORAGE = 'staticfiles.storage.StaticFilesStorage'
 
 # Absolute path to the directory that holds media.
 # This is targeted for dynamically-produced static media, such as file

File transifex/urls/common.py

View file
  • Ignore whitespace
         url(regex   =   r'^accounts/(?P<username>[\.\w]+)/edit/$',
             view    =   login_required(userena_views.profile_edit),
             name    =   'userena_profile_edit'),
- 
+
         url(regex   =   r'^accounts/',
             view    =   include('userena.urls')),
 
         url(r'^site_media/media/(?P<path>.*)$', 'django.views.static.serve', {
             'document_root': settings.MEDIA_ROOT,
         }),
-        url(r'^', include('django.contrib.staticfiles.urls'))
+        url(r'^', include('staticfiles.urls'))
    )