Code

Opened 5 years ago

Closed 5 years ago

#10193 closed (worksforme)

Meaning of 'path to file' parameter is unclear in documentation

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

Description

The document at

http://docs.djangoproject.com/en/dev/topics/files/

says:

default_storage.save('/path/to/file', ContentFile('new content'))

There is some ambiguity in the example given. One can assume that '/path/to/file' refers only to a path but not path-name of the file.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by Rob Hudson <treborhudson@…>

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by mtredinnick

What's the difference between a "path" and a "path name"? I don't see how this can be unclear. It's saying you have to specify the location of the file, using the normal syntax for doing so. Needs clarification from the reporter as to what the perceived problem is here.

comment:3 Changed 5 years ago by jacob

  • 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.