WISiWYG with uploading pictures: Django way - django

I'm trying to integrate TinyMCE or CKEditor into Django, but I have no idea how to manage uploading pictures.
I've been searching and found some django apps, but they won't work with my Django version (1.1.1), buggy and not maintained.
Maybe I missed something? Can you please give me a step-by-step guide how to add WYSIWYG with uploading into django form?

Use TinyMCE or CKEditor with django-filebrowser.
Description from the official site:
The FileBrowser is an extension to the Django Admin-Interface in order to
browse directories on your server and upload/delete/edit/rename files.
include images/documents to your models/database using the FileBrowseField.
select images/documents for TinyMCE and CKEditor.

Try this:
https://pypi.python.org/pypi/Django-tinymce-filebrowser
Its allow to manage images and files from tinyMCE

Related

Django CMS CSS styling

so I’m working with Django and I’m trying to figure out how in the edit the CSS using nothing but Django CMS?
Is there a way?
Anything would be helpful.
Django CMS does not have any inline editing features of CSS or any other markup. This is by design and it is not something like Wordpress.
To edit CSS you will need to create your own css files as part of your project.
If you need to add eg an HTML or CSS snippet into a page, there's an offical plugin for that 👌 - https://github.com/django-cms/djangocms-snippet
And as #Aiky30 said, the global CSS code is better to place in static in accordance with django best practices.

Best Way To Serve Images in Django 3.0?

So I 'm working on a project in django - it's like a variation of a blog. There will be 4 mini blogs within the website and the admin for each can create new posts - so they can also add an image to their post.
Now that django has recently been update (django 3.0 is here), I was wondering, what is the best way to store and serve these images in production? Could someone maybe link to a part in the documentation? I don't think this will come under staticfiles will it? I searched the documentation with keywords like "Media", "Serving images" etc but didn't really find much.
EDIT: The project is quite small and I want to save files inside a folder of my django project.

How to add vector images support for ImageChooserBlock in Wagtail CMS?

I want to be able to upload .svg files in ImageChooserBlock. By default, .svg format fails validation when uploading via Wagtail's admin panel. (Vector graphics is not supported in wagtail_images).
I'm using Wagtail 1.12.3.
Solved by installing and configuring wagtail_svgmap extension for Wagtail CMS.

image upload plugin to work with django admin and tiny MCE

I'm looking for a way to upload images to a django filefield through a tiny mce plugin.
I've tried using IBrowser using these instructions and figured I could then just write a python script in place of the php script that comes with the plugin. But I can't even get the button to display with those instructions, let alone rewrite it so that it works with django.
So I'm wondering if there is a well know way to create an upload image button that works with django and will upload to your server or if I can get ibrowser to work in this way.
Currently, tinymce is served to my django admin following the django wikis suggestions. I've tried adding ibrowser with the following file structure:
-tinymce
-plugins
-ibrowser
-editor_plugin.js
-editor_plugin_src.js
-...
but the button doesn't appear.
Again I'm all ears on how to get this to work with the ibrowser plugin or with a better solution.
django-filebrowser is an app that has tinymce support. You will also need to install django-grappelli as a requirement though which will significantly change the appearance of your admin

How do you setup admin media in Webfaction for Django?

I have my django setup. Now i just need to get the admin site to be correct. Currently there is no css asigned to it, so i guese my admin media urls etc in settings file is not correct?
Thanks
Have you read through their docs? Or is there something in there that wasn't working?
This seems more like a question to ask on their forum. Their tech people usually respond pretty quickly.
you need to issue
pythonX.Y manage.py collectstatic
where X.Y is the version of your application's python. this will copy admin media inside your static directory.