On Feb 3, 1:16 pm, Jonathan Vanasco <[email protected]> wrote:
> 1- copy deform's /static files to app/static/deform
> 2- symlink deform/static to app/static/deform ( or an option of your
> choice )

In apache, I've always done something like:

Alias /deform/static /var/www/pyr27/lib/python2.7/site-packages/
deform-0.9.3-py2.7.egg/deform/static

For nginx:

location ^~ /deform/static {
    alias /var/www/pyr27/lib/python2.7/site-packages/deform-0.9.3-
py2.7.egg/deform/static;
}

In order to prevent Apache or Nginx from seeing the requests, the
webserver itself needs to handle those before handing it to the wsgi
process.

If you are using mod_wsgi, merely having the files in the right place
only works if you are using a mod_rewrite that tests -f and then
passes to mod_wsgi. If you're running with WSGIScriptAlias, you need
to make sure your alias is set before the ScriptAlias line since
Apache parses config files in order.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to