Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Update message for missing ResponsiveMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishbah committed Oct 1, 2014
1 parent f2cf99c commit bcd5ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions responsive/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def device(request):
responsive_middleware = 'responsive.middleware.ResponsiveMiddleware'
if responsive_middleware not in settings.MIDDLEWARE_CLASSES:
raise ImproperlyConfigured(
"responsive context_processors requires the responsive middleware to "
"be installed. Edit your MIDDLEWARE_CLASSES setting to insert"
"You must enable the 'ResponsiveMiddleware'. Edit your "
"MIDDLEWARE_CLASSES setting to insert"
"the 'responsive.middleware.ResponsiveMiddleware'")

device_obj = getattr(request, settings.RESPONSIVE_VARIABLE_NAME, None)
Expand Down

0 comments on commit bcd5ea6

Please sign in to comment.