Coder Social home page Coder Social logo

picolotolf / django-celery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdrkb/django-celery

0.0 1.0 0.0 12 KB

Django asynchronous task example using Celery and RabbitMQ

Home Page: https://rakibul.net/django-celery-1

License: MIT License

Python 80.98% HTML 19.02%

django-celery's Introduction

mycelery

Django asynchronous task example using Celery and RabbitMQ.

Getting Started

Prerequisities

  • Python >= 3.5.2
  • RabbitMQ
  • Virtualenv

Installing

git clone https://github.com/mdrkb/django-celery.git
cd django-celery
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cd mycelery
python manage.py migrate

Running Django Server

python manage.py runserver

Running RabbitMQ Worker

Open another terminal. Navigate inside ../mycelery/mycelery/ by activating virutal environment. Then run the following command:

celery -A mycelery worker -l info

Open browser and go to http://127.0.0.1:8000/generate-user/. Give input for number of users and the task will be performed asynchronously.

django-celery's People

Contributors

rakib-bs23 avatar mdrkb avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.