[Answer]-URL configuration issue with Django app using Bluehost

1👍

You have to define following url in your urls.py,

url(r'^$', 'views.home', name='home')
url(r'^main/$', 'views.main', name='main')

then in views.py

def home(request):
    return HttpResponseRedirect('/main/')

def main(request):
    #some code here.

Leave a comment