λ νΌμλ§ μ΄ν΄ν μ μλ μ½λλ μ’μ§ μμ μ½λμ΄λ€.
λ€λ₯Έ κ°λ°μλ€λ μ½κ² μ΄ν΄ν μ μλ μ½λκ° μ’μ μ½λμ΄λ€.
class http_request
class HttpRequest
_
μ¬μ©νμ§ μμimport json
import re
from django.http import JsonResponse
from django.views import View
from users.models import User
import json
import re
from django.http import JsonResponse
from django.views import View
from users.models import User
class User(models.Model):
name = models.CharField(max_length=45)
email = models.CharField(max_length=100)
password = models.CharField(max_length=100)
mobile = models.CharField(max_length=100)
address = models.CharField(max_length=100)
birth_date = models.DateField()
class User(models.Model):
name = models.CharField(max_length=45)
email = models.CharField(max_length=100)
password = models.CharField(max_length=100)
mobile = models.CharField(max_length=100)
address = models.CharField(max_length=100)
birth_date = models.DateField()
class Meta:
db_table = "user"
class Meta:
db_table = "users"
python manage.py startapp user
python manage.py startapp users