A. Set up a virtual environment to house your projects dependencies
$ virtualenv <<venv_name>>
$ source <<venv_name>>/bin/activate
B. Install Django
$ pip install django
https://docs.djangoproject.com/en/2.2/intro/tutorial01/
- Navigate into a directory where you want to create a project, then run:
$ django-admin startproject <<mysite>>
This will create a <> directory in the current directory. To initialize a project in an existing directory, use the command:
$ django-admin startproject <<mysite>> .
- Verify the Django project works. Run:
$ python manage.py runserver
Note: ignore the warning about unapplied database migrations for now.
- Visit http://127.0.0.1:8000/ in your web browser(http://localhost:8000/) and confirm that the default Django page is loaded