Additions:
- list_display = ( 'stockName', 'stockQuote' , 'date' )
list_display = ( 'stockName', 'stockQuote' , 'date' )
Displaying different columns:
Additions:
class stockAdmin ( admin.
ModelAdmin ):
inlines = [stockPriceInline]
Additions:
Managing the admin panel
example:
%%(python)
class stockInline ( admin.
TabularInline ): # admin.
StackedInline
model = Stock
extra = 3
Deletions:
django notes
Additions:
django notes
Create a project
django-admin.py startproject mysite
Create a new app:
Several apps can exist in the same project
python manage.py startapp polls
Sync the view with the db
python manage.py syncdb
Run the test server
python manage.py runserver 8080
Show what SQL statements will be generated from models
python manage.py sql appName
Commit the databases changes to the database
python manage.py syncdb