close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
- Timestamp:
-
Jul 7, 2008, 9:37:52 PM (16 years ago)
- Author:
-
cmlenz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
2 | 2 | |
3 | 3 | Geddit is an example application [source:trunk/diva/examples/geddit included] with Diva. It was ported from the [http://www.cherrypy.org/ CherryPy]-based [http://genshi.edgewall.org/wiki/GenshiTutorial Genshi tutorial]. |
| 4 | |
| 5 | == Database Creation == |
| 6 | |
| 7 | This example uses SQLite. To initialize the database, use the following command from the Geddit source directory: |
| 8 | |
| 9 | {{{ |
| 10 | sqlite3 geddit.db < geddit/conf/schema.sql |
| 11 | }}} |
| 12 | |
| 13 | This should create a `geddit.db` file in the current directory, and create the `link` and `comment` tables used by the application. |
| 14 | |
| 15 | == Running the Application == |
| 16 | |
| 17 | Now, you can run the example app by invoking the following command from the Geddit source directory: |
| 18 | |
| 19 | {{{ |
| 20 | python geddit/app.py -rv |
| 21 | }}} |
| 22 | |
| 23 | This enables verbose logging and automatic reloading. You should now be able to visit the site at http://localhost:8080/. |
| 24 | |