티스토리 뷰
Compare python and anaconda
We can download anaconda in this site :https://www.anaconda.com/distribution/#download-section
We install that Python 3.7 version. Click the green box button.
If it download complete, launch Anaconda3 yy.mm (64-bit) Setup.
Click "Next >"
Click "I Agree"
It doesn't matter which one you check.
I check "Just Me"
Click "Next >"
Choose the location Where you want set up it.
I set up in my %HOMEDRIVE%.
Click "Next >".
I only check "Register Anaconda as my default Python 3.7".
Because Even if we don't check first box, it doesn't affect us when we develop Django.
IF you want to register anaconda environment variable, check First box.
Click "Next >".
It takes a long time to install.
When it complete, Click "Next >".
I use Atom editor When I coding.
So Click "Skip".
If you want to use Visual Studio code, check "Install Microsoft VSCode".
We installed Anaconda. Now Let's install Atom editor.
2. Set up Atom and Plug-in
Atom is text editor that have many functions and is convenient.
So we'll use Atom When we develop Django.
We can download Atom in this site :https://atom.io/
Click the Yellow box written in Download.
If it download complete, launch AtomSetup-x64.exe.
Installation is very simple. Only just one click and its installation is complete.
Now we install plug-in that is useful at Python coding.
Go File->Settings->Install.
Search autocomplete-python.
Install 'autocomplete-python 1.12.0'.
'autocomplete-python' is literally that It's autocomplete word(?) when we coding.
We installed Anaconda and Atom. Now Let's install Django in virtual environment.
3. Create Virtual environment and install Django
Before create virtual environment, we have to make project directory.
I make it in my %HOMEDRIVE%.
And next, Run Anaconda prompt.
Type "conda create --name 'any name' python=3.7".
If the virtual environment had been created, type "activate 'The name of its you created'"
Type "pip install Django".
And next, we should make Django project repository.
Type "cd 'Path of project folder' ".
Type "mkdir repo".
Type "cd repo".
And next, Type "django-admin.exe startproject conf .".
There are conf folder containing Default setting files and manage.py.
So we installed Django. Let's test.
Type "python manage.py runserver".
The server on. Let's go website we made. :http://127.0.0.1:8000/
The website work!
So I wrote "Set up Django development evrionment in windows" in this post. next post is maybe "Django app structure and database".
Thank you for seeing this post.
'Django' 카테고리의 다른 글
#2. create application and its structure (0) | 2019.02.27 |
---|---|
#1.1. Project structure (0) | 2019.02.27 |
#0. Django? (0) | 2019.02.25 |