Closed CarlSinclair closed 2 months ago
Dependencies are defined in the pyproject.toml
file; perhaps remove (or modify) django-allauth
there? And feel free to do a dependency bump (if everything works smoothly after that bump, please also feel free to upstream it as a PR).
Docker is the only officially supported way of running Shynet—too much surface area for me to maintain otherwise—so I'm going to close this issue, though perhaps others can chime in if they have ideas for how to resolve this issue.
I got the server running and successfully logged in, but I'm getting a weird error:
Forbidden (403)
CSRF verification failed. Request aborted.
Even though the exact domain is in the .env file. I even replaced it with https:// to allow all domains, and the error persists. Is there another setting somewhere for trusted origins?
For anyone who finds this and would like to help, I figured out the django allauth issue from this commit that addresses exactly that.
The command in question is poetry run pip install "Cython<3.0" "pyyaml==5.4.1" "django-allauth==0.45.0" --no-build-isolation
followed by poetry install
Edit: updated instructions to fix my own problem. And help anyone who finds this.
As discussed in #9, I've been trying to get shynet up and running without docker in order to submit a PR with documentation. I'm using RHEL but once done the instructions can easily be translated into Debian or any other Linux flavor.
I'm running into issues. Here's what I've done so far:
sudo dnf install -y python3 python3-pip git gcc
curl -sSL https://install.python-poetry.org | python3 -
git clone https://github.com/milesmcc/shynet.git
cd shynet
npm install
poetry run pip install "Cython<3.0" "pyyaml==5.4.1" "django-allauth==0.45.0" --no-build-isolation
poetry install
.env
file with yourdb
, your domain inallowed_hosts
andcsrf_trusted_origins
, andport
(matching your vhost). I also diddjango_secret_key
andtime_zone
.poetry run python manage.py migrate
poetry run python manage.py collectstatic
python manage.py compilemessages
Here's the output:The updated instructions shouldn't cause this error.I was able to install django-allauth manually using pip, but that doesn't prevent poetry from trying to install it. I couldn't find a requirements.py file to remove it as a dependency.