On Sat, Oct 15, 2022 at 1:47 PM Martin Lorenz <git...@member.holoclan.de>
wrote:

> Thanks for you hint.
>
> unfortunately I still doubt that everything is working correctly in my
> setup.
> This is what I get, when trying to user django_admin:
>
> ```
> (venv) mailman@arda:~/venv$ /opt/mailman/mm/bin/django-admin
> hyperkitty_import -l stammesleit...@list.poc.im
> /data/var/lib/mailman/archives/private/stammesleitung.mbox/stammesleitung.mbox
> bash: /opt/mailman/mm/bin/django-admin: No such file or directory
> (venv) mailman@arda:~/venv$ /opt/mailman/
> .cache/         fulltext_index/ mm/             venv/           web/
>
> (venv) mailman@arda:~/venv$ /opt/mailman
> mailman/        mailman-2.1.39/
> (venv) mailman@arda:~/venv$ /opt/mailman/mm/var/
> archives/  cache/     data/      etc/       lists/     locks/     logs/
>   messages/  queue/     templates/
> (venv) mailman@arda:~/venv$ /opt/mailman/mm/var/
> archives/  cache/     data/      etc/       lists/     locks/     logs/
>   messages/  queue/     templates/
> (venv) mailman@arda:~/venv$ find /opt -name django-admin
> /opt/mailman/venv/bin/django-admin
> (venv) mailman@arda:~/venv$ bin
> bin/  bind
> (venv) mailman@arda:~/venv$ bin/django-admin   hyperkitty_import -l
> stammesleit...@list.poc.im
> /data/var/lib/mailman/archives/private/stammesleitung.mbox/stammesleitung.mbox
> No Django settings specified.
> Unknown command: 'hyperkitty_import'
> Type 'django-admin help' for usage.
> (venv) mailman@arda:~/venv$ bin/django-admin help
>
> Type 'django-admin help <subcommand>' for help on a specific subcommand.
>
> Available subcommands:
>
> [django]
>     check
>     compilemessages
>     createcachetable
>     dbshell
>     diffsettings
>     dumpdata
>     flush
>     inspectdb
>     loaddata
>     makemessages
>     makemigrations
>     migrate
>     runserver
>     sendtestemail
>     shell
>     showmigrations
>     sqlflush
>     sqlmigrate
>     sqlsequencereset
>     squashmigrations
>     startapp
>     startproject
>     test
>     testserver
> Note that only Django core commands are listed as settings are not
> properly configured (error: Requested setting INSTALLED_APPS, but settings
> are not configured. You must either define the environment variable
> DJANGO_SETTINGS_MODULE or call settings.
> configure() before accessing settings.).
>

I did not literally mean that you should run the command I gave :)
Rather it was a pointer to what you needed to consider.
As you can see, my installation path is different than yours so running the
command literally would not work as it doesn't.
It's good you found yours.
Question now is - do you have settings_local.py in that setup?
Mine is /opt/mailman/mm/settings_local.py


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to