A simple Django CRUD application for managing books.
- Python 3.x
- Django 3.x
-
Clone the repository:
git clone https://github.com/FernandoZnga/shiny-book.git cd yourproject
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS and Linux
source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py makemigrations python manage.py migrate
-
Create superuser (optional, for accessing the admin interface):
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Visit: localhost in your broser to interact with the CRUD app
- Create, read, update and delete books
- Simple and intuitive user interface
Books/
├── Books/
│ ├── __init__.py
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── Core/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── forms.py
│ ├── models.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── templates/
│ └── Core/
│ ├── book_confirm_delete.html
│ ├── book_detail.html
│ ├── book_form.html
│ └── book_list.html
├── manage.py
└── requirements.txt
- Fork the repository.
- Create a new branch:
git checkout -b my-new-feature
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin my-new-feature
. - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Create a requirements.txt
file in the root of your project with the following content:
Django>=3.2,<4.0