Files are not served during development¶
django-statici18n doesn’t rely on
django.contrib.staticfiles, so you have to serve the generated catalogs
files with the Django dev server. For example:
# urls.py from django.conf import settings from django.conf.urls.static import static urlpatterns = patterns('', # ... the rest of your URLconf goes here ... ) + static(settings.STATIC_URL, document_root=settings.STATICI18N_ROOT)
However, when using the
statici18n template tag you should first
How to configure static files with django-statici18n? for more information.
Even if the setup looks a bit more tedious at first sight, using the
statici18n template tag is the recommended way and it will make
your life easier in the long run.