Setting up Django in Windows

This articles deals with setup of Django in Windows 10 on PyCharm.

Fire up PyCharm community edition and click on new project. This will give a popup for choosing a name of your project and venv.

Create-Project-PyCharm

Then go to File>Settings>Project(YourProject)>Python Interpreter>+ icon and search for django and click on install package to install. Wait for a while to finish and then django with its dependencies can be seen in earlier screen.

List of packages after installed

For checking the installation, fire up a terminal and run py -m django — version.

version install check

Next we have to create skeleton project for django. For this we run django-admin startproject mytestsite in the terminal. It will create mytestsite folder with manage.py, urls.py, wsgi.py and others.

Change directory to the newly folder created and run python .\manage.py runserver and this should run the server and will give a url at the end pointing at local host. By naviagating to that we can see a page with django success.

django-success

--

--

--

Machine Learning | Automation

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

5 Steps to Setup your Google Cloud Engine for YOLOv5

Brand Name: XIAOMI

15 Tips to Graduate from Classroom C++ to Modern C++ Part 3/3

Origin Story on Azubi AWS Re/Start

Understanding Object Oriented Programming

Enemy Explosions when Destroyed — Part 2

What is the Role of DevOps in Mobile App Development?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ankit Jaiswal

Ankit Jaiswal

Machine Learning | Automation

More from Medium

How to build a JSON formatted resume API with Django, and ElephantSQL

Install memcached in Django project

Get Current User With DRF

Would you manually populate Django tables?