> problem has cropped up again - I can login, forms work on the website, but
> not in admin. Login works in admin, but all other forms in admin do not
> work - giving the csrf error. I am stuck.
>
can you be more explicit with the 'csrf error' -- if it's the check your
cookies are enabled one.
Check your own cookies, if you have two admins on the same domain
like example.com/proj1/admin and example.com/proj2/admin; common on dev
servers. logging into one sets a global cookie for example.com that conflicts
with the other disallowing login till I delete existing cookies.
Mike
--
Never eat more than you can lift.
-- Miss Piggy
hmm, never happened to me there, I suggest trying another browser. If it still
continues, no clue, sorry.
Mike
--
Excerpts From The First Annual Nerd Bowl (#7)
JOHN SPLADDEN: In this final round, the two teams must assemble a 16-node
Beowulf cluster from scratch, install Linux on them, and then use the
system to calculate pi to 1 million digits. This is the ultimate test for
nerds... only people in the Big Leagues should attempt this... [snip]
BRYANT DUMBELL: Look at that! Instead of messing with screws, the
Portalbacks are using duct tape to attach their motherboards to the cases!
That should save some time. [snip] They've done it! The Mad Hatters have
completed the Final Round in 2 hours, 15 minutes. That's one hell of a
Beowulf cluster they produced... drool.
SPLADDEN: With that, the Mad Hatters win the Nerd Bowl 105 to 68! There's
going to be some serious beer-drinking tonight back at the Red Hat offices.
DUMBELL: Linus Torvalds has emerged from the sidelines to present his
Linus Torvalds Trophy to the winners. What a glorious sight! This has
definitely been the best Nerdbowl ever. I pity those people that have been
watching the Superbowl instead.
copied and pasted straight from the official docs
Works fine in Chrome for some reason but with Firefox or IE I get:
403 Forbidden
CSRF verification failed. Request aborted.
Reason given for failure: CSRF cookie not set.
And I've tried clearing the cache and cookies from the browser. All
without luck :/
Niklas
I'm using nginx and rewriting urls with www to be without www. And in
firefox I seem to be getting the following weirdness in firebug:
domainname.com, status: timeout, domain: domainname.com, size: 1.8kb,
time: 26ms
domainname.com, status: 200 OK, domain: domainname.com, size: 1.8kb,
time: 146ms
So the request gets a timeout after 26ms for some bizzar reason. I
remoed the rewrite rules and were able to log in to admin with
firefox.
Niklas
Niklas
On Feb 7, 3:18 pm, Nixarn <nix...@gmail.com> wrote:
The weird timeout error was just a stupid javascript bug. And I blamed
tornado first, then after giving fastcgi a shot and still getting the
error I blamed nginx. Then after trying apache2 + wsgi and still
getting the same timeout I blamed linode. Then after I noticed I get
the problem locally too, so naturally I blamed the django dev version.
And after trying djanog 1.1 I blame my python code. After I noticed it
was correct I found my javascript bug :( I'm sorry tornado, nginx,
linode and django!
Anyway still get the csrf error occationally. Not a big problem just
requires some shift + reload.
Niklas
On Feb 7, 4:13 pm, Nixarn <nix...@gmail.com> wrote:
> Ok. Most likely the problem is when nginx is giving me 499 (client
> timeout) errors.
>
> On Feb 7, 3:50 pm,Nixarn<nix...@gmail.com> wrote:
>
>
>
> > Hmm apparently doesn't work anymore gah... hrmp. Looking into it.
>
> > Niklas
>