Code

Opened 6 years ago

Closed 6 years ago

#6384 closed (invalid)

Customizing the admin pages as suggested in the tutorial causes an recursion error

Reported by: Kip Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://www.djangoproject.com/documentation/tutorial02/

if your TEMPLATE_DIRS includes "/home/my_username/mytemplates", as above, then copy django/contrib/admin/templates/admin/base_site.html to /home/my_username/mytemplates/admin/base_site.html. Don’t forget that admin subdirectory.

I created a "change_form.html" file in my "templates/admin/" folder and it creates a recursion error, I suppose because it extends admin/change_form.html. To make it work for me I need to put the file into a subdirectory with the name of the model.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by mattmcc

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Please don't use the ticket system to ask support questions. Use the django-users mailing list for that, or our IRC channel. (See the "Get help" section of the community page for more information.)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.