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
On 2018-07-21, abc abc wrote:
>> 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.
Djan
> 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
On 2018-07-20, abc abc wrote:
> Well, I'm so messed up between so many sources and tutorials I don't
> know which way is up.
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.
WSGI:
def application(enviro
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
On 2018-07-20 12:39:38 -0700, abc abc wrote:
> 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
You can read cookies from the request via the request.COOKIES dictionary.
See the documentation here:
https://docs.djangoproject.com/en/2.0/ref/request-response/#django.http.HttpRequest.COOKIES
You won't find them in an environment variable, which is shared
process-wide and across all requests, be
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