djattendance
Summary
Djattendance is a rewrite of the original FTTA attendance server in Python/Django. It supports many internal functions of the FTTA, for both trainees and administrators, such as:
- Attendance
- Service Scheduling
- Life-studies
- Class Syllabi
- etc.
Architecture
The original attendance server was based on a traditional LAMPstack. The new version is written in Python on top of the Django web framework (djangoproject.com) using Postgres and Nginx.
Backend
Python/Django Postgres Gunicorn Nginx
Frontend
HTML5 Boilerplate Bootstrap
Misc. Libraries
Celery (using Redis) Memcached (deployment only)
Running djattendance
A more detailed guide to running djattendance on your local machine can be found in the wiki (coming soon).
- have Python and Postgres installed
git clone
the djattendance repopip install -r requirements.txt
from the/requirements
(recommended that you usevirtualenv
)- using django:
manage.py syncdb
andmanage.py runserver
(be sure to use the local settings)
Running djattendance with vagrant
NOTE: Folder that contains the vagrant file is synced as well, so all work is still done on the host.
(NOTE FOR WINDOWS USERS: You will need to issue this command in git, "git config --global core.autocrlf input". See this for a list of issues related to CRLF and LF, http://blog.xjtian.com/post/54399466362/vagrant-tips-for-windows-users.)
- have VirtualBox and Vagrant installed
git clone
the djattendance repo- Run 'vagrant up' within the project directory where the VagrantFile is located
- Run 'vagrant ssh' to access the VM
- 'cd ap'
- 'python manage.py syncdb --settings=ap.settings.dev'
- 'python manage.py runserver 0.0.0.0:8000 --settings=ap.settings.dev'
- From your host (not the guest VM) you can access the site from localhost:8111.