Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.425 kB
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template import RequestContext
from is_mobile import is_mobile
from django.core.urlresolvers import reverse
def index(request):
if is_mobile(request):
return HttpResponseRedirect(reverse('mob_home'))
else:
return render_to_response('index.html', { }, context_instance=RequestContext(request))
Jump to Line
Something went wrong with that request. Please try again.