- Install python 3
- Install django
- Install django-environ
pip install django-environ
- Install mysqlclient
pip install mysqlclient
- Create .env file next to settings.py file with the following configuration
SECRET_KEY=secret_key DEBUG=True DB_ENGINE=db_engine DB_NAME=db_name DB_USER=username DB_PASSWORD=db_password DB_HOST=host DB_PORT=port
- Create Migration files
python3 manage.py makemigrations
- Run Migrations
python3 manage.py migrate
- Create superuser
python3 manage.py createsuperuser
- Start server
python3 manage.py runserver
- Access Admin panel
http://localhost:8000/admin
- Access system
http://localhost:8000/