On 31-Oct-07, at 10:36 AM, Kenneth Gonsalves wrote:

>> think it's been simple as that all along, and I've just been tripped
>> up by using webfaction's control panel...
>
> I just treat it as a shell account - removed what they did and set up
> my own. Only needed the control panel to set up the pg database and
> get media served through their apache

for what its worth, here is part of the httpd.conf file (smedia is  
where the uploaded media is put, if you want to serve it from the  
main apache, you *must* put it in ./webapps/ directory):

Alias /media/ "/home/myaccount/lib/python2.4/django/contrib/admin/ 
media/"
Alias /smedia/ "/home/myaccount/webapps/media/"
    Alias /sitemedia/ "/home/myaccount/webapps/django/myapp/sitemedia/"


<Location "/web/">
SetHandler python-program
     PythonHandler django.core.handlers.modpython
     SetEnv DJANGO_SETTINGS_MODULE myapp.settings
     PythonPath "['/home/myaccount/webapps/django'] + sys.path"
     PythonDebug On
</Location>

<Location "/smedia/">
         SetHandler None
</Location>


-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to