https://github.com/andrekovac/django-poetry-admin-model
Create and view books in the Django Admin panel
https://github.com/andrekovac/django-poetry-admin-model
Last synced: about 1 year ago
JSON representation
Create and view books in the Django Admin panel
- Host: GitHub
- URL: https://github.com/andrekovac/django-poetry-admin-model
- Owner: andrekovac
- Created: 2022-04-15T11:01:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-16T16:39:32.000Z (about 4 years ago)
- Last Synced: 2023-08-08T02:44:11.458Z (almost 3 years ago)
- Language: Python
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A basic Django Model to view in the Admin panel
Create and view books in the Django Admin panel
## Run
1. Clone the repo.
2. Make sure you have [poetry](https://python-poetry.org/) (python environment and dependency manager) installed.
3. In the project folder run `poetry install` to install dependencies.
4. Run `poetry shell` to open a new shell with all dependencies available.
5. Run `python manage.py runserver`
## Concepts
### Data Models
See `books/models.py`
### Migrations
- `python manage.py makemigrations` is responsible for packaging up your model changes into individual migration files
- `python manage.py migrate` is responsible for applying those to your database.
## Re-create this project
- [BASIC_POETRY_DJANGO_SETUP.md](./docs/BASIC_POETRY_DJANGO_SETUP.md) contains instructions to set up the basics of this project
- [HOW_TO.md](./docs/HOW_TO.md) contains a step-by-step instruction to recreate this project.