4. Installation and Running

4.1. Instalacja

$ pip install django

4.2. Starting new project

$ django-admin startproject addressbook

$ python manage.py migrate

$ python manage.py createsuperuser
Username (leave blank to use 'admin'): jose.jimenez
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.

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

System check identified no issues (0 silenced).
July 21, 1969 - 14:56:15
Django version 2.1.0, using settings 'addressbook.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Sprawdź w przeglądarce strony:

  • http://127.0.0.1:8000/
  • http://localhost:8000/admin/

4.3. IDE Run configuration

4.3.1. Run configuration

4.3.2. Debug configuration