TinyMCE + Filebrowser (can't make integration)
Help me anyone. I installed separately: 1) grappelli, filebrowser, tinymce. Filebrowser works good, tinymce works good but if I try to get widget of filebrowser from tinymce form (insert image) then I get standart upload interface from tinymce. I want to get my filebrowser interface. In my app folder I made admin.py file: from django.contrib import admin class MyModelAdmin(admin.ModelAdmin): class Media: js = ['/static/tiny_mce/tiny_mce.js', '/static/filebrowser/js/ TinyMCEAdmin.js',] admin.site.register(MyModelAdmin) I can't find manual where I would take right advises for such integration. Please, help me with settings. Best regards, George -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django-filebrowser path problems
I decided my problem! If you use dynamic method for getting you path, example: import os SITE_ROOT = os.path.realpath(os.path.dirname(__file__)) MEDIA_ROOT = os.path.join(SITE_ROOT, 'media') you can dismiss path of you real folder especially when project lies outside of the site root. I check it out in folder with project: python manage.py shell >>> from django.conf import settings >>> import filebrowser.settings >>> filebrowser.settings.MEDIA_ROOT /var/www/mysite.com/media >>> filebrowser.settings.DIRECTORY uploads/ you can check is or not is such folder: (/var/www/mysite.com/media/ uploads/) Good luck! On Feb 4, 2:34 pm, gerram <georgemal...@gmail.com> wrote: > Can anybody to help me with demo project of correct settings.py for > django-filebrowser and structure of folders. I tried very much places > of locate FILEBROWSER folders for media and uploads but always get > such error: 'Error finding Upload-Folder (MEDIA_ROOT + > FILEBROWSER_DIRECTORY). Maybe it does not exist?' > Best regards, George -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django-filebrowser path problems
Can anybody to help me with demo project of correct settings.py for django-filebrowser and structure of folders. I tried very much places of locate FILEBROWSER folders for media and uploads but always get such error: 'Error finding Upload-Folder (MEDIA_ROOT + FILEBROWSER_DIRECTORY). Maybe it does not exist?' Best regards, George -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: don't work Flatpages
I decided this problem. The matter of it was SITE_ID in settings.py. The facto of the matter that Flatpages from box has default site example.com as default. If you create new your site before deleting example.com you get SITE_ID: 2 and etc for your site. After that you can delete example.com but your site will be still with ID:2 and more. However in settings.py you get as default SITE_ID:1. You have to be carefully with SITE_ID if you are going to work with Flatpages. Regards, George. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
don't work Flatpages
Hi, everybody! I tried to set Flatpages about 3 days but I could get only "404" error in browser. If someone had a few time look at my settings: http://files.mail.ru/JXHUOU Enter for admin part: user:Django, pass:Django Regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.