I'm using RedirectView and it is redirecting to my app, but is not rendering the view in the app I am pointing to.
I want to redirect my root / to my app /web
I have this in my primary app urls:
url(r'^$', RedirectView.as_view(url='/web/', permanent=False)),
url(r'^$', IndexView.as_view(), name='index'),
class Index(View):
def get(self, request, *args, **kwargs):
return HttpResponse('Hello, World!')
when I go to / I do get redirected to /web/ but I get a index.html template display rather than Hello World. It isn't finding my Index(View) class for some reason.
Can anybody explain to me how this should work?
--
Brad Rice
brad...@gmail.com--
To succeed in life, you need two things: ignorance and confidence.
-Mark Twain