How to create a project with virtual environment in Django(Windows 10)
- Open command prompt by typing 'cmd' in windows search bar.
- Make a directory using 'mkdir directoryname' command.
- If virtualenvironment is not installed in your computer,then install it with 'pip install virtualenv' command.
- Create a virtual environment by 'virtualenv name' command.
- Now activate the virtual environment by going this 'cd->Scripts->activate' path.
- Now install django entering 'pip install django' command.
- Create a project with 'django-admin startproject projectname' command.
Comments
Post a Comment