Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s3nsu1k4n/kittens_django
Creating, updating and deleting kitten data. Serving html and json data
https://github.com/s3nsu1k4n/kittens_django
api django django-framework django-project python
Last synced: 6 days ago
JSON representation
Creating, updating and deleting kitten data. Serving html and json data
- Host: GitHub
- URL: https://github.com/s3nsu1k4n/kittens_django
- Owner: S3nsu1k4n
- Created: 2024-02-26T02:03:45.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-02T08:17:01.000Z (9 months ago)
- Last Synced: 2024-03-02T12:41:07.760Z (9 months ago)
- Topics: api, django, django-framework, django-project, python
- Language: Python
- Homepage:
- Size: 241 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kitten API
Creating, updating and deleting kitten data
Serving html and json data
Contains 14 tests
# Python and used packages
- Python 3.12.61
- Django 5.0.2
- python-dotenv 1.0.0# dotenv
with the .env file the secret key can be set:
SECRET_KEY=some_secret_key
# How to use
## 1. Clone the repository
git clone
## 2. (optional) create a virtual environment
Example venv:python -m venv venv .
## 3. Install the dependencies from requirements.txt
pip install -r requirements.txt
## 4. Apply migrations
python manage.py migrate
## 5. Run server
python manage.py runserver
## 6. Create user for login
python manage.py createsuperuser
## 7. (optional) For seeding database with example data
python manage.py seed
seed configuration for the seed command can be found at management/commands/seeds.py
## 8. (optional) For testing
python manage.py test
Testing files can be found inside management/tests/# Routes
## html
```
/
├── admin/
└── app/
├──/
└── kitten/
├── create/
└── {id}/
├── edit/
└── delete/
```## json
```
/
└── app/
├──/
└── kitten/{id}/
```# Pages
Open
## 1. Index
## 2. Detail
## 3. Create
## 4. Update
## 5. Delete
## 6. Admin