Creating a Django Project Virtual Environment
Using Virtual environments allows you to avoid installing Python packages globally and run multiple instances of web applications on different versions of Python and Django, on a single machine. It is a containerized way to manage application dependencies for specific use (app) cases. Here is a guide on how to install Virtualenv.
Before we start, we need to create a virtualenv for our app, so open up your Command Prompt (for Windows) or Terminal (for Mac, Linux) and type the following:
virtualenv django_env
Activate (start) the virtual environment
virtualenv venv activate
Install Django in the newly created environment, using pip
(django_env):~$ pip install django
Do'stlaringiz bilan baham: |