google-code-export / django-treemenus

Automatically exported from code.google.com/p/django-treemenus
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

"Add Item" not showing up in "Change Menu" #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I installed the application as mentioned in the manual
2. I am using extension facility

What is the expected output? What do you see instead?
"Add Item" option

What version of the product are you using? On what operating system?
I am using django 1.1.1 with django-treemenus Release 0.8.5 

Please provide any additional information below.
I have used it before, and it works on that site.

Original issue reported on code.google.com by waqqas.j...@gmail.com on 22 Jan 2010 at 11:02

Attachments:

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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