Skip to content

Commit

Permalink
replace minidetector with django-mobile (closes issue #36)
Browse files Browse the repository at this point in the history
Adds an additional dependency on django-mobile, can be installed using pip.
  • Loading branch information
lonvia committed Dec 14, 2012
1 parent e1d46c8 commit a0bdbf4
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 644 deletions.
8 changes: 7 additions & 1 deletion config/siteconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,17 @@
ROOT_URLCONF = 'routemap.sites.urls'

TEMPLATE_LOADERS = (
'django_mobile.loader.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)

MIDDLEWARE_CLASSES = (
'localeurl.middleware.LocaleURLMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django_mobile.middleware.MobileDetectionMiddleware',
'django_mobile.middleware.SetFlavourMiddleware'
)

TEMPLATE_DIRS = (
Expand All @@ -222,13 +226,15 @@
'django.core.context_processors.request',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'routemap.util.context_processors.pageinfo'
'routemap.util.context_processors.pageinfo',
'django_mobile.context_processors.flavour'
)

INSTALLED_APPS = (
'localeurl',
'django.contrib.markup',
'markupfilter',
'django_mobile'
)


Expand Down
52 changes: 0 additions & 52 deletions django/contrib/minidetector/__init__.py

This file was deleted.

63 changes: 0 additions & 63 deletions django/contrib/minidetector/search_strings.txt

This file was deleted.

77 changes: 0 additions & 77 deletions django/contrib/minidetector/tests/__init__.py

This file was deleted.

Loading

0 comments on commit a0bdbf4

Please sign in to comment.