[Django] #31715: Documentation : Customize the admin look and feel

9 views
Skip to first unread message

Django

unread,
Jun 16, 2020, 10:16:14 AM6/16/20
to django-...@googlegroups.com
#31715: Documentation : Customize the admin look and feel
-----------------------------------------+------------------------
Reporter: AbelardoLG | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
To Customizing your project’s templates, you wrote this line:

TEMPLATES = [ {
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'templates'],
...

When I saved this modification, the server showed the attached log.

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

Django

unread,
Jun 16, 2020, 10:16:51 AM6/16/20
to django-...@googlegroups.com
#31715: Documentation : Customize the admin look and feel
-------------------------------+--------------------------------------

Reporter: AbelardoLG | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by AbelardoLG):

* Attachment "Captura de pantalla de 2020-06-16 16-09-50.png" added.

Python's server outputs a log about this error

Django

unread,
Jun 16, 2020, 10:23:04 AM6/16/20
to django-...@googlegroups.com
#31715: Documentation : Customize the admin look and feel
-------------------------------+--------------------------------------
Reporter: AbelardoLG | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

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


Comment:

This looks like `BASE_DIR` is a string, when you can only use `/` with
`Path` objects.

Either use a Path object or `os.path.join()` to join (string) path
segments correctly. (You can concatenate with `+ '/' +` like normal
strings, but that not OS independent, and likely error prone.)

Please see TicketClosingReasons/UseSupportChannels if you need more help.

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

Django

unread,
Jun 16, 2020, 10:28:51 AM6/16/20
to django-...@googlegroups.com
#31715: Documentation : Customize the admin look and feel
-------------------------------+--------------------------------------
Reporter: AbelardoLG | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Carlton Gibson):

The instructions should work is you're using a project created with the
same version of Django as the docs you're reading.

The tutorial was updated in 26554cf5d1e96db10d0d5f4b69683a22fb82fdf8 which
will be/was in 3.1 — in general full pathlib support isn't available until
then. See #29983.

--
Ticket URL: <https://code.djangoproject.com/ticket/31715#comment:2>

Reply all
Reply to author
Forward
0 new messages