An example site using features like templates, sub-apps, forms, sessions and authentication
Switch branches/tags
Nothing to show



This is an example of configuring webpy under Debian / Ubuntu. I wrote it
trying to figure out and stubbed my toe so often that I hoped to help
others out there avoid the problems I had. This app provides examples of the
following things:

  o Templates and form handling
  o Database of user accounts
  o Session management using database backend
  o Authentication using application sessions, HTTP Basic and OAuth
  o REST interface implementation examples with a commandline client
  o User account management

I do my development on Debian Wheezy and Unstable, but I am fairly confident
that recent (Spring 2013) Ubuntu releases should work as well. To install
this in a semi-automated way, run these commands or ones like them from the
root of the source tree:

  $ sudo dpkg -i dependencies/*.deb
  $ sudo apt-get -f install
  $ dpkg-buildpackage -rfakeroot -tc -b
  $ sudo dpkg -i ../*.deb
  $ sudo apt-get -f install

At this point, if I haven't messed something up, you should be able to go to:


...and drive the app around. Here is some other general information

  o The app is built to run with Lighttpd 1.4 and Postgresql (9.1)
  o The administrative account is 'admin' and the password is 'admin'
  o You can get all the logs from the scripts by running:
      sudo tail -f /var/log/lighttpd/error.log
  o It is easier to just chown /usr/share/webpy-example and play around
    in there, rather than building a package to test changes. Don't
    forget to reload Lighttpd when you make code changes!
      sudo /etc/init.d/lighttpd reload
  o You can also update /etc/lighttpd/conf-available/10-webpy-example.conf to
    point to your checked out directory, but you have to copy over the from the installed directory.
  o The database schema is in pgsql.sql and will be created automatically
    via dbconfig-common automation. One issue is that if you re-install the
    package, you should purge (dpkg --purge webpy-example) first and when
    reinstalling select to use the package maintainers version of the
    configuration file when prompted.

If you find any bugs, have any suggestions or patches, please use this:

If you need help, my first suggestion is to stick with it and read the code,
use the docs ( and if you still can't
figure it out, try the issue reports / message boards / mailing lists for and other associated code:

  o OAuth:
  o passlib:
  o mimerender:

I am usually pretty busy, but I can sometimes answer questions if you are
prepared to wait until I find some spare time.

# End