We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
python -m venv .venv
While in the root project directory, activate a virtual environment by executing the following command based on your operating system;
- For Unix/macOS run:
source .venv/bin/activate
- For windows run:
.venv/Scripts/activate
Install Requirements
pip install -r dev.requirements.txt
Create a secrets.py
inside the pyconafrica Django app directory, in the same directory as settings.py
file. The secrets.py
file will hold all the environment variables. Below are the default environment variables.
SCRETE_KEY='your_secret_key'
CLOUDINARY_URL='your_cloudinary_url'
CLOUDINARY_STORAGE = {
'CLOUD_NAME': 'your_cloud_name',
'API_KEY': 'your_api',
'API_SECRET': 'your_api_secret'
}
SILENCED_SYSTEM_CHECKS = ['django_recaptcha.recaptcha_test_key_error']
Please reference, the .env.example file for the expected environment variables.
With an active virtual environment, run the command below while in the root project directory to apply the current migrations to your database. By default, the migrations will be applied to an SQLite Database that will be autocreated in your root project directory.
python manage.py migrate
Create a superuser account
python manage.py createsuperuser
Run the server by executing the command below
python manage.py runserver
Log into the superuser account [http://localhost/accounts/login] Access the admin dashboard [http://127.0.0.1:8000/organizers/] Add an event year [http://127.0.0.1:8000/organizers/home/eventyear/]
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
We Use Github Flow, So All Code Changes Happen Through Pull Requests
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
- Fork the repo and create your branch from
master
. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
In short, when you submit code changes, your submissions are understood to be under the same MIT License that covers the project.
Report bugs using Github's issues
We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
People love thorough bug reports.
By contributing, you agree that your contributions will be licensed under its MIT License.
This document was adapted from the open-source contribution guidelines for Facebook's Draft
python3 manage.py shell < seeder.py