Skip to content

Code to go with StackAbuse article on using Django with Celery and Redis

Notifications You must be signed in to change notification settings

amcquistan/image_parroter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo App Using Django Celery and Redis for Image Thumbnail Generation

Code to go with StackAbuse article on using Django with Celery and Redis

local dev setup

  1. install Redis as described in blog post

  2. clone repo

git clone https://github.com/amcquistan/image_parroter.git
cd image_parroter
  1. make virtual env and activate it
python3 -m venv venv
source venv/bin/activate
  1. install python requirements
pip install -r requirements.txt
  1. start redis-server in its own terminal window
redis-server
  1. start celery worker in its own terminal window with the python virtual env from step 3 activated and in the same directory as the manage.py script
(venv) celery worker -A image_parroter --loglevel=info
  1. start django dev server, again in its own terminal window with the python virtual env from step 3 activated and in the same directory as the manage.py script
(venv) python manage.py runserver

Once these are complete you should be able to point your browser to http://localhost:8000 and see the Thumbnailer application

About

Code to go with StackAbuse article on using Django with Celery and Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published