https://github.com/erickgbr/djangomigrations
Is a proyect of study CS50 of Python Certification, only development of Django Framework and use
https://github.com/erickgbr/djangomigrations
certification cs50w django django-rest-framework python python3 rest-api sqlite sqlite3
Last synced: about 2 months ago
JSON representation
Is a proyect of study CS50 of Python Certification, only development of Django Framework and use
- Host: GitHub
- URL: https://github.com/erickgbr/djangomigrations
- Owner: ErickGBR
- Created: 2024-04-17T22:59:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T14:59:05.000Z (over 1 year ago)
- Last Synced: 2025-05-21T15:54:27.309Z (about 1 year ago)
- Topics: certification, cs50w, django, django-rest-framework, python, python3, rest-api, sqlite, sqlite3
- Language: Python
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Migrations Practice Project
This is a practice project using Django to work with migrations and a basic set of routes. The project includes a SQLite database and three main routes.
## Installation
1. **Clone the repository**:
```bash
git clone https://github.com/your_username/your_repository.git
cd your_repository
```
2. **Create a virtual environment**:
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```
3. **Install the dependencies**:
```bash
pip install -r requirements.txt
```
4. **Apply the migrations**:
```bash
python manage.py migrate
```
5. **Create a superuser**:
```bash
python manage.py createsuperuser
```
6. **Start the development server**:
```bash
python manage.py runserver
```
## Routes
The project includes the following routes:
- **/admin/**: Django admin interface.
- **/flight/**: Main page to list flights.
- **/flight//**: Detail page for a specific flight.
## Project Description
This project is a practice exercise for working with migrations in Django. It uses SQLite as the database and provides a basic interface for managing and viewing flights. The main routes allow access to the Django admin panel, list all available flights, and view the details of a specific flight by its ID.
## Migrations
Migrations are a crucial part of Django for handling changes in the database schema. This project includes basic examples of how to create and apply migrations using Django commands.
## Requirements
- Python 3.8 or higher
- Django 3.2 or higher
## How to Contribute
If you would like to contribute to this project, please follow these steps:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature/new-feature`).
3. Make your changes and commit them (`git commit -am 'Add new feature'`).
4. Push to the branch (`git push origin feature/new-feature`).
5. Create a Pull Request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.