Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (24 loc) · 762 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 762 Bytes

DjangoChannelsTest

Test project to show a slow initialization of the Django Channels framework

Linked Problem: Django Channels with Redis slow intialization

Usage

Create a ".env" file in root directory of this project. Write following inside:

DEV_WORKING_DIRECTORY=/path/to/my/docker-volumes

PORT_REDICT=6379

Migrate

python manage.py migrate

Create a superuser

python manage.py createsuperuser

Run the docker composition (which contains 1 image: Redict, a drop-in replacement for redis):

docker compose up

After that start this Django project:

python manage.py runserver