Comments (8)
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.
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.
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.
@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.
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.
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.
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.
Closing as it's being handled in Django itself, which is a more appropriate location for the discussion.
from cookiecutter-django.
Related Issues (20)
- Add a citation file HOT 6
- unregistered task of type 'users.tasks.get_users_count' in celery
- Admin login as non-superuser avoids allauth login flow HOT 6
- Add Hadolint
- python: can't open file '/app/manage.py': [Errno 2] No such file or directory
- `DJANGO_ADMIN_FORCE_ALLAUTH` is not covered by tests
- Line length of 88 chars HOT 3
- Migrate to Django 4.2 storage object syntax HOT 1
- Integrate React as the frontend using a hybrid approach. HOT 3
- Webpack deprecation warnings prevent development
- Hybrid local development HOT 6
- Allauth template elements HOT 4
- rabbitmq support for celery HOT 4
- Add `sphinxcontrib-django` for documentation
- ci.yml for running pytest is building docs image unnecessarily (run time 4:30m instead of 3:00m)
- Split the `docs` service out of `local.yml` HOT 2
- You probably don't need `get_user_model` HOT 1
- CI should test against production environment, not local HOT 2
- Allow multiple imports on one line HOT 6
- Incorrect Python version in Docker. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookiecutter-django.