Hi,
try this....

urls.py

urlpatterns = patterns('app_root',
      url(r'^url_path/$','view_name',name='url_name'),
    )

view.py

def view_name(request):
    your business logics
    return HttpResponse()

I think it may work....

On Wed, Sep 12, 2012 at 9:51 AM, Lachlan Musicman <data...@gmail.com> wrote:

> Hola
>
> As per subject - I'm getting ViewDoesNotExist errors on a view that does
> exist.
>
> I've checked the spelling, indenting and it all seems legit.
>
> If I comment out the two lines that call the view in question from
> urls.py, everything is back to normal.
> -------
> tafe/urls.py
>
> from django.conf.urls import patterns, url
> from django.views.generic import DetailView, ListView
> from tafe.models import Student, Subject, Enrolment, Course, Grade,
> Timetable
>
> urlpatterns = patterns('tafe.views',
>     #url(r'^$', 'index'),
>     url(r'^$', ListView.as_view(queryset=Subject.objects.all()
>     ...
>    url(r'^session/create/$', 'session_create'),
> )
>
> tafe/views.py
>
>
> from tafe.models import Session
> from tafe.forms import SessionRecurringForm
> from django.shortcuts import render_to_response
> from django.http import HttpResponseRedirect
> import datetime
>
> def session_create(request):
>
> form = SessionRecurringForm()
>
>     return render_to_response('tafe/session_create.html',{'form':form,})
>
>
>
> --
> ...we look at the present day through a rear-view mirror. This is
> something Marshall McLuhan said back in the Sixties, when the world
> was in the grip of authentic-seeming future narratives. He said, “We
> look at the present through a rear-view mirror. We march backwards
> into the future.”
>
> http://www.warrenellis.com/?p=14314
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Thanks & Regards
Stephen S



Website: www.f2finterview.com
Blog:      blog.f2finterview.com
Tutorial:  tutorial.f2finterview.com
Group:    www.charvigroups.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to