This is a sign-up form for new comers. Users will be notified about relative events by email and SMS. Messaging service is provided by AliDayu.
###Prerequisite
This project runs on Python 3 with following components:
- django (1.10.1 tested)
- django-crispy-forms (1.6.0 tested)
- django-simple-captcha (0.5.2 tested)
- pillow (3.3.1 tested)
You can install these via pip
.
###Development
cp TechDepartment/secure_settings.sample.py TechDepartment/secure_settings.py
- Change the values in
secure_settings.py
as needed - Create a new database by
python3 manage.py migrate
- Change
DEBUG
toFalse
insettings.py
and setALLOWED_HOSTS
to server's host name (xxx.xxx.com) python3 manage.py collectstatic
- If there is nothing wrong in last step, overwrite static/ with staticfiles/
python3 manage.py createsuperuser
- Deploy with uWSGI and nginx. Remember to use
--enable-threads
for uWSGI - Set up redirection on nginx: / -> /welcome
- Log in at
/admin
and create groups