Python installed
Command execution in any directory
$ pip install virtualenv
$virtualenv arbitrary name
Success if a directory with an arbitrary name is created
$source Arbitrary name path/Arbitrary name file/bin/activate
(Arbitrary name) $
$ deactivate
$ 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
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.
Recommended Posts