mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
Merge pull request #1363 from fyfe/prepare-for-release
prepare for release
This commit is contained in:
+4
-4
@@ -33,10 +33,10 @@ before_install:
|
||||
- pip install codecov
|
||||
|
||||
install:
|
||||
- pip install -q -r requirements.txt
|
||||
- pip install -q -r ldap-requirements.txt
|
||||
- pip install -q -r test-requirements.txt
|
||||
- python setup.py -q develop
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r ldap-requirements.txt
|
||||
- pip install -r test-requirements.txt
|
||||
- python setup.py develop
|
||||
|
||||
before_script:
|
||||
- mkdir /tmp/slapd
|
||||
|
||||
+22
-10
@@ -94,12 +94,24 @@ Specific instructions
|
||||
1.10.0
|
||||
======
|
||||
|
||||
First of all, update postfix map files as follows:
|
||||
Edit the :file:`settings.py` file and replace the following line:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
|
||||
by:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
MIDDLEWARE = (
|
||||
|
||||
Update postfix map files as follows:
|
||||
|
||||
.. sourcecode:: bash
|
||||
|
||||
> python manage.py generate_postfix_maps --destdir <path>
|
||||
|
||||
|
||||
Then, modify postfix's configuration as follows::
|
||||
|
||||
smtpd_sender_login_maps =
|
||||
@@ -236,9 +248,9 @@ Edit your :file:`settings.py` file and apply the following modifications:
|
||||
* Remove the ``SWAGGER_SETTINGS`` variable
|
||||
|
||||
* Add the following content
|
||||
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
|
||||
# CKeditor
|
||||
|
||||
CKEDITOR_UPLOAD_PATH = "uploads/"
|
||||
@@ -332,7 +344,7 @@ Edit the :file:`settings.py` and apply the following changes:
|
||||
* Add ``'modoboa.core.middleware.LocalConfigMiddleware'`` to ``MIDDLEWARE_CLASSES``:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
@@ -468,7 +480,7 @@ First of all, update postfix map files as follows:
|
||||
.. sourcecode:: bash
|
||||
|
||||
> python manage.py generate_postfix_maps --destdir <path> --force-overwrite
|
||||
|
||||
|
||||
Then, modify postfix's configuration as follows::
|
||||
|
||||
smtpd_sender_login_maps =
|
||||
@@ -603,7 +615,7 @@ your :file:`settings.py` file, make sure it looks like this::
|
||||
|
||||
.. warning::
|
||||
|
||||
Do not follow the regular upgrade procedure for this version.
|
||||
Do not follow the regular upgrade procedure for this version.
|
||||
|
||||
Some extension have been moved back into the main repository. The main
|
||||
reason for that is that using Modoboa without them doesn't make sense.
|
||||
@@ -628,7 +640,7 @@ Then, apply the following steps:
|
||||
$ pip uninstall modoboa-admin modoboa-admin-limits modoboa-admin-relaydomains
|
||||
|
||||
#. Install all extension updates using pip (check the *Modoboa > Information* page)
|
||||
|
||||
|
||||
#. Manually migrate database::
|
||||
|
||||
$ cd <instance_dir>
|
||||
@@ -648,7 +660,7 @@ This version also introduces a REST API. To enable it:
|
||||
#. Add ``'rest_framework.authtoken'`` to the ``INSTALLED_APPS`` variable
|
||||
|
||||
#. Add the following configuration inside ``settings.py``::
|
||||
|
||||
|
||||
# Rest framework settings
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
@@ -780,7 +792,7 @@ versions. To activate it, you need to update the
|
||||
``TEMPLATE_CONTEXT_PROCESSORS`` variable like this::
|
||||
|
||||
from django.conf import global_settings
|
||||
|
||||
|
||||
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
|
||||
'modoboa.core.context_processors.top_notifications',
|
||||
)
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.8 on 2018-01-24 23:11
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('admin', '0012_auto_20180112_1658'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='domain',
|
||||
name='dkim_key_selector',
|
||||
field=models.CharField(default='modoboa', max_length=30),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='domain',
|
||||
name='type',
|
||||
field=models.CharField(default='domain', max_length=20),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='mailboxoperation',
|
||||
name='type',
|
||||
field=models.CharField(choices=[('rename', 'rename'), ('delete', 'delete')], max_length=20),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user