Skip to content

An application using Django Web Framework and DRF to pin content

Notifications You must be signed in to change notification settings

fandredev/django-recipes

Repository files navigation

Stack used

Tests: Pytest, Unittest
Lint: Ruff

Authors

@fandredev

Installation with uv:

First, clone this repository.

git clone git@github.com:fandredev/django-recipes.git

Install dependencies and create environment

uv sync

Run migrations to database

uv run python manage.py migrate

Create a superuser

uv run python manage.py createsuperuser

Clone the .env.example to .env before run server

cp .env.example .env

Run development server

uv run python manage.py runserver

Open development server

Open browser and put http://127.0.0.1:8000/ in URL browser.


Open Django Admin

In another tab, open browser and put http://127.0.0.1:8000/admin in URL browser. Log in with your superuser


Run tests with unittest

uv run python manage.py test

Run ALL tests with pytest

uv run pytest

Run functional tests with Selenium

uv run pytest -m 'functional'

Run coverage with pytest

uv run coverage run -m pytest

Open coverage report

uv run coverage html

After that, open the htmlcov folder and look for the index.html file. Open it in your browser and the project coverage will be there


Use collection

Use DRF.postman_collection.json file to use Django Rest Framework routes

image


Feedback

If you have any feedback, please let us know via profissionalf.andre@gmail.com

Referencies

About

An application using Django Web Framework and DRF to pin content

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors