Coder Social home page Coder Social logo

massimilianorighi / building-a-web-application-on-microsoft-azure-4405955-django Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/msdocs-python-django-webapp-quickstart

2.0 0.0 1.0 1.73 MB

Django version of the C#/.NET example used in the course: Building a Web Application on Microsoft Azure by Rodrigo Díaz Concha

License: MIT License

Python 61.30% HTML 33.54% CSS 4.40% JavaScript 0.76%

building-a-web-application-on-microsoft-azure-4405955-django's Introduction

Wisdom Pet Medicine Pet Management System

image

Django version of the C#/.NET example: "Wisdom Pet Medicine" web application.

Django admin

Admin page page can be reached with the following credentials:

Username Password
admin aKxC1094

A new admin can be created with the following command:

python manage.py createsuperuser

Execute locally

To execute locally, first create the db.sqlite3 database that contains the pets from the course exercise. To do so, in the root folder execute:

sqlite3 db.sqlite3 < exercise_data.sql

Finally, to execute the Django project:

python3 manage.py runserver

Secret key

Local development

Fill in a secret value in the .env file.

For local development, use this random string as an appropriate value:

SECRET_KEY=123abc

Azure Deployment

For deployment to production, create an app setting, SECRET_KEY. Use this command to generate an appropriate value:

python -c 'import secrets; print(secrets.token_hex())'

building-a-web-application-on-microsoft-azure-4405955-django's People

Contributors

vmagelo avatar davidcberry13 avatar massimilianorighi avatar microsoftopensource avatar v-geberr avatar diberry avatar jimacoms4 avatar alroyer avatar bobtabor-msft avatar charris-msft avatar jfmatth avatar microsoft-github-operations[bot] avatar

Stargazers

 avatar  avatar

Forkers

order20021

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.