Skip to content

justdjango/dj-video-membership

Repository files navigation

JustDjango

The Definitive Django Learning Platform.

Django Video Membership Website

This is a video membership website built with Django.

This project was bootstrapped with Cookiecutter Django

https://github.com/pydanny/cookiecutter-django/ https://github.com/ambv/black

Learn Django

This project is part of a course on JustDjango. If you want to learn how to become a professional Django developer, consider signing up for access to our courses.

Getting started

To have the project up and running, create a .env file in the root of this project and enter the environment variables according to the .template.env file.

You will need to set this environment variable so that it reads the .env file:

export DJANGO_READ_DOT_ENV_FILE=True

Type checks

Running type checks with mypy:

mypy djvideomem

Test coverage

To run the tests, check your test coverage, and generate an HTML coverage report::

coverage run -m pytest
coverage html
open htmlcov/index.html

Running tests with py.test

pytest

Celery

celery -A config.celery_app worker -l info

Make sure to have redis running with

redis-server

Other places you can find us:

YouTube Twitter