When is it that you are getting the 403 ?
On Mon, Nov 12, 2012 at 7:30 PM, Nebros <markuschriste...@gmail.com> wrote: > I know this is an old problem with many answers... but no one helps me. ^^ > what i have: > > Settings-------------------------------- > MIDDLEWARE_CLASSES = ( > 'django.middleware.csrf.CsrfViewMiddleware', > 'django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'django.contrib.messages.middleware.MessageMiddleware', > # Uncomment the next line for simple clickjacking protection: > # 'django.middleware.clickjacking.XFrameOptionsMiddleware', > ) > ------------------------------------------- > > urls-------------------------------------- > from django.conf.urls import patterns > from klasse.views import portal, kundendaten > urlpatterns = patterns('', > (r'^portal/$', portal), > (r'^kundendaten/$', kundendaten), > ) > ------------------------------------------- > > views----------------------------------- > from django.shortcuts import render_to_response > from django.core.context_processors import csrf > from django.views.decorators.csrf import csrf_protect > import datetime > import pyodbc > @csrf_protect > def portal(request): > now = datetime.datetime.now() > return render_to_response('portal.html', {'current_date': now}) > -------------------------------------------- > > portal.html------------------------------ > <form method="post" action="/kundendaten/"> > {% csrf_token %} > <fieldset> > <legend>Anfrage</legend> > <p>Bitte Kundennamen eingeben</p> > <label> > <input type="text" name="kunde" size="30" required="required"> > </label> > <br> > <br> > <input type="submit" name="senden" value="Senden" > href="kundendaten"> > </fieldset> > </form> > -------------------------------------------- > > I tryed a lot of variants to fix my "post" problem, but without success. > can anybody help me? ^^ > thx > *pls ignore my englisch fails > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/iMXtpFVaRp8J. > 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. > -- Simplicity is the ultimate sophistication. - Leonardo da Vinci Life is really simple, but we insist on making it complicated. - Confucius -- 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.