23
loading...
This website collects cookies to deliver better user experience
$ mkdir django_project
$ cd django_project/
django_project $
django_project $ python -m venv project_venv
django_project $ source project_venv/bin/activate
django_project (project_venv) $ python -m pip install Django
This will also install the required packages; sqlparse, asgiref and pytz.
django_project (project_venv) $ python -m django --version
3.2
django_project (project_venv) $ django-admin startproject project
django_project/
project_venv/
project/
manage.py
project/
__init__.py
asgi.py
settings.py
urls.py
wsgi.py
django_project (project_venv) $ cd project/
project (project_venv) $ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 18 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.
April 25, 2021 - 15:57:20
Django version 3.2, using settings 'project.settings'
Starting development server at http://127.0.0.1:0000/
Quit the server with CONTROL-C.
$ python manage.py runserver 1234
$ python manage.py runserver 0:1234