Code

#19894 closed Bug (worksforme)

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

Reported by: wim@… Owned by: nobody
Component: Documentation Version: master
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

Description

https://docs.djangoproject.com/en/dev/ref/settings/#static-url

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

Attachments (0)

Change History (3)

comment:1 Changed 14 months ago by anonymous

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Type changed from Uncategorized to Bug
  • Version changed from 1.4 to master

comment:2 Changed 14 months ago by aaugustin

Django has:

  • "real defaults" in django/conf/global_settings.py 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 14 months ago by wimfeijen

  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.