Hello, I need some help to get the postfix part to work right. Because this is a test setup I don't really send any emails out. How can I create a admin login account without email verification?
Thank you,
best regards
Ralf Wiegand
On 4/28/20 12:25 PM, Ralf Wiegand wrote:
Hello, I need some help to get the postfix part to work right. Because this is a test setup I don't really send any emails out. How can I create a admin login account without email verification?
django-admin createsuperuser
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
(venv-3.6) [root@empire mailman]# django-admin createsuperuser No Django settings specified. Unknown command: 'createsuperuser' Type 'django-admin help' for usage. (venv-3.6) [root@empire mailman]# 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.).
On 4/28/20 3:35 PM, Mark Sapiro wrote:
django-admin createsuperuser
On 4/28/20 12:42 PM, Ralf Wiegand wrote:
(venv-3.6) [root@empire mailman]# django-admin createsuperuser No Django settings specified.
In that case, you need to specify additional options:
--pythonpath /path/to/where/your/settings/are located --settings name_of_your_settings_file_without_the_.py
e.g. something like
django-admin --pythonpath /usr/share/mailman3-web
--settings settings createsuperuser
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark - I have a hard time following this.
/path/to/where/your/settings/are located
what settings? what do I am looking for?
cd /opt/mailman # all mailman applications are under /opt/mailman
ls
django-mailman3 hyperkitty mailman mailmanclient mailman-hyperkitty mailman-suite postorius venv-3.6
settings.py?
/opt/mailman/mailman-suite/mailman-suite_project?
I do not understand???
Ralf
On 4/28/20 3:59 PM, Mark Sapiro wrote:
On 4/28/20 12:42 PM, Ralf Wiegand wrote:
(venv-3.6) [root@empire mailman]# django-admin createsuperuser No Django settings specified.
In that case, you need to specify additional options:
--pythonpath /path/to/where/your/settings/are located --settings name_of_your_settings_file_without_the_.py
e.g. something like
django-admin --pythonpath /usr/share/mailman3-web
--settings settings createsuperuser
On 4/28/20 1:18 PM, Ralf Wiegand wrote:
Mark - I have a hard time following this.
/path/to/where/your/settings/are located
what settings? what do I am looking for?
Based on the traceback from another post:
--pythonpath /opt/mailman/mailman-suite/mailman-suite_project --settings settings.py
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Good morning mark, still not working. Not sure what the issue is.
(venv-3.6) [root@empire mailman-suite_project]# django-admin --pythonpath /opt/mailman/mailman-suite/mailman-suite_project --setting settings createsuperuser No Django settings specified. Unknown command: '--pythonpath' Type 'django-admin help' for usage. (venv-3.6) [root@empire mailman-suite_project]#
Ralf
On 4/28/20 4:23 PM, Mark Sapiro wrote:
On 4/28/20 1:18 PM, Ralf Wiegand wrote:
Mark - I have a hard time following this.
/path/to/where/your/settings/are located
what settings? what do I am looking for? Based on the traceback from another post:
--pythonpath /opt/mailman/mailman-suite/mailman-suite_project --settings settings.py
On 4/29/20 4:55 AM, Ralf Wiegand wrote:
Good morning mark, still not working. Not sure what the issue is.
(venv-3.6) [root@empire mailman-suite_project]# django-admin --pythonpath /opt/mailman/mailman-suite/mailman-suite_project --setting settings createsuperuser No Django settings specified. Unknown command: '--pythonpath' Type 'django-admin help' for usage.
This is partly my fault in that the --pythonpath and --settings options need to come after the createsuperuser subcommand, but also you've misspelled --settings.
Try
django-admin createsuperuser
--pythonpath /opt/mailman/mailman-suite/mailman-suite_project
--settings settings
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
hey Mark, that worked. Thank YOU. Got one step ahead. So after creating a admin account and logging in via the GUI, I get this error message:
IntegrityError at /accounts/login/
UNIQUE constraint failed: account_emailaddress.email
Request Method: POST Request URL: http://192.168.0.27:8000/accounts/login/ Django Version: 2.2.12 Exception Type: IntegrityError Exception Value:
UNIQUE constraint failed: account_emailaddress.email
Exception Location: /opt/mailman/venv-3.6/lib64/python3.6/site-packages/Django-2.2.12-py3.6.egg/django/db/backends/sqlite3/base.py in execute, line 383 Python Executable: /opt/mailman/venv-3.6/bin/python Python Version: 3.6.8
What does this mean?
Thx, ralf
On 4/29/20 10:19 AM, Mark Sapiro wrote:
django-admin createsuperuser
--pythonpath /opt/mailman/mailman-suite/mailman-suite_project
--settings settings
On 4/29/20 7:35 AM, Ralf Wiegand wrote:
hey Mark, that worked. Thank YOU. Got one step ahead. So after creating a admin account and logging in via the GUI, I get this error message:
IntegrityError at /accounts/login/
UNIQUE constraint failed: account_emailaddress.email
Request Method: POST Request URL: http://192.168.0.27:8000/accounts/login/ Django Version: 2.2.12 Exception Type: IntegrityError Exception Value:
UNIQUE constraint failed: account_emailaddress.email
Exception Location: /opt/mailman/venv-3.6/lib64/python3.6/site-packages/Django-2.2.12-py3.6.egg/django/db/backends/sqlite3/base.py in execute, line 383 Python Executable: /opt/mailman/venv-3.6/bin/python Python Version: 3.6.8
What does this mean?
I think it means you have more than one Django account with the same email address.
If you can log in to your django admin interface as the superuser, you may be abl to go to 'Users' and delete one. If you can't log in to your django admin interface as the superuser for this reason, you will probably need to create another superuser.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Ralf Wiegand