doccano: `Create` button does not do anything

How to reproduce the behaviour

After following the tutorial and setting up the localhost server, I logged in and tried to create a toy sequence labeling project, and then when I click Create nothing happens. I see no errors on the terminal windows either.

I saw an issue that was closed a couple days ago with the same problem but I have no idea what the solution was.

Your Environment

  • Operating System: macOS BigSur 11.6
  • Python Version Used: 3.8.0
  • When you install doccano: yesterday
  • How did you install doccano (Heroku button etc): pip within a venv environement

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

This issue is related to the CORS headers, @slkh . It works if you’ll add your domain name in .env file, for example, doccano.org: CSRF_TRUSTED_ORIGINS=doccano.org and expose this variable in the backend specification located in docker-compose.prod.yml:

    environment:
      CSRF_TRUSTED_ORIGINS: "${CSRF_TRUSTED_ORIGINS}"

But I’d really like for it to work without docker and get the issue fixed. 😃

I think so. I found I need to improve logging to find where is the problem.

Anyway, thank you for reporting the issue.

Thanks for fixing my text.

No, I got the 404 when I forgot the last / in localhost:8000/admin/

This is normal behavior. So this is not related to this issue.