用户只能使用 界面URL 对其View
###
api-auth/
###
from django.test import Client
c = Client()
c.login(username="tcmking",password="tcmking")
res = c.get("/createproject/")
res.status_code
res.content
用户只能使用 界面URL 对其View
###
api-auth/
###
from django.test import Client
c = Client()
c.login(username="tcmking",password="tcmking")
res = c.get("/createproject/")
res.status_code
res.content