Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bächler committed Feb 8, 2012
0 parents commit ef460a6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Introduction
============

Django-Scaffolding creates placeholder data for your app.


Usage
=====

Create a Scaffolding class within your model which contains the callbacks to fill it with the necesarry data::

import scaffolding

class MyModel(models.Model):
first_name = models.CharField('First Name', max_length=32)
last_name = models.CharField('Last Name', max_length=32)
comment = models.TextField('Comment')
...
class Scaffolding:
first_name = scaffolding.first_name(max_length=32)
last_name = scaffolding.last_name(max_length=32)
comment = scaffolding.lorem(paragraphs=1)

Run the management command to create the data::

manage.py scaffold myapp.MyModel 20
The number stands for the amout of entries.


1 change: 1 addition & 0 deletions scaffolding/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Empty file added scaffolding/models.py
Empty file.

0 comments on commit ef460a6

Please sign in to comment.