Django Apache Redirect Problem

前端 未结 1 1607
别跟我提以往
别跟我提以往 2020-12-10 13:20

I\'m configuring my Django project to run on Apache using mod_wsgi. I am attempting to run Django below the directory \'cflow\' on apache, but am running into problem with r

相关标签:
1条回答
  • 2020-12-10 13:41

    Things to try:

    1. Change current domain to "yourdomain.tld/cflow" in the "sites" framework. It's easy to do using django admin or dumpdata/loaddata manage.py commands.

    2. Looks like your site is using login_required decorator. In that particular case you can add to settings.py:

      LOGIN_URL = '/cflow/accounts/login/'

    0 讨论(0)
提交回复
热议问题