Closed GoogleCodeExporter closed 9 years ago
Hi and thanks for your report. I cannot reproduce this bug. Could you please
provide
more details and/or some sample project code?
Original comment by jpha...@gmail.com
on 22 Jan 2010 at 9:54
It is possible that i might be doing (or not doing) something that is the cause
of
the problem. Do you know of anything that might cause this problem? Is there any
dependencies of tree-menus that i should know...?
Original comment by waqqas.j...@gmail.com
on 23 Jan 2010 at 5:58
I had a similar problem, wich has dared addition of strings:
from treemenus.admin import MenuItem
admin.site.register (MenuItem)
In admin.py of the project
Original comment by alexande...@gmail.com
on 26 Jan 2010 at 7:46
I also face that problem when I change the apps name from "treemenus" to other
name
say "treemenus_1", the problem occur. It seems missing the "change_form.html"
template file.
Original comment by kayu...@gmail.com
on 26 Jan 2010 at 8:18
Try copy the treemenus\templates\admin to
django\contrib\admin\templates\admin\treemenus
If you have two or more models copy treemenus\templates\admin to
django\contrib\admin\templates\admin\treemenus_01
Original comment by kayu...@gmail.com
on 26 Jan 2010 at 9:39
Same problem. Is there another way to fix it aside from copying the templates
into
the django package, like adding something to TEMPLATE_DIRS? If the install is
working correctly, how are the templates supposed to be found?
Original comment by smc...@gmail.com
on 29 Jan 2010 at 6:28
For the record, i installed this application with setup.py, which i think means
it's
treated as an egg. i added 'django.template.loaders.eggs.load_template_source'
to
TEMPLATE_LOADERS but that didn't help as i thought it would. i copied
treemenus\templates\admin into my project's templates directory, but would like
to
know why it didn't work out of the box.
Original comment by smc...@gmail.com
on 29 Jan 2010 at 6:37
Thanks for the detailed comments.
For the templates to work, it is expected that you add
"django.template.loaders.app_directories.load_template_source" to the
TEMPLATE_LOADERS in your settings. Otherwise, you will need to copy the
templates in
the project template wherever you've set up your project to look for templates.
It is also required that the folder is called "treemenus", as there currently
is no
simple way to rename application labels in Django. If you really want to rename
it,
I'm afraid you'll have to fork the code.
As for loading templates in eggs, I've noticed that easy_install actually grabs
an
old version of treemenus (0.8) so I couldn't properly test it. I'll try to fix
the
easy_install process first and then take a look this template loading issue.
Original comment by jpha...@gmail.com
on 14 Feb 2010 at 7:06
I still can't reproduce this issue I'm afraid. Please feel free to reopen if
you have more details to provide.
Original comment by jpha...@gmail.com
on 9 Oct 2010 at 2:09
I miss about half of hour to uncomment one line in settings.py
"django.template.loaders.app_directories.load_template_source"
Please, show exception at edit page, if that fucking shit not inited ok.
Very fucking issue.
Original comment by vect...@gmail.com
on 29 Nov 2010 at 8:11
I had this exact same problem and it seemed to be file permission on the admin
module and the templates
Original comment by caf...@gmail.com
on 15 Nov 2011 at 1:44
Try putting the source code of thi in the django instead of using the egg
Original comment by waqqas.j...@gmail.com
on 15 Nov 2011 at 4:09
Original issue reported on code.google.com by
waqqas.j...@gmail.com
on 22 Jan 2010 at 11:02Attachments: