Imported to main repo

This commit is contained in:
Spitap
2022-12-05 16:57:38 +01:00
parent e6d9833012
commit 39af0485f8
19 changed files with 892 additions and 13 deletions
+15
View File
@@ -183,6 +183,8 @@ To work properly, the system user which runs modoboa (``www-data``,
``apache``, whatever) must have write access to this directory.
.. _customization:
*************
Customization
*************
@@ -202,6 +204,19 @@ relative URL of your logo under ``MEDIA_URL``. For example::
Then copy your logo file into the directory indicated by
``MEDIA_ROOT``.
Custom new admin sub-url
========================
You can edit the new admin sub-url (by default it is `/new-admin`).
To do so, open the :file:`settings.py` file and add (or uncomment)
``NEW_ADMIN_URL`` variable. This variable must contain a relative url
without initial and last `'/'`. For example::
NEW_ADMIN_URL = 'test_admin'
You will need to change you web server accordingly and rebuild the frontend.
******************
Host configuration
******************
+35
View File
@@ -91,6 +91,41 @@ Rebuild Virtual Environment
Specific instructions
*********************
2.0.4
=====
* Add ``'modoboa.core.context_processors.new_admin_url',`` at the end of `context_processors` list:
.. sourcecode:: python
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'modoboa.core.context_processors.top_notifications',
'modoboa.core.context_processors.new_admin_url',
],
'debug': False,
},
},
]
* You now have the possibility to customize the url of the new-admin interface.
To do so please head up to :ref:`the custom configuration chapter <customization>` (advanced user).
2.0.3
=====