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.
精彩评论