There is nothing special about that app. The login which is failing is
the standard django one (The app just adds code for new account
creation, e-mailing the registerant, and enabling the account with a
unique key).

I believe the problem you are running into is because the page is
stale. That is you are using the back button and not reloading the
page with the login form fresh. When the page loads a new temporary
cookie is set. If that cookie is not present on the login submission,
then you get the cookies enabled error. Other parts of the system will
delete the cookie if they see it (including logout).

So you go to the main page wich has a login form (cookie created)
You load a different page with the login form (cookie created, again)
You log in (cookie is seen, you are logged in and the cookie is
deleted)
You log out (cookie doesn't exist, nothing to do)
You go 'back' to main page with login (page is not reloaded from the
server, so still no cookie)
You log-in (no cookie - Error message)
If yo reload the page (hold the shift key down on reload), then try
again - Works.

Also you can run into this problem if you are using the cache
middleware.
Make sure the session middleware occurs BEFORE the cache middleware,
in your middleware list.

    -Doug

On Mar 21, 12:56 pm, "ashwoods" <[EMAIL PROTECTED]> wrote:
> have you tried contacting the project maintainer? this is third party
> code and unless anybody happens to use it, to answer you they would
> have to go through his code. on the wiki page it says:
>
> >Questions? Problems?
> >If you've got a question that isn't covered here or in the comments and 
> >docstrings in the code, or if you run into a bug, swing on over to this 
> >app's Google >Code project page and file a new "issue". I'll do my best to 
> >respond promptly.
>
> so i would try that first :)
> if that doesnt work, i guess i'll have to go through the code ;)
>
> cheers,
> ashley
>
> On Mar 21, 1:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Hi!
>
> > I've recently implementedhttp://code.google.com/p/django-registration/
> > to support user registration and authentication on a project.
>
> > I've also created a form in a template that extends ALL other
> > templates on the site.
>
> > I'm facing the following problem:
>
> > If I fire the django development server up and enter my login
> > credentials on the site's front page, the login fails with the
> > following message: "Your Web browser doesn't appear to have cookies
> > enabled. Cookies are required for logging in.".
>
> > What's weird is that I do have cookies enabled. What's even more weird
> > is that ...
>
> > ... If I try to login AGAIN using the same form on the page that shows
> > me this message, I can login just fine.
>
> > If I then go to the front page and log out, I can login from the front
> > page without a problem. BUT if I logout, go to a random location on
> > the site, and then back to the front page, I can't login again.
>
> > The same behavior is present on all pages (~5), except the actual
> > login-page.
>
> > I've tested on both apache with mod_python and using the Django
> > development server and on several different client computers. Browsers
> > tested: FF 2.0.0.2 and Safari 2.0.0.4.
>
> > Would greatly appreciate any help!
>
> > Thanks in anticipation,
> > Gustaf Sjöberg


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to