[PYTHON] Build a Django development environment using pyenv-virtualenv on Mac

Installed

To install (If you include pyenv-virtualenv, you may not need to include pyenv)

Install pyenv

$ brew install pyenv
$ brew install pyenv-virtualenv

Add settings to bashrc

export PYENV_ROOT=/usr/local/var/pyenv
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi

Install the latest version of pyenv (3.4.3 as of June 17, 2015)

$ pyenv install 3.4.3

Build Django's python virtual environment with pyenv and virtualenv

$ pyenv virtualenv 3.4.3 django

Create a directory to place apps for Django

mkdir ~/workspace/django
cd ~/workspace/django

Virtualization settings

pyenv local django

Raise pip version

$ pip install --upgrade pip

Install django

$ pip install django

Create a django project

$ django-admin.py startproject mysite

Go to the created mysite

$ cd mysite/

migration

$ python manage.py migrate

Run

python manage.py runserver

http://127.0.0.1:8000/ Connect to and when It worked! Is displayed, ok

Reference URL

http://qiita.com/kaki_k/items/e824cfcf089e75d43551 http://qiita.com/maosanhioro/items/47a52f96fefba7126f9b

Recommended Posts

Build a Django development environment using pyenv-virtualenv on Mac
Build a Python development environment on your Mac
Build a local development environment for Laravel6.X on Mac
Build a Python development environment on Mac OS X
Build a Python environment on your Mac using pyenv
Build a Python development environment using pyenv on MacOS
Build a Django environment on Raspberry Pi (MySQL)
Build a Python environment on Mac (Mountain Lion)
[Python] Build a Django development environment with Docker
Build a Django development environment with Doker Toolbox
Build a Kubernetes environment for development on Ubuntu
Build a Python development environment on Raspberry Pi
Django environment development on Windows 10
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a machine learning Python environment on Mac OS
Build a GVim-based Python development environment on Windows 10 (1) Installation
How to build a Django (python) environment on docker
Build a Python virtual environment using venv (Django + MySQL ①)
How to build a development environment for TensorFlow (1.0.0) (Mac)
Build a development environment with Poetry Django Docker Pycharm
Prepare Django development environment using homebrew on MacOSX Mavericks (10.9)
Build a lightweight Fast API development environment using Docker
Building a Python environment on Mac
Build a go environment using Docker
Create a Python environment on Mac (2017/4)
Build a python3 environment on CentOS7
Build a machine learning environment on mac (pyenv, deeplearning, opencv)
Build a Django development environment with Docker! (Docker-compose / Django / postgreSQL / nginx)
Create a Python (pyenv / virtualenv) development environment on Mac (Homebrew)
[Memo] Build a development environment for Django + Nuxt.js with Docker
Building a Jupyter Lab development environment on WSL2 using Anaconda3
Building a Python environment on a Mac and using Jupyter lab
[Django] Build a Django container (Docker) development environment quickly with PyCharm
Build a python data analysis environment on Mac (El Capitan)
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Build a Flask development environment at low cost using Docker
Until building a Python development environment using pyenv on Ubuntu 20.04
Django Crispy Tutorial (Environment Building on Mac)
Build a local development environment for Lambda + Python using Serverless Framework
Build a python environment on MacOS (Catallina)
Build a Python environment on your Mac with Anaconda and PyCharm
Create a python environment on your Mac
Building a virtual environment using homebrew + pyenv-virtualenv
# 3 Build a Python (Django) environment on AWS EC2 instance (ubuntu18.04) part2
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
I installed Kivy on a Mac environment
Build Python environment with Anaconda on Mac
Build a Python + OpenCV environment on Cloud9
[DynamoDB] [Docker] Build a development environment for DynamoDB and Django with docker-compose
[Mac] Build a Python 3.x environment at the fastest speed using Docker
I tried to build a Mac Python development environment with pythonz + direnv
I made a webAPI! Build environment from Django Rest Framework 1 on EC2
Build Python + django + nginx + MySQL environment using docekr
Build a C language development environment with a container
Build a WardPress environment on AWS with pulumi
Build Django + NGINX + PostgreSQL development environment with Docker
Build the fastest Django development environment with docker-compose
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Simply build a Python 3 execution environment on Windows
Build a python environment with ansible on centos6
Build a Django environment with Vagrant in 5 minutes