django-blog-zinnia / zinnia-wysiwyg-tinymce

BSD 3-Clause "New" or "Revised" License
4 stars 10 forks source link

Update to Django 2 #11

Closed gohanko closed 5 years ago

gabn88 commented 6 years ago

When does this get merged in?

gohanko commented 6 years ago

I don't think its his priority now. I did wrote a small app separate from this that uses tinymce 4 but I removed it since I wasn't using it and no one was using it either. Basically the app just use applies the tinymce js to the admin dashboard. It was around 3 lines of code with a dependency called django-tinymce-lite

gohanko commented 6 years ago

That thing is much more simpler than this.

gabn88 commented 6 years ago

Ok, I'm now starting a new blog with Django. Do you recommend something else then Django zinnia? It is quite a lot of work to setup and I don't like the template overloading.

gohanko commented 6 years ago

In all honesty, if you are just starting a blog, you should use something like GitHub pages, you'll avoid all the headache of coding and deploying the webapp, if you need custom functionalities, then this should be fine. One thing with django is that it is quite bloated, even the functionalities that comes with the apps like zinnia is very bloated. I also really dislike the template overloading, its a pain to figure out how it works and build it accordingly. Honestly, if I were to build a blog using python now, I would just code it with something like flask, at least you know the components of your site and at least it isn't bloated like django is and you have full control except for the low level stuff that flask handles.

gabn88 commented 6 years ago

Ok, thanks. I have already a huge django webapp and thought it would be easy to add a blog to it. Will think about the options, as I don't like re-inventing the wheel.

gohanko commented 6 years ago

Imo django is more suitable to big production sites rather than small websites. If you are building a blogging service to sell, django is perfect but for a small site, I think its just an overkill. Big sites always use most of the functionalities django provides and apps like zinnia provides but smaller sites almost never use them or doesn't care about it.

gohanko commented 6 years ago

@gabn88 adding django zinnia is easy. I could help you figure out how to add tinymce4 to your site, this one uses the old 3.5 which lacks features such as code highlighting. I should have kept the django app I wrote up on pypi at least. The template overload is very "messy" but is doable. It takes a lot of set up time but shouldn't take more than a day, I got my blog up in 1 day before.

gabn88 commented 6 years ago

Ok, thank you. I got django-zinnia working, but after adding zinnia-theme-bootstrap things started to break down. I'm quite sure django-app-namespace-template-loader is the culprit, but that is also needed for zinnia-threaded-comments.

So I'm now thinking to stop using comments for now, most blog posts will be added to our facebook page anyway, and there is place enough for comments. Or maybe just create our own threated comments template to start with.

gohanko commented 6 years ago

You could disable the comments and use something like discuss for it. By the way, zinnia-theme-bootstrap is just template overrides, so it's best to just copy what you need from the zinnia source and paste and modify it as you need, just so you have the latest version rather than one from a few years ago.

gabn88 commented 6 years ago

To be honoust, I think I will just include 1 default template and not use {{ object.content_template }} at all. That makes things so hard to understand. However, I guess we're still stuck with the fact that on the home page and the detail page the same template has to be used, which is already a bogger :(

gohanko commented 6 years ago

Not really, you can use a separate template for the list and a separate template for the details page. I forgot what it is though, so you probably need to spend some time experimenting.

gohanko commented 6 years ago

It was something around _entry_detail.html, _entry_detail_base.html, entry_detail.html, entry_detail_base.html or entry_archive or entry_list.html

gabn88 commented 6 years ago

I think I found it: https://github.com/Fantomas42/django-blog-zinnia/issues/383 Hmm, I thought this was going to be easy ;) I just wanted a blog with search, list view and detail view. :grinning:

gohanko commented 6 years ago

Oh man, I didn't find that the first time, had to spend a few hours experimenting.