Code

Changes between Version 20 and Version 21 of DjangoCheatSheet


Ignore:
Timestamp:
11/29/10 06:14:46 (3 years ago)
Author:
sgriffee
Comment:

Added note: 'Add your app to INSTALLED_APPS in settings.py'

Legend:

Unmodified
Added
Removed
Modified
  • DjangoCheatSheet

    v20 v21  
    4646}}} 
    4747see: [http://www.djangoproject.com/documentation/model_api/ model api], [http://www.djangoproject.com/documentation/models/ model examples] 
     48 
     49add your app to INSTALLED_APPS in settings.py: 
     50{{{ 
     51INSTALLED_APPS = ( 
     52    'django.contrib.auth', 
     53    'django.contrib.contenttypes', 
     54    'django.contrib.sessions', 
     55    'django.contrib.sites', 
     56    'django.contrib.messages', 
     57    # Uncomment the next line to enable the admin: 
     58    'django.contrib.admin', 
     59    'AcmeIntranet.invoices', 
     60) 
     61}}} 
    4862 
    4963validate your model and commit to database: