I tested version 0.1.2.
I "runserver 0.0.0.0:8000", and tried the following sequence on the URL http://$IP:8000/
- On desktop computer, Chromium browser (chrome under linux), the value of {{ flavour }} is 'full'
- If I press reload on my Chromium: {{ flavour }} == 'full'.
- On desktop computer, with Firefox: {{ flavour }} == 'full'
- The I take my Android Nexus One, GET http://$ip:8000/, {{ flavour }} == 'mobile'
Everythings is alright there. it turn out weird after the first Mobile browser is used.
- If I refresh on my Chrome browser, the value of {{ flavour }} == 'mobile' :(
- If I refresh desktop firefox, {{ flavour }} == 'mobile'
Until I kill the Django-admin Python process and restart the web server, {{ flavour }} is always 'mobile'.
I do not use CACHE_BACKEND.
here are some sections of my settings.py
TEMPLATE_LOADERS = (
'django_mobile.loader.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'satchmo_store.shop.context_processors.settings',
'django.core.context_processors.auth',
'django_mobile.context_processors.flavour',
'django.core.context_processors.media',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
'django_mobile.middleware.MobileDetectionMiddleware',
'django_mobile.middleware.SetFlavourMiddleware',
'threaded_multihost.middleware.ThreadLocalMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'satchmo_store.shop.SSLMiddleware.SSLRedirect',
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
And django_mobile is in my INSTALLED_APPS