Opened 11 years ago

Closed 11 years ago

#19894 closed Bug (worksforme)

default STATIC_URL is '/static/' in stead of None?

Reported by: wim@… Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


mentions the default STATIC_URL to be None. But when we create a new project using startproject, it is actually '/static/'.

Change History (3)

comment:1 Changed 11 years ago by anonymous

Component: UncategorizedDocumentation
Type: UncategorizedBug
Version: 1.4master

comment:2 Changed 11 years ago by Aymeric Augustin

Django has:

  • "real defaults" in django/conf/ which are immutable and must guarantee backwards compatibility,
  • "defaults defaults" in the project template which allow some flexibility.

Confusing, but handy.

If you remove STATIC_URL from your settings files Django will use None.

comment:3 Changed 11 years ago by Wim Feijen

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top