• Members 4 posts
    April 16, 2019, 3:15 p.m.

    I wanted to customize some views and looking up the forum found out that theme directory serves exactly this purpose. However (maybe because I did not install the docker instance, but created a simple local installation) the theme folder did not exist. Anyway, I created it and added this directory to the TEMPLATES setting, like this:
    ...
    TEMPLATES = [
    {
    "BACKEND": "django.template.backends.django.DjangoTemplates",
    "DIRS": [os.path.join(os.path.join(os.path.join(os.path.dirname(BASE_DIR), 'misago'), 'theme'), 'templates')],
    "APP_DIRS": True,
    "OPTIONS": {
    "context_processors": [
    ...

    So Django finds the templates in theme.
    Is this the right way to do it in Misago, or am I missing something?

    Thx!

  • April 16, 2019, 9:33 p.m.

    Its only way to customize Django-generated HTML. Remember that part of UI is generated by React.js that's located in the frontend directory.

  • Members 29 posts
    April 16, 2019, 11:23 p.m.

    Disable Javascript in your browser it will work that way. But with Javascript enabled you will not notice the changes you need to play with frontend using gulp watch.