Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sample code for the Django tutorial in the VS Code documentation

License

NotificationsYou must be signed in to change notification settings

microsoft/python-sample-vscode-django-tutorial

Repository files navigation

This sample contains the completed program from the tutorial,Using Django in Visual Studio Code. Intermediate steps are not included.

The sample also includes a Dockerfile to build a production-ready container image that uses uwsgi and nginx; the uwsgi.ini file provides uwsgi configuration.

To run the sample:

  1. Create a virtual environment as described in the tutorial.
  2. Install packages withpip install -r requirements.txt.
  3. Activate the virtual environment by runningsource env/bin/activate (Linux/MacOS) orenv\scripts\activate (Windows).
  4. Create and initialize the database by runningpython manage.py migrate.
  5. Create a superuser as described at the end of the tutorial.

Contributions to the sample are welcome. When submitting changes, also consider submitting matching changes to the tutorial, the source file for which istutorial-django.md.

Known issues

  • CSS is lost if you setDEBUG=False in settings.py; the workaround is to include an added script at the end of dockerfile.txt to serve static file differently. SeeIssue 13 for details.

Contributing

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, visithttps://cla.microsoft.com.

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.

This project has adopted theMicrosoft Open Source Code of Conduct. For more information see theCode of Conduct FAQ or contactopencode@microsoft.com with any additional questions or comments.

About

Sample code for the Django tutorial in the VS Code documentation

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors18


[8]ページ先頭

©2009-2025 Movatter.jp