google-code-export / django-grappelli

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

No it isn't fixed... #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I added the code to both a PageAdmin class and to my admin.py module in
general and to a class of my models.py file.. and TinyMCE doesn't "attach
itself" ... 

I haven't played with the folder in django.admin.contrib but maybe didn't
drop the grappelli ones in the right places....

I currently get this, which I think means that the .js files are loading
but the css are missing....

http://www.scrnshots.com/users/everythingability/screenshots/64030

Original issue reported on code.google.com by remarkability@gmail.com on 23 Sep 2008 at 3:28

GoogleCodeExporter commented 9 years ago
the location of the css-files for tinymce are defined in tinymce_setup.js - 
changing
the URLs there should solve the problem. 

Original comment by sehmaschine on 23 Sep 2008 at 6:06

GoogleCodeExporter commented 9 years ago
is it working? 

Original comment by sehmaschine on 24 Sep 2008 at 7:33

GoogleCodeExporter commented 9 years ago
I got it working... see... 
http://www.scrnshots.com/users/everythingability/screenshots/64394

... My stumbling blocks were that 
a. The path to my django.contrib.admin.media folder is just "/media/" and 
doesn't
have a sub-folder called "admin". I fixed up grappellis' tiny_mce_setup.js and
editor.css file and the icons now load. I haven't changed anything 
out-out-of-the-box. 

...My next challenge is to work out how to do FileBrowsing. Uploading images etc
without it is a usability nightmare. In the past I've used the excellent 
FileBrowser.
What approach would you recommend?

b. You don't make it clear that you need to add the Media class to a model's 
admin
class... like this... which might not be obvious to everyone.

class SerpAdmin(admin.ModelAdmin):
    list_display = ('keyphrase', 'title' ,'url', )
    list_filter = ('cloud', )
    class Media:
        js = ['/media/tinymce_2/jscripts/tiny_mce/tiny_mce.js', 
              '/media/tinymce_setup/tinymce_setup.js',]

... 

It does look bloody lovely, now how about making a super-simple Django app that 
has
templates (table, headers, footer, inputs etc) that use the same (or similar) 
css
files so that I can easily ape the bloody lovely Django admin interface.

Original comment by remarkability@gmail.com on 24 Sep 2008 at 8:29

GoogleCodeExporter commented 9 years ago
b. see "installation" at the google-code startpage.
a (FileBrowsing): I recommmend using the FileBrowser. the FileBrowser is a
standalone-application and you have to install it independent from grappelli.
a. the PATH to my django.contrib.admin.media is /media/ also - BUT, I'm using 
the
ADMIN_MEDIA_PREFIX which, in my case, is /media/admin/.

Original comment by sehmaschine on 24 Sep 2008 at 11:00

GoogleCodeExporter commented 9 years ago

Original comment by sehmaschine on 12 Dec 2008 at 4:03