Content Management/Models: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
%
<code>
from django.db import models
from django.db import models
class Content(models.Model):
class Content(models.Model):
Line 5: Line 5:
path = models.CharField(max_length=256)
path = models.CharField(max_length=256)
date = models.DateTimeField('date added')
date = models.DateTimeField('date added')
%
</code>

Revision as of 21:37, 19 October 2007

% from django.db import models class Content(models.Model): title = models.CharField(max_length=200) path = models.CharField(max_length=256) date = models.DateTimeField('date added') %