https://github.com/stefanspiess/django_app_with_pytest
A Django-based web application created for educational purposes, showcasing good practices in Django development and testing using pytest and pytest-django.
https://github.com/stefanspiess/django_app_with_pytest
django django-rest-framework pytest pytest-cov python
Last synced: about 2 months ago
JSON representation
A Django-based web application created for educational purposes, showcasing good practices in Django development and testing using pytest and pytest-django.
- Host: GitHub
- URL: https://github.com/stefanspiess/django_app_with_pytest
- Owner: StefanSpiess
- License: mit
- Created: 2025-04-28T14:23:35.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-22T10:56:15.000Z (3 months ago)
- Last Synced: 2025-08-17T00:03:40.746Z (about 2 months ago)
- Topics: django, django-rest-framework, pytest, pytest-cov, python
- Language: Python
- Homepage:
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytest_udemy_django
A Django-based web application created for educational purposes, showcasing best practices in Django development and testing using `pytest` and `pytest-django`. This project is ideal for developers looking to learn or improve their skills in building and testing Django applications.
## Features
- **Django Framework**: Implements a robust and scalable web application using Django.
- **Testing Integration**: Comprehensive test suite leveraging `pytest` and `pytest-django` for unit and integration testing.
- **Educational Focus**: Designed to demonstrate practical examples of Django development and testing workflows.## Installation
Follow these steps to set up the project locally:
1. **Clone the Repository**:
```bash
git clone https://github.com/your-username/pytest_udemy_django.git
cd pytest_udemy_django
```2. **Set Up the Environment**:
Install dependencies using `pipenv`:
```bash
pip install pipenv
pipenv install --default
```3. **Apply Database Migrations**:
```bash
pipenv run python manage.py migrate
```4. **Run the Development Server**:
```bash
pipenv run python manage.py runserver
```## Usage
- Access the application in your browser at `http://127.0.0.1:8000/`.
- Explore the features and functionality provided by the application.## Testing
Run the test suite to ensure everything is working as expected:
```bash
pipenv run pytest
```## Contributing
Contributions are welcome! Feel free to fork the repository, make changes, and submit a pull request.
## License
This project is licensed under the MIT License. See the `LICENSE` file for details.