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

Popular posts from this blog

Swap two variables without using temporary variable

Left Shift & Right Shift Operator in C

পাইথন এ _ (UnderScore) এর ব্যবহার