使用DRF开发API
This commit is contained in:
8
myapp_api/models.py
Normal file
8
myapp_api/models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class User(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
city = models.CharField(max_length=100)
|
||||
sex = models.CharField(max_length=100)
|
||||
age = models.IntegerField()
|
||||
Reference in New Issue
Block a user