Re: Apache2 mod_python VirtualHost configuration

2006-01-22 Thread [EMAIL PROTECTED]
The simplest solution to get Dnajgo project welcome screen using apache/mod_python is to put these lines of code in your project .htaccess file: --- SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath s

Re: Apache2 mod_python VirtualHost configuration

2006-01-19 Thread Nebojša Đorđević
[EMAIL PROTECTED] wrote: I had the same problem. This is what worked for me. Make a media directory somewhere for your project, like /work/django/media/ add that directory to your apache conf, ie #... and add this line to your virtual host section Alias /media/ "/work/django/media

Re: Apache2 mod_python VirtualHost configuration

2006-01-17 Thread oggie rob
> and add this line to your virtual host section Alias /media/ "/work/django/media/" FYI, the '/media/' comes from the ADMIN_MEDIA_PREFIX in your settings.py file. If it is different, change the Alias to match it. -rob

Re: Apache2 mod_python VirtualHost configuration

2006-01-17 Thread [EMAIL PROTECTED]
I had the same problem. This is what worked for me. Make a media directory somewhere for your project, like /work/django/media/ add that directory to your apache conf, ie #... and add this line to your virtual host section Alias /media/ "/work/django/media/" Then you just have to c

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
It seems that now the links to stylesheets and javacript files are not mapping properly, when i run my project site under Apache. How can I fix it? I was looking through documentation and searching a bit online, but didn't find a solid answer to this issue.

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
Thanks, Bryan! Works fine. One thing, which I did not do was to modify Postgres host configuration to allow for connections from 'GoodCompany'. A small thing, but it will raise error if it's not configured properly.

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread Bryan Murdock
On 1/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > My VirtualHost config look now like this: > > > ServerName GoodCompany I don't think you want this: > DocumentRoot "/work/django/GoodCompany" > > allow from all > Options All > I'm pretty sure you don't want your we

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
My VirtualHost config look now like this: ServerName GoodCompany DocumentRoot "/work/django/GoodCompany" allow from all Options All SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath sys.path+['/work/django'] SetEnv DJANGO_SETTINGS

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread Peter Ma
expect solutionthe same question 2006/1/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Actually, I had messed up my DocumentRoot and /etc/host file which waspointiong to my PHP projects path. The Welcome screen was from symfony framework, which I had installed previously.Now, after I fixed it, I'm gett

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
Actually, I had messed up my DocumentRoot and /etc/host file which was pointiong to my PHP projects path. The Welcome screen was from symfony framework, which I had installed previously. Now, after I fixed it, I'm getting this error: Mod_python error: "PythonHandler django.core.handlers.modpytho

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread Bryan Murdock
On 1/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, there! > > I found Django this afternoon and was impressed by what I found. After > getting the framework from SVN trunk and installing it on my Fedora > server, I followed the first 2 parts of the tutorial. Worked great and > i got

Apache2 mod_python VirtualHost configuration

2006-01-16 Thread [EMAIL PROTECTED]
Hi, there! I found Django this afternoon and was impressed by what I found. After getting the framework from SVN trunk and installing it on my Fedora server, I followed the first 2 parts of the tutorial. Worked great and i got the admin section up in no time. (Awesome stuff!). I run my little pr