[Django] #32538: Easy - Small Update in Django Writing your first app 07

6 views
Skip to first unread message

Django

unread,
Mar 11, 2021, 7:12:20 AM3/11/21
to django-...@googlegroups.com
#32538: Easy - Small Update in Django Writing your first app 07
-------------------------------------+-------------------------------------
Reporter: hkale0000 | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: | Version: 3.1
Documentation |
Severity: Normal | Keywords: Easy, Documentation
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
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 :

--
Ticket URL: <https://code.djangoproject.com/ticket/32538>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 11, 2021, 7:21:20 AM3/11/21
to django-...@googlegroups.com
#32538: Easy - Small Update in Django Writing your first app 07
-------------------------------------+-------------------------------------
Reporter: hkale0000 | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: duplicate

Keywords: Easy, Documentation | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/32538#comment:1>

Reply all
Reply to author
Forward
0 new messages