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

http://localhost:8080

 
turbogearstoolbox.txt · Last modified: 2008/04/03 18:38 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki