Re: Django View Questions

2014-06-19 Thread G Z
thansk I solved it.. On Thursday, June 19, 2014 11:02:21 AM UTC-6, G Z wrote: > > so I have a problem when ever I go to /manage/ it takes me to index and im > not sure why. > > Urls.py > url(r'^', views.IndexView.as_view(), name='index'), > url(r'^manage/$', views.ManageView.as_view(), name='mana

Re: Django View Questions

2014-06-19 Thread C. Kirby
According to the error, you didn't try to access /manage, just the root url On Thursday, June 19, 2014 12:08:05 PM UTC-5, G Z wrote: > > if i comment out the urls for #url(r'^$', views.IndexView.as_view(), > name='index'), it will give me an error that it cant find /manage > > > Page not found (4

Re: Django View Questions

2014-06-19 Thread C. Kirby
Do you have APPEND_SLASH set in settings? If you don't and are trying to hit register instead of register/ it will fail Kirby -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django View Questions

2014-06-19 Thread G Z
I chagned it further and it is still not working from django.shortcuts import get_object_or_404, render from django.http import HttpResponseRedirect from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.contrib.auth import logo

Re: Django View Questions

2014-06-19 Thread G Z
url(r'^$', views.IndexView.as_view(), name='index'), url(r'^register/$', views.register, name='register'), # ADD NEW PATTERN! is my new urls from django.shortcuts import get_object_or_404, render from django.http import HttpResponseRedirect from django.contrib.auth import authenticate,

Re: Django View Questions

2014-06-19 Thread C. Kirby
You actually have a urls error. Your first one: url(r'^', views.IndexView.as_view(), name='index'), Should be: url(r'^$', views.IndexView.as_view(), name='index'), (Note the $) $ tells the url resolver to stop trying to match a url at the $. Since you don't have it, calls to manage/ match on

Re: Django View Questions

2014-06-19 Thread G Z
if i comment out the urls for #url(r'^$', views.IndexView.as_view(), name='index'), it will give me an error that it cant find /manage Page not found (404)Request Method:GETRequest URL:http://127.0.0.1:8000/ Using the URLconf defined in holon.urls, Django tried these URL patterns, in this orde

Django View Questions

2014-06-19 Thread G Z
so I have a problem when ever I go to /manage/ it takes me to index and im not sure why. Urls.py url(r'^', views.IndexView.as_view(), name='index'), url(r'^manage/$', views.ManageView.as_view(), name='manage'), Views.py from django.shortcuts import get_object_or_404, render from django.http i