from django.shortcuts import render,HttpResponse,render_to_response
from .models import login
from django.views.decorators.csrf import csrf_protec
def home(request):
return render_to_response('home.html')
def log(request):
return HttpResponse(str(login.objects.all()))
i try to solve forbidden error bt its not working .
i m new in django so plz help me to solv this error
i attach
my templet
views.py
and url.py
if u need more thing then reply me i send it to u..
-- i m new in django so plz help me to solv this error
i attach
my templet
views.py
and url.py
if u need more thing then reply me i send it to u..
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0c3193d4-afff-4376-a7c2-75fc4ecf1460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.





2
1
3
4
5
6
No comments:
Post a Comment