Use os.path.join() to construct file paths in docs instead of hardcoding '/'
It has come to my attention while using the django documentation that several examples and directions specify the use of paths or os.path.join use the default BASE_DIR and a path written like "directory/subDirectory". I think this confuses a number of people who develop on windows platforms because it is actually more ideal to use os.path.join like this:
os.path.join(BASE_DIR, "directory", "subDirectory")
If you change this within your documentation it might help users who are having problems configuring django with various paths in their applications while also understanding the functionality of os.path better.
Change History
(10)
Description: |
modified (diff)
|
Easy pickings: |
set
|
Summary: |
Static Files Documentation → Use os.path.join() to construct file paths in docs instead of hardcoding '/'
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Cleanup/optimization
|
Owner: |
changed from nobody to Andrew Artajos
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Has patch: |
set
|
Resolution: |
fixed
|
Status: |
closed → new
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
I only found one occurrence here. Are there some more you saw that I missed?