> On 26 Sep 2016, at 4:11 PM, Jaqen Nki <[email protected]> wrote:
> 
> Sweet so I got a django app configured to serve properly with mod wsgi.  A 
> slight difference in wsgidaemonprocess from the flask config.  Now I can do 
> all my projects locally and in one place.  
> 
> <VirtualHost *:80>
>                 ServerName dsite1.me
> 
>                 WSGIDaemonProcess dsite1 
> python-path=/var/www/dtuts/dsite1:/var/www/dtuts/dsite1/venv/lib/python3.5/site-packages

Instead of this use:

    WSGIDaemonProcess dsite1 python-home=/var/www/dtuts/dsite1/venv 
python-path=/var/www/dtuts/dsite1

That is, use python-home option for location of the virtual environment. The 
location is what sys.prefix in the interpreter yields for that virtual 
environment.

>                 WSGIProcessGroup dsite1
>                 WSGIApplicationGroup %{GLOBAL}
>                 WSGIScriptAlias / /var/www/dtuts/dsite1/dsite1/wsgi.py
>                 <Directory /var/www/dtuts/dsite1/>
>                 #<Files wsgi.py>

You are better have Files section here uncommented and is only the wsgi.py that 
Apache needs to be told it is allowed to serve. More secure than what you have.

Graham

>                         Order allow,deny
>                         Allow from all
>                 #</Files>
>                 </Directory>
> 
>                 #Alias /robots.txt /path/to/mysite.com/static/robots.txt
>                 #Alias /favicon.ico /path/to/mysite.com/static/favicon.ico
> 
>                 #Alias /media /var/www/dtuts/dsite1/media
>                 #<Directory /path/to/mysite.com/media>
>                  #       Order allow,deny
>                  #       Allow from all
>                 #</Directory>
> 
>                # Alias /static /var/www/dtuts/dsite1/static
>                 #<Directory /var/www/dtuts/dsite1/static/>
>                  #       Order allow,deny
>                  #       Allow from all
>                 #</Directory>
>                 ErrorLog /var/www/dtuts/dsite1/logs/error.log
>                 LogLevel warn
>                 CustomLog /var/www/dtuts/dsite1/logs/access.log combined
> </VirtualHost>
> 
> 
> Now comes the hard part of building quality full featured apps, integrating 
> dashboard, forums, cms, ecommerce, comment system, etc and managing them in 
> the least painful way.  Feels like climbing an insurmountable mountain, with 
> each step consisting of about 10 convoluted rabbit holes, and each of those 
> splitting into 10 more.  My main issue is learning how to learn to write 
> code, learning the abstraction layers of python and being able to engineer 
> apps on my own, as well as motivation/perseverance in the face of 
> discouragement.  I guess Ill just have to delve deep on the net for solutions 
> and try and find a mentor willing to help show me how to construct high end 
> apps so I can market them and make some good money doing so hopefully.  
> Anyways if you have any counsel regarding this that would be great, otherwise 
> thanks again so much for the help.  Catch ya later.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <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 https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to