Re: why i cannot load css from django lib?

2011-08-21 Thread smith jack
Thank you, but i am not using django with apache, but with python
manage.py runserver command, i find it confused, if i set the debug
mode to be true, then things may go well, what happened?

2011/8/21 zhijun wu :
> I've encountered such a problem, so maybe I can help.
> I solved that like this:
> First, make sure you have the right permission to the folder 'media'.
> Then,
> #setting.py
> MEDIA_ROOT='' #Use absolute path
> ADMIN_MEDIA_PAREFIX='' #'/media/', focus on the 2 slashs
> #httpd.conf
>
> Alias /media
> /usr/local/lib/python2.6/site-packages/django/contrib/admin/media  #end
> without slash
>
>   "/usr/local/lib/python2.6/site-packages/django/contrib/admin/media">
> #absolute path
>
> AllowOverride None
>
> Options None
>
> Order allow,deny
>
> Allow from all
>
> 
>
>   #2 slashs
>
> SetHandler None
>
> 
>
>  
>
> SetHandler None
>
> 
>
> 2011/8/21 smith jack 
>>
>> face a strange problem, now i am using django.contrib.admin module
>> with its default page, but i cannot load css code now, so the web page
>> is ugly
>> what's wrong?
>>
>> --
>> 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
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: why i cannot load css from django lib?

2011-08-21 Thread zhijun wu
I've encountered such a problem, so maybe I can help.
I solved that like this:

First, make sure you have the right permission to the folder 'media'.

Then,
#setting.py
MEDIA_ROOT='' #Use absolute path
ADMIN_MEDIA_PAREFIX='' #'/media/', focus on the 2 slashs

#httpd.conf

Alias /media
/usr/local/lib/python2.6/site-packages/django/contrib/admin/media #end
without slash

 
#absolute path

AllowOverride None

Options None

Order allow,deny

Allow from all



  #2 slashs

SetHandler None



 

SetHandler None



2011/8/21 smith jack 

> face a strange problem, now i am using django.contrib.admin module
> with its default page, but i cannot load css code now, so the web page
> is ugly
> what's wrong?
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



why i cannot load css from django lib?

2011-08-20 Thread smith jack
face a strange problem, now i am using django.contrib.admin module
with its default page, but i cannot load css code now, so the web page
is ugly
what's wrong?

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.