Opened 6 years ago

Closed 5 years ago

#15394 closed (invalid)

Confused comment for STATICFILES_DIR on

Reported by: carlopires Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Comment for STATICFILES_DIR on should be:

# Locations of static files

and not:

# Additional locations of static files

Change History (3)

comment:1 Changed 6 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The comment is correct. It is *additional* locations, on top of those derived from individual apps.

comment:2 Changed 5 years ago by carlopires

  • Resolution invalid deleted
  • Status changed from closed to reopened

So I'm missing something here. Where would be my app static files if I dont put anything in STATICFILES_DIR ?

Using django version 1.3 beta 1 SVN-15634, and following, my static files on
SITE_ROOT/static dir are not served when using runserver and adding staticfiles_urlpatterns to URLconf.

I had to put SITE_ROOT/static on STATICFILES_DIR to make staticfiles_urlpatterns to find them.

comment:3 Changed 5 years ago by carlopires

  • Resolution set to invalid
  • Status changed from reopened to closed

Now I got it, each projects' app can have a static/ subdir which will be considered by staticfiles finder. Additional static files can be included in STATICFILES_DIR.

Note: See TracTickets for help on using tickets.
Back to Top