Opened 8 years ago

Closed 8 years ago

#10193 closed (worksforme)

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

Reported by: Art 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.

Change History (3)

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

Component: UncategorizedDocumentation
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 8 years ago by Malcolm Tredinnick

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 8 years ago by Jacob

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