|
| 1 | +--- |
| 2 | +title: "Contributing & Development" |
| 3 | +source_filename: "contributing" |
| 4 | +order: 7 |
| 5 | +--- |
| 6 | + |
| 7 | +### Development |
| 8 | +If you want to **use the demo** app to work on this package: |
| 9 | + |
| 10 | +In the project [repository](https://github.com/ekonstantinidis/django-rest-framework-docs) you can find the demo app(at /demo). It is a project with Django & Django Rest Framework that will allow you to work with this project. |
| 11 | + |
| 12 | +From the root of the repository: |
| 13 | + |
| 14 | + # Create the virtual environment |
| 15 | + pyvenv env |
| 16 | + |
| 17 | + # Install requirements |
| 18 | + env/bin/pip install -r requirements.txt |
| 19 | + |
| 20 | + # Activate the environment |
| 21 | + source env/bin/activate |
| 22 | + |
| 23 | + # Cd Into the demo |
| 24 | + cd demo/ |
| 25 | + |
| 26 | + # Install Django Rest Framework Docs |
| 27 | + pip install -e ../ |
| 28 | + |
| 29 | + # Run the project |
| 30 | + python manage.py runserver |
| 31 | + |
| 32 | +Note: You do not need a database or to run migrate. |
| 33 | + |
| 34 | + |
| 35 | +If you are looking to develop this package with one of your **own django projects**: |
| 36 | + |
| 37 | + pyvenv env |
| 38 | + env/bin/pip install -r requirements.txt |
| 39 | + pip install -e ~/Projects/drf-docs/ |
| 40 | + |
| 41 | +### Contributing to the project |
| 42 | + |
| 43 | +1. Fork it! |
| 44 | +2. Create your feature branch: `git checkout -b my-new-feature` |
| 45 | +3. Commit your changes: `git commit -am 'Add some feature'` |
| 46 | +4. Push to the branch: `git push origin my-new-feature` |
| 47 | +5. Submit a pull request |
| 48 | +6. Make sure tests are passing |
| 49 | + |
| 50 | + |
| 51 | +### Code of Conduct |
| 52 | + |
| 53 | +As contributors and maintainers of this project, and in the interest of |
| 54 | +fostering an open and welcoming community, we pledge to respect all people who |
| 55 | +contribute through reporting issues, posting feature requests, updating |
| 56 | +documentation, submitting pull requests or patches, and other activities. |
| 57 | + |
| 58 | +We are committed to making participation in this project a harassment-free |
| 59 | +experience for everyone, regardless of level of experience, gender, gender |
| 60 | +identity and expression, sexual orientation, disability, personal appearance, |
| 61 | +body size, race, ethnicity, age, religion, or nationality. |
| 62 | + |
| 63 | +Examples of unacceptable behavior by participants include: |
| 64 | + |
| 65 | +* The use of sexualized language or imagery |
| 66 | +* Personal attacks |
| 67 | +* Trolling or insulting/derogatory comments |
| 68 | +* Public or private harassment |
| 69 | +* Publishing other's private information, such as physical or electronic |
| 70 | + addresses, without explicit permission |
| 71 | +* Other unethical or unprofessional conduct |
| 72 | + |
| 73 | +Project maintainers have the right and responsibility to remove, edit, or |
| 74 | +reject comments, commits, code, wiki edits, issues, and other contributions |
| 75 | +that are not aligned to this Code of Conduct, or to ban temporarily or |
| 76 | +permanently any contributor for other behaviors that they deem inappropriate, |
| 77 | +threatening, offensive, or harmful. |
| 78 | + |
| 79 | +By adopting this Code of Conduct, project maintainers commit themselves to |
| 80 | +fairly and consistently applying these principles to every aspect of managing |
| 81 | +this project. Project maintainers who do not follow or enforce the Code of |
| 82 | +Conduct may be permanently removed from the project team. |
| 83 | + |
| 84 | +This Code of Conduct applies both within project spaces and in public spaces |
| 85 | +when an individual is representing the project or its community. |
| 86 | + |
| 87 | +Instances of abusive, harassing, or otherwise unacceptable behavior may be |
| 88 | +reported by contacting a project maintainer at manos@iamemmanouil.com. All |
| 89 | +complaints will be reviewed and investigated and will result in a response that |
| 90 | +is deemed necessary and appropriate to the circumstances. Maintainers are |
| 91 | +obligated to maintain confidentiality with regard to the reporter of an |
| 92 | +incident. |
| 93 | + |
| 94 | + |
| 95 | +This Code of Conduct is adapted from the [Contributor Covenant][homepage], |
| 96 | +version 1.3.0, available at |
| 97 | +[http://contributor-covenant.org/version/1/3/0/][version] |
| 98 | + |
| 99 | +[homepage]: http://contributor-covenant.org |
| 100 | +[version]: http://contributor-covenant.org/version/1/3/0/ |
0 commit comments