|
1 | 1 | This sample contains the completed program from the tutorial, [Using Django in Visual Studio Code](https://code.visualstudio.com/docs/python/tutorial-django). Intermediate steps are not included.
|
2 | 2 |
|
| 3 | +To run the sample: |
| 4 | + |
| 5 | +1. Create a virtual environment as described in the tutorial. |
| 6 | +1. Install packages with `pip install -r requirements.txt`. |
| 7 | +1. Activate the virtual environment by running `source env/bin/activate` (Linux/MacOS) or `env\scripts\activate` (Windows). |
| 8 | +1. Create and initialize the database by running `python manage.py migrate`. |
| 9 | +1. Create a superuser as described at the end of the tutorial. |
| 10 | + |
3 | 11 | Contributions to the sample are welcome. When submitting changes, also consider submitting matching changes to the tutorial, the source file for which is [tutorial-django.md](https://github.com/Microsoft/vscode-docs/blob/master/docs/python/tutorial-django.md).
|
4 | 12 |
|
5 | 13 | # Contributing
|
6 | 14 |
|
7 |
| -This project welcomes contributions and suggestions. Most contributions require you to agree to a |
8 |
| -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us |
9 |
| -the rights to use your contribution. For details, visit https://cla.microsoft.com. |
| 15 | +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. |
10 | 16 |
|
11 |
| -When you submit a pull request, a CLA-bot will automatically determine whether you need to provide |
12 |
| -a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions |
13 |
| -provided by the bot. You will only need to do this once across all repos using our CLA. |
| 17 | +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. |
14 | 18 |
|
15 |
| -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). |
16 |
| -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or |
17 |
| -contact [[email protected]](mailto:[email protected]) with any additional questions or comments. |
| 19 | +This project has adopted the [Microsoft Open Source Code of Conduct ](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. |
0 commit comments