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.
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.
For checking the installation, fire up a terminal and run py -m django — version.
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.