django project development environment construction

Premise

Python installed

Environment

Command execution in any directory

$ pip install virtualenv
$virtualenv arbitrary name

Success if a directory with an arbitrary name is created

Start virtualenv

$source Arbitrary name path/Arbitrary name file/bin/activate
(Arbitrary name) $
$ deactivate

django installation

$ pip install django

If you want to specify the version (the number part is optional)

$ pip install django==1.9.5

To check if django is installed View currently installed packages

$ pip freeze
appdirs==1.4.0
Django==1.10.5
packaging==16.8
pyparsing==2.1.10
six==1.10.0

django project creation

Create a directory for the project separately from the virtualenv directory

$ django-admin startproject project name

After moving to the project name directory, start the server

$ python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).

You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

February 02, 2017 - 08:53:44
Django version 1.10.5, using settings 'fiverr.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Since there is no DB yet, there are some parts that are in red. There is no problem starting the server, so please click the URL below. http://127.0.0.1:8000/ or [http: // localhost: 8000](http: // localhost: 8000)

If port 8000 is used and an error occurs, specify the port number and start the server.

$ python manage.py runserver 8080

If the following screen appears, the django project creation is complete.

9f1a4e9273cba4b698572cb4aa998656.png

Recommended Posts

django project development environment construction
Django project environment construction
Django development environment construction memo
Django environment construction
django environment construction
[For beginners] Django -Development environment construction-
Python development environment construction
python2.7 development environment construction
[Memo] Django development environment
From 0 to Django development environment construction to basic operation
Docker + Django + React environment construction
Django environment development on Windows 10
[MEMO] [Development environment construction] Python
[MEMO] [Development environment construction] wine
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
[MEMO] [Development environment construction] Jupyter Notebook
Emacs Python development environment construction memo
Ubuntu Desktop 20.04 development environment construction memo
Development environment construction (2020 version, WSL2 + VcXsrv)
Mac OS X Mavericks 10.9.5 Development environment construction
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
DeepIE3D environment construction
Emacs-based environment construction
Linux environment construction
Python project environment construction procedure (for windows)
Python environment construction
WEB application development using django-Development environment construction-
Django development environment construction with Docker-compose + Nginx + uWSGI + MariaDB (macOS edition)
Environment construction (python)
Python3 + venv + VSCode + macOS development environment construction
CodeIgniter environment construction
python environment construction
Python --Environment construction
Django Project Baseline
Mac OS X Yosemite 10.10 Development environment construction
Python environment construction
Mac OS X development environment construction memo
Golang environment construction
First Django development
python environment construction
Windows + gVim + Poetry python development environment construction
Word2vec environment construction
Build Django + NGINX + PostgreSQL development environment with Docker
Build the fastest Django development environment with docker-compose
Until Django application creation by terminal (development environment)
[Python] Build a Django development environment with Docker
Kotlin / Native development environment construction & installation procedure & tutorial
Build a Django development environment with Doker Toolbox
Mac OS X Mountain Lion 10.8.5 Development environment construction
[Django3] Environment construction and various settings summary [Python3]
Django development using virtualenv Procedures from virtual environment construction to new project / new application creation and initial settings
Development digest with Django
Environment construction: GCP + Docker
Go language environment construction
ConoHa environment construction memo
homebrew python environment construction
PyData related environment construction
Anaconda-4.2.0-python3 environment construction (Mac)
About Python development environment
YOLO v4 environment construction ①