<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Salutări!<br><br>Am încercat din nou să fac ceva pentru a îmi testa codul...Aceeasi problemă...cea pe care am uitat mereu să o raportez.<br><br>Dacă încerc să mă loghez normal îmi dă asta:<br><br><h1 style="font-weight: normal;"><font size="3">"403 Forbidden</font></h1>
<p><font size="3">CSRF verification failed. Request aborted.</font></p>
<h2 style="font-weight: normal;"><font size="3">Help</font></h2>
<p><font size="3">Reason given for failure:</font></p>
<pre><font size="3"> CSRF cookie not set.<br> </font></pre>
<p><font size="3">In general, this can occur when there is a genuine Cross Site Request Forgery, or when
<a href="http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf">Django's
CSRF mechanism</a> has not been used correctly. For POST forms, you need to
ensure:</font></p>
<ul><li><font size="3">The view function uses <a href="http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext"><code>RequestContext</code></a>
for the template, instead of <code>Context</code>.</font></li><li><font size="3">In the template, there is a <code>{% csrf_token
%}</code> template tag inside each POST form that
targets an internal URL.</font></li><li><font size="3">If you are not using <code>CsrfViewMiddleware</code>, then you must use
<code>csrf_protect</code> on any views that use the <code>csrf_token</code>
template tag, as well as those that accept the POST data.</font></li></ul>
<p><font size="3">You're seeing the help section of this page because you have <code>DEBUG =
True</code> in your Django settings file. Change that to <code>False</code>,
and only the initial error message will be displayed. </font></p>
<p><font size="3">You can customize this page using the CSRF_FAILURE_VIEW setting.</font></p>"<br>M-am holbat prin cod, dar nu părea nicăieri să se întâmple chestiile sugerate de django sau nu am știut eu unde să caut...<br><br><br>Eh, am încercat si ca admin:<br><br>"Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, and try again."<br><br>Browserul meu acceptă cookie-uri...Nu știu care e problema. Am încercat cam toate soluțiile date de ăia.Am încercat să caut nu-știu-ce minune del inie de comentat, am încercat să îmi updatez python, am căutat o versiune care „nu a fost distrusă de debian”, dar nimic.<br><br><br>Am încercat și să mă loghez prin facebook. Dar aplicația trimite adresa ei facebook-ului și lui nu îi place să primească localhost sau 127.0.0.1<br><br>O să încerc să îmi formatez cu totul pc-ul, din nou...Cred că am făcut ceva greșit sau incomplet și
nu îi place ideea.<br><br>George<br></div>
</div><br>
</body></html>