A contanct Managment project Django 3.1
and Python 3.2
.:
Run the following commands in Terminal:
./manage.py makemigrations
./manage.py migrate
**Attention: ** Before you using ./manage.py
, make sure the python
command in your system is towards to python 3.6
or above version. Otherwise you may solve this by one of the two following methods:
- Modify the first line in
manage.py
, change#!/usr/bin/env python
to#!/usr/bin/env python3
- Just run with:
python3 ./manage.py makemigrations
Run command in terminal:
./manage.py createsuperuser
Run command in terminal:
./manage.py create_testdata
Run command in terminal:
./manage.py collectstatic --noinput
./manage.py compress --force
Execute: ./manage.py runserver
Open up a browser and visit: http://127.0.0.1:8000/ , the you will see the Project.