Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erickgbr/djangomigrations
https://github.com/erickgbr/djangomigrations
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/erickgbr/djangomigrations
- Owner: ErickGBR
- Created: 2024-04-17T22:59:31.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-12T13:59:29.000Z (7 months ago)
- Last Synced: 2024-06-13T11:52:03.640Z (7 months ago)
- Language: Python
- Size: 37.1 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.