Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Login(View):
- def get(self,request):
- username=request.GET['username']
- password=request.GET['password']
- return login_f(username,password)
- data=(db.employee.find({"Username":"satya"},{"Username":1}))
- print(data)
- # dumps(c.test.test.find())
- return HttpResponse(d({"username":username,"password":password}))
- User.objects.*method*
- create()
- update()
- filter()
- get()
- from django.db import models
- class User(models.Model):
- name = models.CharField(max_length=255)
- age = models.IntegerField()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement