Django - Model

django

With django ORM, can we still write our own SQL statements?

Yes. Define your data models entirely in Python. You get a rich, dynamic database-access API for free — but you can still write SQL if needed. https://www.djangoproject.com/

How can we create a model?

Your models should be created inside the models.py.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License