Changes between Version 7 and Version 8 of DevModelCreation
- Timestamp:
- Feb 15, 2018, 11:03:28 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevModelCreation
v7 v8 5 5 A couple of preliminaries: Firstly, if you just want to develop systems with Django, this information is not required at all. It is here for people who might want to poke around the internals of Django or fix any bugs that they may find. 6 6 7 Secondly, by the nature of the beast, class creation and initialisation delves a bit into the depths of Python's operation. A familiarity with the difference between a class and an instance, for example, will be helpful here. Section 3.2 of the [http ://docs.python.org/ref/types.htmlPython Language Reference] might be of assistance.7 Secondly, by the nature of the beast, class creation and initialisation delves a bit into the depths of Python's operation. A familiarity with the difference between a class and an instance, for example, will be helpful here. Section 3.2 of the [https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy Python Language Reference] might be of assistance. 8 8 9 9 Unless otherwise noted, all of the files referred to here are in the source code tree in the {{{django/db/models/}}} directory. For reference purposes, imagine that we have a {{{models.py}}} file containing the following model.