openchatai/OpenChat

dj backend csfr error

JuergenCornely opened this issue · 11 comments

I try to use the new django. I got it installed, but when i try to conect i got a CSRF verification error from Django.. any hints for me

Thanks a lot ill try it..

By the way it is listening on port 8001?

i thought so, but the web container is mapping 8001 to 8000.. I ve loaded the latest Version.. But its the same

Please update .env with the following and restart your containers

ALLOWED_HOSTS=localhost,0.0.0.0
APP_URL=http://0.0.0.0:8000

then navigate to http://0.0.0.0:8001/login

Default admin user
user - admin
password - admin_password

Please consider updating the readme.md if it fixes your problem

Same problem, i get the login Page. After pressing the login button i got the CSFR verification failed

in my envoirment the makefile at the force_migrate section goes to the docker Container web. But the installtion makes a container oc_web.. hope this can help

Temporarelly you can bypass in settings.py

'django.middleware.csrf.CsrfViewMiddleware',

Can you check now please? Get the latest release.

It works, thanks a lot...