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
[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
> 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
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
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.
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.
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
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
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
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
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
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
12 matches
Mail list logo