Can I make a field in database use this django code ,and don't use 'python manage.py startapp xx'
from django.db开发者_开发问答 import models
class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
Is this possible?
If you only want to access a database from Python, I recommend you use SQLAlchemy instead.
精彩评论