To access the Django project, please follow these steps:
- Install Docker. Docker is available here: https://www.docker.com/products/docker-desktop. Please note that the Windows edition requires Windows Pro or Enterprise.
- Visit https://github.com/bribroder/django_skeleton. If you have not installed Git on your computer, visit https://git-scm.com/downloads and choose the version for your operating system.
- From your system terminal (if you are using Windows, use "Git Bash" instead of
cmd.exe
or PowerShell), navigate to the directory you want the project to live in. Note that the project will download contained in its own directory. Then rungit clone https://github.com/bribroder/django_skeleton.git
This will download a copy of the project.
To start the project, first make sure that Docker is running. Then follow these steps:
- Navigate to the project folder in your terminal (this time, use
cmd.exe
if you are on Windows). It should be nameddjango_skeleton
unless you chose to name it something else. - Run
docker run --rm -v $(pwd):/opt/skeleton --workdir /opt/skeleton -it python:3.7.3 bash
This will start a simple virtual machine and automaticall log you into it. - Run
pip install -e .
This will install various bits of software the Django project needs to be able to function. - Run
python manage.py migrate
This will update your copy of the project's database to the most recent available. - Run
python manage.py test
This will run the project's test suites to make sure everything is working correctly. The output from this command should look like this:
root@[random-number]:/opt/skeleton# python manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
Installed 5 object(s) from 1 fixture(s)
The database has 5 birds.
.The airspeed velocity of an unladen Budgerigar (Melopsittacus Undulatus) is 6.3 m/s.
.
----------------------------------------------------------------------
Ran 2 tests in 0.013s
OK
Destroying test database for alias 'default'...
References were primarily to make sure I was correct about deleting the dependency_links
line.