turbogearstoolbox
Turbo Gears Toobox
tg-admin quickstart jmeno projektu: foto
cd foto tg-admin toolbox
tg-admin toolbox -c ::ffff:127.0.0.1
ModelDesigner
Add New Class (Fotografie)
Add Columns (dva textove sloupce, ktere se jmenuji nazev a soubor)
Generate Code (button Write to file and Create Tables)
SQLite
sqlite3 devdata.sqlite
CREATE TABLE fotografie ( id INTEGER PRIMARY KEY, nazev TEXT, soubor TEXT );
INSERT INTO "fotografie" VALUES(1,'Acko','aaa.txt');
Prikazy sqlite3
.help .databases .tables .schema fotografie .dump fotografie .mode list .mode html .mode insert .headers on .explain on .quit
Zpet na Toolbox
CatWalk
./start-foto.py
Serving HTTP on http://0.0.0.0:8080
turbogearstoolbox.txt · Last modified: 2008/04/03 16:38 by 127.0.0.1