- You can use following superuser (or create another one by yourself):
- Login:
FullAdmin
- Password:
admin
- Login:
- To create JTW go HERE and use given credentials.
- JWT authentication
- Full CRUD
- Orders creation for tickets
- Pagination
- Filtering feature
- Admin panel
- Full documentation here
- Rules for types of users
Click me
In .env file connect db:
POSTGRES_HOST=db
POSTGRES_DB=app
POSTGRES_USER=postgressql
POSTGRES_PASSWORD=superhardpassword
docker-compose build
docker-compose up
To get active containers
docker ps
Find our and copy id. Place it here and run:
docker exec -it "container_id" /bin/bash
python manage.py loaddata data.json
Click me
Check which DB you use in settings.py.
Set DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": BASE_DIR / "db.sqlite3", } }
if you want use sqlite3 DB.
On Windows:
python -m venv venv
venv\Scripts\activate
On macOS:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py loaddata data.json