Re: django on apache looses all styling

2008-10-16 Thread Dj Gilcrease

In your settings.py file there is a MEDIA_URL setting and an
ADMIN_MEDIA_PREFIX setting

In my case I have
MEDIA_URL = 'http://media.digitalxero.net/' + SITE_NAME + '/'
ADMIN_MEDIA_PREFIX = 'http://media.digitalxero.net/admin/'

That way all of my static files are server off my CDN (Separate server
just for static files), but more common setups would be

MEDIA_URL = 'http://my.site.com/media/'
ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/'


Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com



On Thu, Oct 16, 2008 at 2:20 PM, William Purcell
<[EMAIL PROTECTED]> wrote:
> I see that django documentation says to copy the admin media files so that
> they live within your Apache document root. I have put the media files from
> the django/contrib in the Apache document root. How does django/apache see
> them?
>
> On Thu, Oct 16, 2008 at 2:42 PM, William Purcell <[EMAIL PROTECTED]>
> wrote:
>>
>> I am new to django, and web development in general for that matter, so
>> please bear with me. I have done the introductory tutorial at the django web
>> site. Everything works fine. I have now installed apache and I'm trying to
>> serve django with mod_python installed in apache. I can now browse to
>> localhost/myapp/admin but the admin page has lost all styling. Any comments
>> or suggestions are very much appreciated. Sorry for such an elementary
>> question, but I am stuck and can't find anything on google.
>> Thanks,
>> Bill
>>
>> Windows XP
>> Apache 2.0.63
>> mod_python 3.3.1
>> Python 2.5
>> django 1.1
>>
>
>
> >
>

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



Re: django on apache looses all styling

2008-10-16 Thread William Purcell
I see that django documentation says to copy the admin media files so that
they live within your Apache document root. I have put the media files from
the django/contrib in the Apache document root. How does django/apache see
them?

On Thu, Oct 16, 2008 at 2:42 PM, William Purcell
<[EMAIL PROTECTED]>wrote:

> I am new to django, and web development in general for that matter, so
> please bear with me. I have done the introductory tutorial at the django web
> site. Everything works fine. I have now installed apache and I'm trying to
> serve django with mod_python installed in apache. I can now browse to
> localhost/myapp/admin but the admin page has lost all styling. Any comments
> or suggestions are very much appreciated. Sorry for such an elementary
> question, but I am stuck and can't find anything on google.
> Thanks,
> Bill
>
> Windows XP
> Apache 2.0.63
> mod_python 3.3.1
> Python 2.5
> django 1.1
>
>

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



django on apache looses all styling

2008-10-16 Thread William Purcell
I am new to django, and web development in general for that matter, so
please bear with me. I have done the introductory tutorial at the django web
site. Everything works fine. I have now installed apache and I'm trying to
serve django with mod_python installed in apache. I can now browse to
localhost/myapp/admin but the admin page has lost all styling. Any comments
or suggestions are very much appreciated. Sorry for such an elementary
question, but I am stuck and can't find anything on google.
Thanks,
Bill

Windows XP
Apache 2.0.63
mod_python 3.3.1
Python 2.5
django 1.1

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