Hi John,
On Mar 16, 2021, at 6:58 AM, John Covici <covici@ccs.covici.com> wrote:
Hi. I am trying to setup postorius, but I have run into a problem. I am using the example project, except I am using postgresql instead of sqlite3. I ran python manage.py migrate which was successful.
Are you trying to setup locally for development or are you setting up a production installation?
On running the development server I get: Exception in thread django-main-thread: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/django/utils/module_loading.py", line 20, in import_string return getattr(module, class_name) AttributeError: module 'postorius.middleware' has no attribute ‘APICountingMiddleware'
APICountingMiddleware is from a development branch of Postorius, so unless you are installing from git, this won’t be present since it hasn’t been released.
If you are actually doing development, you want to install from the Git source tree by running:
$ pip install -e .
You can skip the -e
if you want to install from git but not develop.
From the top level directory of Postorius (where setup.py is, one level above example_project).
If you are trying to setup a production installation, you want settings from https://mailman-web.readthedocs.io/en/latest/settings.html#mailman_web.setti...
This is for both Postorius and Hyperkitty.
thanks, Abhilash