#15765: Serving static files in development doesn't work with staticfiles 
activated
-------------------------------------+-------------------------------------
               Reporter:  Semmel     |        Owner:  nobody
                   Type:             |       Status:  closed
  Uncategorized                      |    Component:  contrib.staticfiles
              Milestone:             |     Severity:  Normal
                Version:  1.3        |     Keywords:
             Resolution:             |    Has patch:  0
  worksforme                         |  Needs tests:  0
           Triage Stage:             |
  Unreviewed                         |
    Needs documentation:  0          |
Patch needs improvement:  0          |
-------------------------------------+-------------------------------------

Comment (by Semmel):

 Replying to [comment:1 jezdez]:
 > Quoting from the [http://docs.djangoproject.com/en/1.3/howto/static-
 files/#using-django-contrib-staticfiles docs]:
 >
 > "Many projects will also have static assets that aren’t tied to a
 particular app; you can give staticfiles additional directories to search
 via the STATICFILES_DIRS setting ."
 >
 > The automatic serving during development via staticfiles' runserver
 command doesn't set `show_indexes=True`. You don't have to manually add
 the static pattern to your URLs.

 I've added a little test project to demonstrate the behavior. Just run it
 and point your browser to http://localhost:8000/static/myfolder/. Of
 course I could use `staticfiles_urlpatterns` for serving files in
 development. For this example I used `static` and added `show_indexes` as
 an easy way to see that the folder really is there
 (http://localhost:8000/static/ works as expected) but navigating to
 anything else just doesn't work.

 Is there any resource for a standard staticfiles layout? I tried to peek
 at djangoproject.com but was surprised to see that it doesn't even use
 staticfiles.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15765#comment:2>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to