开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜