ozknightwalker / django-basic-apps

Automatically exported from code.google.com/p/django-basic-apps
0 stars 0 forks source link

TemplateSyntaxError - Invalid block tag: 'get_inline_types' #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add basic.blog to INSTALLED_APPS
2. navigate to http://localhost:8000/admin/blog/post/add/
3.

What is the expected output? What do you see instead?
post add form

What version of the product are you using? On what operating system?
running django trunk and basic-apps trunk r69.  Windows XP

Please provide any additional information below.
see attached file for error report

Original issue reported on code.google.com by nand...@gmail.com on 12 Sep 2008 at 8:50

Attachments:

GoogleCodeExporter commented 8 years ago
Be sure to add basic.inlines to your INSTALLED_APPS list in your settings file.

Original comment by npbor...@gmail.com on 12 Sep 2008 at 9:48

GoogleCodeExporter commented 8 years ago
basic.inlines is installed and the admin docs has the get_inline_types tag 
shown but 
I still get the error.

Original comment by nand...@gmail.com on 12 Sep 2008 at 10:08

GoogleCodeExporter commented 8 years ago
Okay I'll dig a little deeper.

Original comment by npbor...@gmail.com on 12 Sep 2008 at 10:18

GoogleCodeExporter commented 8 years ago
It works now.  I must have screwed up the change_form template somehow because 
I did 
an svn revert and it works now.  Sorry.

Original comment by nand...@gmail.com on 12 Sep 2008 at 10:37

GoogleCodeExporter commented 8 years ago

Original comment by npbor...@gmail.com on 8 Oct 2008 at 9:28

GoogleCodeExporter commented 8 years ago
I'm suddenly getting this error as well, after it having worked for years. 
basic.inlines is installed. At first I thought it might be a namespace conflict
because I recently installed django_inlines, but doesn't seem to be - I can 
uninstall
django_inlines and the error persists.

I commented out this line in the template blog/post/change_form.html:

 content += '{#% get_inline_types as inline_list %#}'

and everything seems to be working fine, though I'm not sure what I'm missing by
having that gone.

Original comment by shacker....@gmail.com on 12 Jun 2009 at 10:44

GoogleCodeExporter commented 8 years ago
Be sure and run syncdb after installing inlines. The tag relies on a table 
'inline_types' to be in the db. This tag is 
only used for the custom change_form.html in the admin, it really has no 
outside use. Let me know if that fixes 
the problem.

Original comment by npbor...@gmail.com on 15 Jun 2009 at 7:11

GoogleCodeExporter commented 8 years ago
Heh - A year and a half later, after installing a fresh copy of basic, I'm 
getting
the same error. Yes, I do have the table 'inline_types'. I even dropped it and
recreated it with syncdb. Same issue as before, and again removing that line 
from the
template.

Original comment by shacker....@gmail.com on 15 Apr 2010 at 1:09