Hi,

If you want help, you'll need to provide more information. What django version, 
what env (wsgi, devserver), what's your admin media and so on.

Regards,
Xavier.

Le 8 juil. 2011 à 04:40, neridaj a écrit :

> I had my static files being served form media i.e., the tree looked
> like this:
> 
> media/
> /css
> /js
> /images
> 
> with this in my url conf:
> if settings.SERVE_MEDIA_FROM_DJANGO:
>    urlpatterns += patterns('',
>    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
> {'document_root': r'media'}),
>    (r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',
> { 'document_root': r'media/js/tiny_mc' }),
> )
> 
> I then switched it to this:
> 
> static/
> /css
> /js
> /images
> 
> with this in my url conf:
> if settings.SERVE_MEDIA_FROM_DJANGO:
>    urlpatterns += patterns('',
>    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
> {'document_root': r'static'}),
>    (r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve',
> { 'document_root': r'static/js/tiny_mc' }),
> )
> 
> I don't understand why changing media to static has stopped django
> from serving static files, any ideas?
> 
> Cheers,
> 
> J
> 
> -- 
> 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.

Reply via email to