In this article I will discuss Installing Django on Windows. Django is a python based framework for web development.
In order to get more details on Django framework as well as its features and benefits, read this article. (https://www.programmingempire.com/introduction-to-django-framework-and-its-features/)
Since Django is a python based framework, so first you need to ensure that Python is running on your machine. For this purpose, just check the version of python. The following screenshot demonstrates it.
After that, create a virtual environment in which Django will run. In order to create a virtual environment, run the following command.
As can be seen above first create a folder (if you wish) django and then run the specified command. When you list the directory, you will find that a folder with the given name is created.
Once a virtual environment is created, you can activate it by running the following command.
Afterwards we can install django by running the following command.
Now that we have successfully installed Django, we can create our first project. So, you can run the following command.
As a result of executing the above command, a project with the specified name is created. Notice that the project folder contains a file called manage.py. With this file you can perform some Django specific tasks. For instance, suppose you want to create an app, you will run the following command.
Also, you can start the web server using manage.py. The following command demonstrates it.
Now you can open the server page in a browser as follows.
More details will be covered in later posts.
- Dot Net Framework
- Power Bi
- Scratch 3.0