Opened 14 years ago

Closed 14 years ago

#15394 closed (invalid)

Confused comment for STATICFILES_DIR on settings.py

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

Description

Comment for STATICFILES_DIR on settings.py should be:

# Locations of static files

and not:

# Additional locations of static files

Change History (3)

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: invalid
Status: newclosed

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

comment:2 by Carlo Pires, 14 years ago

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 http://docs.djangoproject.com/en/dev/howto/static-files/, 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 by Carlo Pires, 14 years ago

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