keukaman wrote:
> When I run the Django development server the admin site for my test
> site looks great. But when I run the site using Apache with the address
> http://localhost/admin all of the great look and feel provided by
> Django is missing. The functionality is still there, but it is stripped
> of all of its great look.
> 
> Any ideas what I need to do to Apache (or anything else) to make the
> admin look the same as it does when running the development server?
> 
> Below is code I added to the http.conf file for Apache. The name of my
> tutorial is "mysite" and resides at c:\django\mysite. Any help would be
> appreciated.
> 
> <Location "/">
>   SetHandler python-program
>   PythonPath "['C:\django'] + sys.path"
>   PythonHandler django.core.handlers.modpython
>   SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>   PythonDebug On
> </Location>
> 
> <Location "/media/">
>   SetHandler None
> </Location>
> 
> <LocationMatch "\.(jpg|gif|png)$">
>   SetHandler None 
> </LocationMatch>
> 
> 
> > 
Hi Keukaman,
You need to either copy or ln the admin media files so apache has access
to them. Take a look at the 'Serving the Admin Files' section of
http://www.djangoproject.com/documentation/modpython/
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.54.68.12 with SMTP id q12mr178249wra;
        Sun, 21 May 2006 17:38:58 -0700 (PDT)
Return-Path: <[EMAIL PROTECTED]>
Received: from spunkymail-a12.dreamhost.com (mailbigip.dreamhost.com 
[208.97.132.5])
        by mx.googlegroups.com with ESMTP id v11si794751cwb.2006.05.21.17.38.58;
        Sun, 21 May 2006 17:38:58 -0700 (PDT)
Received-SPF: neutral (googlegroups.com: 208.97.132.5 is neither permitted nor 
denied by best guess record for domain of [EMAIL PROTECTED])
Received: from [10.1.1.3] (dsl-210-211-113-250.qld.veridas.net 
[210.211.113.250])
        by spunkymail-a12.dreamhost.com (Postfix) with ESMTP id DE4727F66
        for <django-users@googlegroups.com>; Sun, 21 May 2006 17:38:56 -0700 
(PDT)
Message-ID: <[EMAIL PROTECTED]>
Disposition-Notification-To: Matthew McDonald <[EMAIL PROTECTED]>
Date: Mon, 22 May 2006 10:38:46 +1000
From: Matthew McDonald <[EMAIL PROTECTED]>
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
Mime-Version: 1.0
Content-Type: text/plain
To: django-users@googlegroups.com
Subject: Re: Apache Localhost Django Admin Look & Feel
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
X-Enigmail-Version: 0.94.0.0

keukaman wrote:
> When I run the Django development server the admin site for my test
> site looks great. But when I run the site using Apache with the address
> http://localhost/admin all of the great look and feel provided by
> Django is missing. The functionality is still there, but it is stripped
> of all of its great look.
> 
> Any ideas what I need to do to Apache (or anything else) to make the
> admin look the same as it does when running the development server?
> 
> Below is code I added to the http.conf file for Apache. The name of my
> tutorial is "mysite" and resides at c:\django\mysite. Any help would be
> appreciated.
> 
> <Location "/">
>   SetHandler python-program
>   PythonPath "['C:\django'] + sys.path"
>   PythonHandler django.core.handlers.modpython
>   SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>   PythonDebug On
> </Location>
> 
> <Location "/media/">
>   SetHandler None
> </Location>
> 
> <LocationMatch "\.(jpg|gif|png)$">
>   SetHandler None 
> </LocationMatch>
> 
> 
> > 
Hi Keukaman,

You need to either copy or ln the admin media files so apache has access
to them. Take a look at the 'Serving the Admin Files' section of
http://www.djangoproject.com/documentation/modpython/

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

Reply via email to