I am trying the simplest of examples below to set and read a cookie. I am using
the Django framework, but I have also tried with vanilla python cookies and
os.environ. I have posted elsewhere, but this hasn't gotten much attention, so
I'd really appreciate any help.
Thinking at this point it ma
Well, I'm so messed up between so many sources and tutorials I don't know which
way is up.
References to environ variable:
https://www.python.org/dev/peps/pep-0333/
https://stackoverflow.com/questions/16774952/wsgi-whats-the-purpose-of-start-response-function
I read that I have to have a file p
> I think one of the main issues is that you don't seem to have decided
> whether you're writing a WSGI application or a Django application.
Yes, I suppose I thought Django had to use wsgi to process requests, I didn't
know there were 'two' options here. Does your example represent one or the
ot
> I think one of the main issues is that you don't seem to have decided
> whether you're writing a WSGI application or a Django application.
Yes, I suppose I thought Django had to use wsgi to process requests, I didn't
know there were 'two' options here. Does your example represent one or the
ot
Yes, this was the problem. At some point early in my attempts I got the idea
that linking up Django to a production web server required writing a separate
wsgi.py script. Wrong. Replaced the wsgi.py with the default Django wsgi.py for
the project and everything seems resolved. Thank you.
--
htt