Giter VIP home page Giter VIP logo

Comments (8)

ncoghlan avatar ncoghlan commented on May 16, 2024

Full details here: https://gist.github.com/GrahamDumpleton/b380652b768e81a7f60c

The main issue appears to be that the default wsgi.py generated by Django is incomplete. So it's conceivable there may be an issue worth filing against Django as well, to add some hints about including environment variable configuration if desired.

from cookiecutter-django.

pydanny avatar pydanny commented on May 16, 2024

I think it would be better if @GrahamDumpleton opened the ticket. He's the subject matter expert for mod_wsgi. I would simply have to hand off the discussion of the topic immediately.

from cookiecutter-django.

ncoghlan avatar ncoghlan commented on May 16, 2024

Danny, Graham has already written up a detailed explanation of how to use
the WSGI launch file to set environment variables before launching the
Django application itself - that's in the gist I linked.

I don't care if you personally prefer not to use Apache, or mod_wsgi, or if
you just don't get on with Graham. I do care that your documentation is
currently actively misleading new users regarding mod_wsgi's capabilities,
which may lead them to unnecessarily rule out the use of the most widely
supported Linux web server ecosystem.

If you actually do want to steer your users away from Apache, that's also
fine (there are certainly many legitimate usability concerns with it - even
mod-wsgi express, which is now the easiest way to run development Python
services under Apache, requires the ability to build mod_wsgi locally), but
such guidance should be given explicitly on that basis, not implicitly
through inaccurate technical claims.

from cookiecutter-django.

pydanny avatar pydanny commented on May 16, 2024

@ncoghlan, First off, I think I get along grandly with @GrahamDumpleton. He's one of my favorite people in the python community, and it irks me that I haven't seen him since May of 2013. One of these days he needs to bring the family to Southern California so we can do Disneyland. 😄

As for the rest of your response, you are right. I'll get off my butt and file the issue with djangoproject.com,

from cookiecutter-django.

ncoghlan avatar ncoghlan commented on May 16, 2024

Thanks Danny - my apologies for getting a bit snarky. My irritation is
actually mostly with the Apache side of things, since it has suffered badly
from the open source community's historical lack of concern with usability
and approachability issues, and that's resulted in a lot of reinvented
wheels :P

from cookiecutter-django.

pydanny avatar pydanny commented on May 16, 2024

My apologies for not filing this on djangoproject.com. Last month was busy and a good chunk was spent off the grid. I'll try to submit this issue this week.

from cookiecutter-django.

carljm avatar carljm commented on May 16, 2024

Hi all!

I just marked the ticket @pydanny opened as needsinfo because it's not clear what action is being requested from Django. If anyone can help clarify that, the ticket is at https://code.djangoproject.com/ticket/24326 - feel free to reopen if you can provide some clarity.

I'm not entirely sure what @ncoghlan was referring to in terms of the default Django wsgi.py file being "incomplete", nor am I clear why @GrahamDumpleton 's gist recommends creating a new WSGI application file next to it, rather than editing the default one. The main issue I'm aware of where Django's default wsgi.py file interacts poorly with mod_wsgi is described in https://code.djangoproject.com/ticket/18518 (and related https://code.djangoproject.com/ticket/18559). This issue is already discussed in detail in our "hosting with mod_wsgi" docs: https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/modwsgi/

from cookiecutter-django.

pydanny avatar pydanny commented on May 16, 2024

Closing as it's being handled in Django itself, which is a more appropriate location for the discussion.

from cookiecutter-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.