6 This installation guide covers Postorius, the web user interface for
7 GNU Mailman 3. To install GNU Mailman follow the instructions in the `documentation`_.
10 .. _documentation: http://docs.mailman3.org/en/latest/
15 Postorius supports Python 3.5+ and Django 2.0+.
21 If you just want to install the latest release of Postorius, install it from
26 $ pip install postorius
32 If you want to always be up to date with the latest development version, you
33 should install Postorius using git:
37 $ git clone https://gitlab.com/mailman/postorius.git
39 $ python setup.py develop
42 This note only pertains to development installs and should not be used when
43 doing production installs.
45 When setting up or running your local dev environment, you may run into some
46 errors. You may want to consider installing mailman modules from source as
47 changes may not yet be published to PyPI. Example usage below:
51 $ pip install -U git+https://gitlab.com/mailman/mailmanclient.git
53 Setup your django project
54 =========================
56 Since you have now installed the necessary packages to run Postorius, it's
57 time to setup your Django site.
59 You can find an example project in ``example_project`` in the root of
60 ``postorius'`` git repository.
62 Change the database setting in ``example_project/settings.py`` to
63 your preferred database, if you want something other than SQlite.
66 Detailed information on how to use different database engines can be found
67 in the `Django documentation`_.
69 .. _Django documentation: https://docs.djangoproject.com/en/1.9/ref/settings/#databases
71 Third, prepare the database:
76 $ python manage.py migrate
78 This will create the ``postorius.db`` file (if you are using SQLite) and will setup all the
81 To create a superuser which will act as an admin account for Postorius, run the
85 $ python manage.py createsuperuser
88 Running the development server
89 ==============================
91 The quickest way to run Postorius is to just start the development server:
96 $ python manage.py runserver
100 You should use the development server only locally. While it's possible to
101 make your site publicly available using the dev server, you should never
102 do that in a production environment.