Opened 4 years ago

Closed 4 years ago

#32538 closed Cleanup/optimization (duplicate)

Easy - Small Update in Django Writing your first app 07

Reported by: hkale0000 Owned by: nobody
Component: Documentation Version: 3.1
Severity: Normal Keywords: Easy, Documentation
Cc: h.kale0000@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Hello Team Django,

There is a small error on the update to be made in "Django Writing your first app -07" page with following URL

https://docs.djangoproject.com/en/3.1/intro/tutorial07/

On this page, under "Customizing your project’s templates" section please update

'DIRS': [BASE_DIR / 'templates'], to 'DIRS': [BASE_DIR, 'templates'],

else it causes following error :
TypeError: unsupported operand type(s) for /: 'str' and 'str' base_dir

please refer the following image for further reference :

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Resolution: duplicate
Status: newclosed

This's not an bug. Duplicate of #32115.

Note: See TracTickets for help on using tickets.
Back to Top