Changes between Version 5 and Version 6 of DjangoCheatSheet


Ignore:
Timestamp:
06/20/2006 12:49:20 AM (9 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DjangoCheatSheet

    v5 v6  
    3434
    3535
    36 '''create your data model'''
     36=== Create your data model ===
    3737{{{
    3838from django.db import models
     
    4444  dollar_amount = models.FloatField('Cost (in dollars)', max_digits=10, decimal_places=2)
    4545}}}
     46see: [http://www.djangoproject.com/documentation/model_api/ model api], [http://www.djangoproject.com/documentation/models/ model examples]
    4647
    4748validate your model and and commit to database:
     
    5152python manage.py syncdb
    5253}}}
    53 see: [http://www.djangoproject.com/documentation/model_api/ model api], [http://www.djangoproject.com/documentation/models/ model examples]
    5454
    5555
    5656
    57 '''design your urls'''
     57
     58=== Design your urls ===
    5859
    5960in the project root directory, edit urls.py:
     
    7980''see: [http://www.djangoproject.com/documentation/generic_views/ generic views]
    8081
    81 '''Create your templates'''
     82=== Create your templates ===
    8283
    8384First create ''Acme_base.html'' in templates
     
    9798
    9899
    99 ''see: [http://www.djangoproject.com/documentation/templates/ template authoring guide]
     100''see: [http://www.djangoproject.com/documentation/templates/ template authoring guide]''
    100101
    101102
Back to Top