• Members 15 posts
    Sept. 13, 2017, 12:22 a.m.

    I'm currently checking out multiple python forum frameworks. I've previously checked out FlaskBB and now landed here at misago. Misago has some features like upload I definitely wanted and missed on FlaskBB. But now I have some open questions:

    Is it possible to group the categories with a title? (Like show a title above each category section?)
    Did not found exactly where I would need to do that.

    Is it somehow possible to use redis as a cache? Haven't found anything preconfigured in Django.

    For updates do you turn off the server for like maintenance mode, uninstall old misago, install new? Or how do you manage that?

    Thanks in advance. Would be cool if I can get a response.

    Cheers

  • Sept. 13, 2017, 12:46 a.m.

    Hey!

    Is it possible to group the categories with a title? (Like show a title above each category section?) Did not found exactly where I would need to do that.

    Not really. In "classic" forums you do this by restricting to level of your forums tree to categories that can only contain forums, but those were removed from Misago when it transitioned to flatter structure alike to Discourse or, say Bungie forums. I'm exploring the ways of going further with this change in the forum's UI, but its unlikely that there will be a way to group categories together like it used to be.

    Is it somehow possible to use redis as a cache? Haven't found anything preconfigured in Django.

    Not in core Django, but there are third party apps that provide this functionality for you. This is outside of Misago's scope to deliver however.

    For updates do you turn off the server for like maintenance mode, uninstall old misago, install new? Or how do you manage that?

    Update strategy in Django world, depends between deployment method to deployment method as well as need of changes introduced by releases. Personally I'm not doing anything fancy. Just run fabscript that synces files on server with my repo, whipes old Misago from venv, install clean one via pip install misago, then run migrations.

  • Members 15 posts
    Sept. 13, 2017, 1:01 a.m.

    So if I understand correct you sync the files in the with misago-start.py created folder, uninstall old misago from env and then pip install new?
    During that time your server will be offline correct?

    I might look not trough 100% yet as I'm really used to flask but wanted to give misago a go as it looks very very promising.

    Thanks for your time

  • Sept. 13, 2017, 1:05 a.m.

    Yup.

    Nah. I'm letting the uwsgi's code reloading do its magic. Usually this results in ~1s long downtime which is nothing for me to lose sleep over.

  • Members 15 posts
    Sept. 13, 2017, 1:07 a.m.

    Awesome so I definitely will take a look to see if it will fit our needs. Thanks

  • Members 15 posts
    Sept. 13, 2017, 7:42 p.m.

    If anyone is interested, I added some kind of category titles by adding a custom css class to these top level categories.
    Bildschirmfoto 2017-09-13 um 19.39.49.png

    But now my problem is that some things I'd like to change in the templates will be overwritten by the JS. Is it possible to change the JS without screwing future updates up? (I guess in updates often stuff in JS will change?)
    Would it be a viable solution to just add a JS after the misago JS which will change back things again to my likeings? Or are there any better solutions?

    thanks

    Bildschirmfoto 2017-09-13 um 19.39.49.png

    PNG, 116.8 KB, uploaded by test69 on Sept. 13, 2017.

  • arrow_forward
  • Sept. 13, 2017, 9:57 p.m.

    Yep, editing JS is way to go. Eventually Misago may implement way for users to override individual components in a manner similiar to how Django does it, but it's not priority for now.

    On sidenote, I wouldn't invest too much into editing html templates other than navbar/footer/jumbotron/base.html, as rest of them are on chopping block and will be delegated purely to <noscript> fallback for bots, with rest of looks coming purely from JS views.

  • Members 15 posts
    Sept. 13, 2017, 10:39 p.m.

    Awesome. So I'll take a look into editing misago.js - Do you have any tips on how to maybe save some hassle if on any future update misago.js will change?

    Thanks

  • Sept. 13, 2017, 10:39 p.m.

    Version control and diff is best I can provide at the moment.