Commit 1a2dead9 authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

tuc2014.urls: Add a better exception if crispy_forms was not found

Normally we don't require crispy_forms, but the language picker
uses it. Make this clear through a better exception message.
parent d469e8fc
Pipeline #24682 passed with stage
in 25 seconds
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import include, url
from .views import change_language
from django.core.exceptions import ImproperlyConfigured
from .views import change_language
except ImportError:
raise ImproperlyConfigured("crispy_forms is required for the tuc2014 language picker.")
urlpatterns = [
url(r'^i18n/', include('django.conf.urls.i18n', namespace='djangoi18n')),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment