Skip to content

Simple python-based web-form that puts the data into a sqlite database

Notifications You must be signed in to change notification settings

ivh/obs-rapport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

To run the code, you need an existing sqlite-database (name to be 
changed in db.py) with the table layed out as below. Then include it
with mod_python into your webpage as below. The live example can be 
visited here: http://www.astronomi2009.se/rapport/


apache-config:
Alias /rapport /path/to/rapport
<Directory /path/to/rapport/>
SetHandler mod_python
PythonHandler db
#PythonDebug On
</Directory>


sqlite-schema:
CREATE TABLE rapp (id INTEGER PRIMARY KEY, antal INTEGER, vem TEXT, var TEXT, vad TEXT, email TEXT, dat TEXT, day INTEGER, mon INTEGER, year INTEGER);

About

Simple python-based web-form that puts the data into a sqlite database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages