1# All Django Class Meta Attributes
2abstract
3app_label
4base_manager_name
5db_table
6Table names
7db_tablespace
8default_manager_name
9default_related_name
10get_latest_by
11managed
12order_with_respect_to
13ordering
14permissions
15default_permissions
16proxy
17required_db_features
18required_db_vendor
19select_on_save
20indexes
21unique_together
22index_together
23constraints
24verbose_name
25verbose_name_plural
1$python manage.py shell
2
3>>> from myapp.models import Dreamreal, Online
4>>> dr1 = Dreamreal()
5>>> dr1.website = 'company1.com'
6>>> dr1.name = 'company1'
7>>> dr1.mail = 'contact@company1'
8>>> dr1.phonenumber = '12345'
9>>> dr1.save()
10>>> dr2 = Dreamreal()
11>>> dr1.website = 'company2.com'
12>>> dr2.website = 'company2.com'
13>>> dr2.name = 'company2'
14>>> dr2.mail = 'contact@company2'
15>>> dr2.phonenumber = '56789'
16>>> dr2.save()