Yes it's possible by overriding the templates of the django admin, see the
section "Django admin custom page layout with custom templates" of this
blog post:
https://www.webforefront.com/django/admincustomlayout.html

The ansible role of OpenWISP 2 already pre-configures the django settings
to look for a "templates" directory in the project root, so if you place
the customized template files in the right place those ones will be read
instead of the default one, with this behaviour you can customize the theme
of OpenWISP.

By default the openwisp code is installed in /opt/openwisp2, so the
templates dire should be at /opt/openwisp2/templates and a modified theme
file should be at /opt/openwisp2/templates/admin/base_site.html.

General information about overriding django templates is available in the
django docs:
https://docs.djangoproject.com/en/2.2/howto/overriding-templates/

Federico

On Sun, Apr 14, 2019 at 7:35 PM A Stanley <[email protected]> wrote:

> I believe it's currently set by 'openwisp_utils.admin_theme'.
> Unfortunately I dont know if it is template able.  I do know if you remove
> that app from django installed apps it falls back to django default style.
>
> On Sun, Apr 14, 2019, 6:51 PM ICore <[email protected]> wrote:
>
>> Is there a way to modify the UI with themes or is there a template to
>> edit to change colors and logo etc?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to