Affiliations is a simple Django application that provides user affiliation management. One common problem of websites is to assure users of who they are. The way users handle this is that they ask them to confirm their emails by submitting a token sent to their emails. However, some websites may need a user to confirm his/her affiliation with many organizations, institutes, schools or companies. Therefore, this package provides an affiliation management interface with help of database and email technology
Add "affiliations" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'affiliations', )
Include the affiliations URLconf in your project urls.py like this:
Set the variables below in your settings.py file of your project:
AFFILIATIONS_FROM_EMAIL="email address that you will be sending emails from"; AFFILIATIONS_CODE_SUBJECT = 'subject for your email address' AFFILIATIONS_URL = 'address to the affiliations webpage';
- Run python manage.py migrate to create the polls models.
- Depending on your project setup you may need to call the following command to collect all static files in one directory including the JS file
python manage.py collectstatic
- Start the development server and visit http://127.0.0.1:8000/affiliations/ to create a affiliations (The user needs to be signed in to do this).