Python 我在管理员登录时收到PermissionError
我刚到django。我尝试在django中创建超级用户。我完成了所有步骤,它们在终端中显示了我成功创建超级用户的过程。但当我转到服务器时,它显示权限错误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。但同样的问题仍然存在。首先,它们显示找不到模板
# 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/
一切恢复正常