Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么django注册为自己的文件使用了错误的路径?_Django_Django Registration - Fatal编程技术网

为什么django注册为自己的文件使用了错误的路径?

为什么django注册为自己的文件使用了错误的路径?,django,django-registration,Django,Django Registration,我安装了django registration,并按原样将“registration”文件夹复制到项目中。很长一段时间以来,我不明白为什么forms.py中的更改对显示的结果页没有影响。并发现django注册使用的文件不是来自 \项目\注册 文件夹,但来自 \python\Lib\site packages\django\u registration\u redux-1.1-py2.7.egg\registration 如何为应用程序指出正确的路径 我使用django 1.6和django注册为

我安装了django registration,并按原样将“registration”文件夹复制到项目中。很长一段时间以来,我不明白为什么forms.py中的更改对显示的结果页没有影响。并发现django注册使用的文件不是来自

\项目\注册

文件夹,但来自

\python\Lib\site packages\django\u registration\u redux-1.1-py2.7.egg\registration

如何为应用程序指出正确的路径


我使用django 1.6和django注册

为什么要将注册文件夹复制到项目中?这当然不是应该的。因为应用程序必须在项目文件夹中。不是吗?嗯,我对此知之甚少。但早些时候,当Jango版本1.5在项目文件夹中注册时,项目工作正常。什么改变了?不,不应该。您已经安装了应用程序-因为它位于site packages文件夹中-因此您的项目可以在那里使用它。