Comments (2)
The string 'example.wsgi' is a module path, not the name of a file. You should replace 'example' with the name of your project. The module path would then map to the file path of 'example/wsgi.py', where again, 'example' is replaced with the name of your project.
In other words, it should map to the 'wsgi.py' file found in the same directory as your 'settings.py' file, both of which would have been generated by the Django 'startproject' management command.
Take for example where my project was called 'mysite' and so I had:
$ ls -las manage.py mysite/*.py
8 -rw-r--r-- 1 graham staff 249 16 Mar 2014 manage.py
0 -rw-r--r-- 1 graham staff 0 16 Mar 2014 mysite/__init__.py
8 -rw-r--r-- 1 graham staff 2997 8 Aug 2014 mysite/settings.py
8 -rw-r--r-- 1 graham staff 522 17 Jun 2014 mysite/urls.py
8 -rw-r--r-- 1 graham staff 908 30 Oct 2014 mysite/views.py
8 -rw-r--r-- 1 graham staff 387 16 Mar 2014 mysite/wsgi.py
I would actually use the module path 'mysite.wsgi', which would map to 'mysite/wsgi.py'.
from mod_wsgi-docker.
Thanks Graham. Actually, I was going to inform to make this issue closed but you preceded me by your answer, I did this and I found what you said is true, sorry for this disturbance
from mod_wsgi-docker.
Related Issues (20)
- New Apache version HOT 1
- How do I modify the httpd.conf for apache? HOT 2
- static files HOT 16
- : "httpd (pid 7) already running" HOT 1
- Error while building on Windows 10 HOT 5
- docker hub fails with non-onbuild versions HOT 5
- Documentation about process owner HOT 1
- Support for Client Certificates HOT 11
- pip packages not getting cached HOT 9
- Documentation for mod_wsgi express command line flags HOT 1
- 403 error on root when using --mount-point HOT 1
- debian mirrors used in mod-wsgi-docker:python-3.5-onbuild image failing HOT 1
- Enable compress-responses / mod_deflate
- Context path or SCRIPT_NAME when deployed in docker, and proxied throgh front-end apache HOT 1
- ---
- Error while building python-2.7-onbuild HOT 2
- Debian Package Issues HOT 1
- Officially abandon mod_wsgi-docker project. HOT 3
- How to update limit-request-body using this image? HOT 8
- Failed to fetch jessie packages
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 mod_wsgi-docker.