Django on Windows
Django is an open source Python web framework that allows fast web development. Django is very popular among many best frameworks such as Laravel, Express, ASP.NET core, etc.
Django uses the MVT (Model View Template) design pattern in which Model is the data you want to present, View is a request handler that returns the relevant template and content, and Template is an HTML file containing the layout of the web page.
In this tutorial, you learn to create APIs with Django and MYSQL. To access APIs, we will create client app using React.
To start our development, you have to install the following tools on your local Windows machine.
- Python (version 3.8.2) Download Python
- XAMPP to manage MYSQL database and host Django APIs on apache using mod_wgsi Download XAMPP
- Visual Studio Code Editor to write and debug Django web APIs code Download VSC
After you have installed Python, open Command Prompt and execute the following command to check Python version:
D:\>python --version
Python 3.8.2
Now we go further by installing Django framework. On the command window, type the following command to create djsite project workspace and press ENTER.
D:\> python manage.py startproject djsite
After the djsite project successfully created. Change to the djsite folder and issue the command below to create job-app-form app in djsite folder.
D:\>python manage.py startapp job-app-form
Launch VSC editor and open the djsite folder. Here is the structure of our project.
Comments
Post a Comment