Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/20.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
Python 我在管理员登录时收到PermissionError_Python_Django - Fatal编程技术网

Python 我在管理员登录时收到PermissionError

Python 我在管理员登录时收到PermissionError,python,django,Python,Django,我刚到django。我尝试在django中创建超级用户。我完成了所有步骤,它们在终端中显示了我成功创建超级用户的过程。但当我转到服务器时,它显示权限错误 # this code from admin.py from django.contrib import admin from .models import Destinations admin.site.register(Destinations) 我在没有缓存的情况下重新安装了django。但同样的问题仍然存在。首先,它们显示找不到模板

我刚到django。我尝试在django中创建超级用户。我完成了所有步骤,它们在终端中显示了我成功创建超级用户的过程。但当我转到服务器时,它显示权限错误

# this code from admin.py
from django.contrib import admin
from .models import Destinations

admin.site.register(Destinations)
我在没有缓存的情况下重新安装了django。但同样的问题仍然存在。首先,它们显示找不到模板,然后我创建了一个文件
logging.html
。但它们再次显示了权限错误

# this code from admin.py
from django.contrib import admin
from .models import Destinations

admin.site.register(Destinations)
权限错误:[Errno 13]权限被拒绝:“C:\Users\abc\projects\amar\templates\admin\login.html”


我也有同样的问题。这是目录和文件的权限错误

我使用:

Chmod -R 775 templates/
一切恢复正常