Hi Guys,

I followed the following guide (http://www.kemeneur.com/clients/pylons/
docs/pyramid/tutorials/modwsgi/index.html)  to set up my application
using mod_wsgi in WebFaction. However, I am a little bit puzzled about
a few things.

When I create a new app as shown in step 6 in webfaction:

$ cd ~/modwsgi/env
$ bin/paster create -t pyramid_starter myapp

Every time I copy 'myapp' development files from my local machine to
the server via ftp I have to do:

$ ../bin/python setup.py install

for the app on the server to update. Why?

And secondly, I have an upload function in the app, and when I
uploaded my files in the app I discovered they were placed in:

./modwsgi/env/lib/python2.6/site-packages/myapp-0.0-py2.6.egg/myapp/
static/uploads/file.jpg

The function is using this to get my directory:

_current = os.path.dirname(__file__)

Why are they being placed in the site-packages folder?

Please could someone clarify these issues for me, and whether I am
doing things the right way

Thanks for your time and help.

Regards,
Awais

-- 
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