Page not found 404 on Django site?

前端 未结 13 2314
既然无缘
既然无缘 2020-12-14 00:46

I\'m following the tutorial on Django\'s site to create a simple poll app. However, Django is unable to resolve \"//127.0.0.1:8000/polls\" , even though I\'ve defined the re

13条回答
  •  伪装坚强ぢ
    2020-12-14 00:59

    In my case, it was a stupid mistake. I wanted to integrate the plugin django-tinymce, and test it. So following this guide, I did the step 3 and exported the variable to the path. As the server runned again, I received the not found error, showing the message:

    Using the URLconf defined in testtinymce.urls, Django tried these URL patterns, in this order: ....

    But I didn't know what exactly it was, until I remembered exporting the variable DJANGO_SETTINGS_MODULE

    running unset DJANGO_SETTINGS_MODULE in terminal solved my issue. Hope that it helps someone too.

提交回复
热议问题