-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
41 lines (22 loc) · 920 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
This file is for you to describe the fa.demo application. Typically
you would include information such as the information below:
Installation and Setup
======================
Install ``fa.demo`` using easy_install::
easy_install fa.demo
Make a config file as follows::
paster make-config fa.demo config.ini
Tweak the config file as appropriate and then setup the application::
paster setup-app config.ini
Then you are ready to go.
Creating models
======================
To create a new model class, type::
paster model mymodel
Once you have defined your model classes in mymodel, import them in fa.demo/models/__init__.py::
from mymodel import MyEntity
To create tables use create_sql::
paster create_sql
To drop tables use drop_sql::
paster drop_sql
Note that you must first import your classes into fa.demo/models/__init__.py in order for the database commands to work !