Opened 6 years ago

Closed 6 years ago

#15394 closed (invalid)

Confused comment for STATICFILES_DIR on

Reported by: Carlo Pires 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 Russell Keith-Magee

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

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

comment:2 Changed 6 years ago by Carlo Pires

Resolution: invalid
Status: closedreopened

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 6 years ago by Carlo Pires

Resolution: invalid
Status: reopenedclosed

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