Example DBBasic apps (an API, a blog and a microblog) and a template for new DBBasic modules.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-examples.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-examples.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-examples.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add official module template for creating DBBasic packages 17cf88a 1 year, 1 month ago History
logout.py · 206 bytes · 6 lines
1from dbbasic_web.responses import redirect
2
3def handle(request):
4 status, headers, body = redirect('/')
5 headers.append(('set-cookie', 'session=; Max-Age=0; Path=/'))
6 return status, headers, body