On 04/06/2015, at 6:37 AM, Eibriel Inv <[email protected]> wrote:
> Hi!! I'm trying to run a Flask aplication, but I'm stuck with the following
> error:
>
> ImportError: No module named 'server.wsgi'
Can I see the full traceback to see where this import is occurring from?
And can I see the full command for mod_wsgi-express you are using and indicate
where you are running that relative to where your Django project is?
A description of how your files/directories are laid out would help to clarify.
> Do I need to create the "server.wsgi"? (the django example don't have the
> "example.wsgi" invoked by Dockerfile) Where should I put it?
In saying 'server.wsgi' or 'example.wsgi', then 'server' or 'example' is meant
for Django to be the name of the Django project.
That is, there should already be a file called:
projectname/wsgi.py
along side of the settings.py file for the project.
Graham
> I've tryed on several levels of the folder tree with no luck.
>
> If I remove the following line:
>
> "--application-type", "module", "example.wsgi"
>
> I get the weird whiskey picture.
>
> Docker version:
>
> Client version: 1.6.2
> Client API version: 1.18
> Go version (client): go1.4.2
> Git commit (client): 7c8fca2
> OS/Arch (client): linux/amd64
>
> I'm also using docker-compose:
>
> web:
> build: .
> ports:
> - "8000:80"
> links:
> - db
>
> db:
> image: mongo:latest
>
>
>
> thanks!
>
>
> El miércoles, 26 de noviembre de 2014, 9:20:13 (UTC-2), Graham Dumpleton
> escribió:
> If anyone is a user of docker and/or has already been playing around with
> mod_wsgi-express, you might like to monitor my latest little project.
>
> https://registry.hub.docker.com/u/grahamdumpleton/mod-wsgi-docker/
>
> Hard to see how one could make it simpler.
>
> Graham
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.