#10054: Naming issue with static files in standard urlpattern
--------------------------------------+-------------------------------------
 Reporter:  [email protected]  |       Owner:  nobody    
   Status:  new                       |   Milestone:  post-1.0  
Component:  Uncategorized             |     Version:  1.0       
 Keywords:                            |       Stage:  Unreviewed
Has_patch:  0                         |  
--------------------------------------+-------------------------------------
 I am using Django 1.0.2.

 The Django book suggests that django users put the following in their
 urlconf to support static files:

 (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
         {'document_root': '/path/to/media'}),

 In the development server this makes static resources accessible at
 http://127.0.0.1:8000/site_media/

 And this works well. However, if you change "site_media" to "media" as
 follows:

 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
         {'document_root': '/path/to/media'}),

 The django development server responds with a 404 error for all requests
 to http://127.0.0.1:8000/media/

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10054>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to