Django 2.0.1 admin

38 views
Skip to first unread message

Matthew Pava

unread,
Jan 5, 2018, 5:21:57 PM1/5/18
to django...@googlegroups.com

Hi everyone,

I am finally able to move to Django 2.0, but I just noticed an error I keep getting when attempting to open the admin:

 

TemplateSyntaxError at /admin/

Invalid block tag on line 58: 'get_admin_log', expected 'endblock'. Did you forget to register or load this tag?

 

Does anyone have any ideas?

Thanks!

m1chael

unread,
Jan 5, 2018, 5:25:59 PM1/5/18
to django...@googlegroups.com
did you ever override your admin templates?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4dbdb1ab1c37482eb2150fd8f6cd3426%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Matthew Pava

unread,
Jan 5, 2018, 5:28:21 PM1/5/18
to django...@googlegroups.com

No.  I even uninstalled Django and reinstalled Django, but the issue persists.

 

 

From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of m1chael
Sent: Friday, January 5, 2018 4:25 PM
To: django...@googlegroups.com
Subject: Re: Django 2.0.1 admin

 

did you ever override your admin templates?

On Fri, Jan 5, 2018 at 5:20 PM, Matthew Pava <Matthe...@iss.com> wrote:

Hi everyone,

I am finally able to move to Django 2.0, but I just noticed an error I keep getting when attempting to open the admin:

 

TemplateSyntaxError at /admin/

Invalid block tag on line 58: 'get_admin_log', expected 'endblock'. Did you forget to register or load this tag?

 

Does anyone have any ideas?

Thanks!

--

You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

 

--

You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Matemática A3K

unread,
Jan 6, 2018, 2:04:54 AM1/6/18
to django...@googlegroups.com
On Fri, Jan 5, 2018 at 7:26 PM, Matthew Pava <Matthe...@iss.com> wrote:

No.  I even uninstalled Django and reinstalled Django, but the issue persists.

 


Seems like the admin's template tags are not being loaded correctly. Are you using custom template tags? Did you restart your dev server? after the upgrade (silly but can be that)?
 

 

From: django...@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of m1chael
Sent: Friday, January 5, 2018 4:25 PM
To: django...@googlegroups.com
Subject: Re: Django 2.0.1 admin

 

did you ever override your admin templates?

On Fri, Jan 5, 2018 at 5:20 PM, Matthew Pava <Matthe...@iss.com> wrote:

Hi everyone,

I am finally able to move to Django 2.0, but I just noticed an error I keep getting when attempting to open the admin:

 

TemplateSyntaxError at /admin/

Invalid block tag on line 58: 'get_admin_log', expected 'endblock'. Did you forget to register or load this tag?

 

Does anyone have any ideas?

Thanks!

--

You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Matthew Pava

unread,
Jan 8, 2018, 12:24:49 PM1/8/18
to django...@googlegroups.com

I found the problem.  I had a third-party app, django-audit-log, that I incorporated into the project since it was not working with Django 2.0.  I needed to list ‘audit_log’ in the APPS list before django.contrib.admin in my Django settings module.

 

Problem solved!  Thank you!

Reply all
Reply to author
Forward
0 new messages