Django 2 Web Development Cookbook
上QQ阅读APP看书,第一时间看更新

Introduction

When you start a new app, the first thing that you do is create the models that represent your database structure. We are assuming that you have already created Django apps, or, at the very least, have read and understood the official Django tutorial. In this chapter, you will see a few interesting techniques that will make your database structure consistent throughout the different apps in your project. Then, you will see how to create custom model fields, in order to handle the internationalization of the data in your database. At the end of the chapter, you will see how to use migrations to change your database structure during the process of development.