strongswan / strongMan

Management UI for strongSwan
https://www.strongswan.org/
Other
117 stars 39 forks source link

The SECRET_KEY setting must not be empty #151

Open x86dx2 opened 11 months ago

x86dx2 commented 11 months ago

I cloned the repository, installed the virtual environment, ran the 'run.py,' but when I try to enter the username and password (anyone), I get this error:

OperationalError at /login no such table: auth_user Request Method: POST

Request URL: | http://localhost:1515/login Django Version: | 3.1.14 Exception Type: | OperationalError Exception Value: | no such table: auth_user Exception Location: | /Users/x86/OneDrive/VScode/Docker/strongMan/env/lib/python3.11/site-packages/django/db/backends/sqlite3/base.py, line 413, in execute Python Executable: | /Users/x86/OneDrive/VScode/Docker/strongMan/env/bin/python3.11 Python Version: | 3.11.6 Python Path: | ['/Users/x86/OneDrive/VScode/Docker/strongMan', '/Users/x86/OneDrive/VScode/Docker/strongMan/env/bin',
'/usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python311.zip',
'/usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11',
'/usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload',
'/Users/x86/OneDrive/VScode/Docker/strongMan/env/lib/python3.11/site-packages']

theko2fi commented 11 months ago

Check the permission on the strongMan/strongMan/db.sqlite3 file. That file should be writable by the user your application is running as.