Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.68 KB

File metadata and controls

52 lines (37 loc) · 1.68 KB

Guild Volunteering

An alternative to physical logbooks for Guild Volunteering UWA to allow students to enter their volunteering hours.

The django project requires that some local setting be configured for database access. To do this create a new file in the gvs directory called local_settings.py

Example contents for a mysql server:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'DatabaseName',
        'USER': 'DatabaseUser',
        'PASSWORD': 'DatabasePassword',
        'HOST': '127.0.0.1'
    }
}

ALLOWED_HOSTS = ['127.0.0.1']

EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST='<EMAIL HOST>'
EMAIL_PORT='<EMAIL_PORT>'
EMAIL_HOST_USER='<YOUR EMAIL ADDRESS>'
EMAIL_HOST_PASSWORD='<PASSWORD FOR EMAIL>'
EMAIL_USE_TLS=True

Additional database settings and engines can be found here.

For development the line DEBUG = True can be added to the file.

ALLOWED_HOSTS should be configured to a list of domains that the server is allowed to serve (more information).

EMAIL_HOST Should be the service which hosts your email address e.g. smtp.google.com .

EMAIL_PORT The port which the service runs on.

Requirements:

Need to install:

Testing

To run the tests use python manage.py test logbook/tests

Use:

  • Only get students so finalise logbooks at the end of semester, so they can still volunteer for an organisation.