Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
UK Online Tutor Database
Python PHP Other
tree: 24c86e6c15

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
commonlib @ 9768234
conf
pylib/ukotdb-app
web
wsgi
.gitignore
.gitmodules
LICENSE.txt
README

README

### Installing:

    cd pylib/ukotdb-app
    createdb -T template_postgis ukonlinetutordb
    ./manage.py syncdb      # and create admin user
    ./manage.py migrate
    psql -c "insert into tutordb_tutor (user_ptr_id, phone) values (1,'');" ukonlinetutordb

The last command links the user to the tutors table so that they can log in


### Required admin actions:

The following need to be done using the admin system to set up the site
correctly:

    * create the 'Head Office' group and grant most priviledges

    * Change the site name and domain to the correct values


### Adding /updating centres:

    python utils/scrape_centres.py


### Development notes:

Note: when developing and sending emails the code will try to connect to localhost port 25. If this is not an SMTP server for you use the provided script to run a fake SMTP server that outputs to the console:

  bash pylib/ukotdb-app/utils/dev_smtp_server.bash

Something went wrong with that request. Please try again.