Install Django and Python on Windows 2 of 7 Install Django in a Virtual Environment

preview_player
Показать описание


Install Django and Python On Windows (Episode 2 of 7)
Install Django in a Virtual Environment

In this video, we discuss how to use pip to install a virtual environment (virtualenv) and get Django installed within it.

Install Django and Python on Windows Links:

Django Installation Process:
1) Download Python & PIP
3) Setup Environment variables in Windows System Settings under Advanced Settings:
4) Install Virtual environment "pip install virtualenv"
5) Create virtualenv and activate:
virtualenv somename
cd somename
.\Scripts\activate
6) Install Django:
pip install django==1.X.Y (replace x and y for version numbers)
7) Start django project:

The Coding For Entrepreneurs newsletter has news and updates about all things Coding for Entrepreneurs:

A few ways to learn:

On Udemy:

Bestselling Udemy Coding for Entrepreneurs Course:

MatchMaker and Geolocator Course:

Marketplace & Dail Deals Course:

Free Udemy Course (40k+ students):

Рекомендации по теме
Комментарии
Автор

This was by far one of the best tutorials I've used to get any development environment set up. I really appreciate it.

wesgould
Автор

Greetings from Kyrgyzstan! Thanks a lot! You are doing a great job!

mederbekyrsaliev
Автор

This was a very good tutorial on installing django in a virtual environment. I subscribed.

kevingraff
Автор

Totally awesome series. I was able to get up and running under 30 minutes, which is much less than it would have taken me if I had tried to follow online documentation. Thanks for this video, really high quality tutorial. Subscribed.

JFRoy
Автор

Nice work man. i was facing lot of troubles while installing Django you helped me a lot thanks Man ...👍👍

umakanthreddy
Автор

I just discovered this video (and this topic). It works great with Python 2.5 that I'm using.

SHONNER
Автор

Dude, you're awesome ! What i wanted to know is can you make a video on how to use virtualenv on Sublime 3 ? I'm using that as an editor and I would really appreciate it if you could help me !!

shivannawal
Автор

Really useful, and a good reminder of the command line

IGTheBruce
Автор

Whenever I try using 'pip freeze' while in the virtual environment, I get this:

(venv) C:\Users\Tarter Sauce\Desktop\venv>pip freeze
Fatal error in launcher: Unable to create process using ' ""C:\Users\Tarter "C:\Users\Tarter freeze'

I managed to download Django 1.6.5 using 'python -m pip install django==1.6.5' and 'pip freeze' worked when I typed in 'python -m pip freeze' instead. Should I just plug in that little bit of the string before each of the commands involving 'pip' in the virtual environment because it has been working for these two? Also, how do I close out of the command prompt? Like am I able to just close it out after logging onto my project, or will that screw something up?

Oh, and thanks for helping jose alejandro suarez osuna 

niccage
Автор

this was a very good tutorial very simple and easy but in the next video you downloaded django again when you started another project does that mean that i will have to download django every time i start anew project or is there a way to download and store django so that i can be using it whenever  i start a new project...thanks in advance

collinsomwomo
Автор

FOR USERS W/ BOTH PYTHON 27 and PYTHON 3.6 ---- I have both python27 and python 3.6 on my computer that is running Windows 8, I did not succeed with the manual > system\environmental_variable thing --- WHAT DID WORK was right clicking the get-pip icon on desktop and selecting the Python 3.6 version anyways to see what happens, it prompted to a window that had 3 options: modify, repair, uninstall. I chose modify and there was a box for create environmental variable that you could click - which I did and clicked through till end. Re-opened command prompt, typed in python and it worked!

sssssss
Автор

A very nice tutorial! From the Django installing location, does that mean the Django file is going to be in ..\Desktop\venv\Lib\site-packages, not in That means for each Django project, it had better to have its own Django file when we set virtualenv?

shriebrown
Автор

Hi. Thank you for this tutorial. I have a few questions though.

1. There's a pre-installed application when I typed pip freeze it was "wheel==0.24.0". Will it cause any problems in the future?

2. After running the server, this came up:
"You have unapplied migrations; your app may not work properly until they are app
lied.
Run 'python manage.py migrate' to apply them."

The server works but should i run the python manage.py migrate?

Thanks again. Cheers!

detheroc
Автор

Hi. Great tutorial. I'm having an issue. I managed to create a virtual environment using the command: python -m venv ll_envI can't seem to activate it though. The file is on my desktop and I tried the command: .\Scripts\activate and nothing happens. Can you explain why?

damienalbino
Автор

Excellent ... hope to see more ... Very good work keep it up .

vupeshmohanty
Автор

hello i have a problem, i did everything like you in 1st video
when i type "pip" in command prompt nothing happends only _ blinks in lower line and i can't do anything

dawid
Автор

At 3:23 if you get an error after "virtualenv venv", it does not work if you have installed Python on a path which contains spaces. (For example "C:\Program Files\Python") You have to reinstall Python somewhere else without spaces.

LoLei
Автор

Hey, thanks for the great videos. Just wondering; when I start my new virtual environment, (the 'venv' stage) it is created but only has "Lib"inside it. The other two folders are missing. Any idea how I can get around it? Or should I just download Django to my main computer and use it from there?

kemifor
Автор

Great efforts . But need some simple help please after python manage.py runserver it gives me an error after successfully running the server ; error 10013 an attempt was made to access a socket in a way forbidden by its access permissions ?

parasiterd
Автор

I keep having an issue with Django, where i cannot get into it - Because i don't know how to set the default settings.

I've resorted to Stack overflow several times, but it does not seem to explain the issue too well.

CrazyPoochification