if user double-clicks form submit with csrf token, even with redirect on POST browser shows 403 FORBIDDEN and csrf failed message

2017-08-02 Thread Mark Mikofski
okay, this is weird. If a user double-clicks the form submit button, even tho POST should redirect, they still get 403 FORBIDDEN with csrf failed message. I think this is like a web developer question, is this some latency issue with my browser, network or web server? I use Apache-2 httpd with

static files with query strings

2015-02-06 Thread Mark Mikofski
Do I need to make a custom storage or custom template to handle query strings in static file URLs or endpoints? Using the new static template in Django>=1.4 works fine for simple endpoints and URLs For example, the following works fine: {% load staticfiles %} However if the ULR or

windows service for django debug server

2014-04-19 Thread Mark Mikofski
I know this is a bad idea, but in case anyone was looking for a windows service for the django debug server (runserver.py) here is a hack ported from Trac: http://poquitopicante.blogspot.com/2014/04/django-debug-server-windows-service.html It depends on Mark Hammond's PyWin32 (http://sourcefor