A Complete Tutorial: Using RabbitMQ + Celery with Multiple Django Projects

In this post, we’ll walk through how to set up RabbitMQ on one server and run Celery across multiple Django projects, with clean project isolation, scalable architecture, and best practices. ✅ Step 1: Install RabbitMQ (Server A) ➡️ On Ubuntu (Server A): sudo apt update sudo apt install rabbitmq-server -y sudo systemctl enable rabbitmq-server sudo systemctl start rabbitmq-server ➡️ Enable RabbitMQ Management UI: sudo rabbitmq-plugins enable rabbitmq_management Visit: http://server-a-ip:15672 (default guest/guest). ➡️ Create RabbitMQ User: sudo rabbitmqctl add_user admin strongpasswordhere sudo rabbitmqctl set_user_tags admin administrator sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" sudo rabbitmqctl delete_user guest # For security ➡️ Open Ports: 5672 (for Celery workers) 15672 (for admin UI, restricted IPs recommended) ✅ Step 2: Project Structure (Multiple Django Projects Example) /var/www/ ├── project_...

Highcharts: A 10 minutes overview.

A Norway-based company 'Highsoft' offering charting library written in pure javascript. Its a major addon to web applications requires interactive charts. Currently they're supporting many chart types including line, area, column, bar, pie, scatter, bubble, gauge, spline, areaspline and polar etc.

Already Highcharts is providing a descriptive demo page considering all examples (Highcharts Demos). The pupose of the article only to understand maximum aspects in a view.

Features :

Compatible with all major browsers, it also provides features like DateTime support, Export (PDF/ PNG/ JPG / SVG), Print and Zoomablity etc.

Installation:

Its a single file downloadable from (https://www.highcharts.com/). Also packages through npm and Bower are avalable. We may load file on our domain or use CDN version.

Load files from your own domain (Insert in html head)

<script src = "/js/highcharts.js">

CDN Version (Insert in html head)

<script src = "https://code.highcharts.com/highcharts.js">

Highcharts general elements are worth to understand. Then next step is formatting. It helps to mould highcharts as per our requirement.

Below are few very important queries, while working with Highcharts.

How to format Legend?
How to format x-axes?
How to format y-axes?
How to format column?
How to format tooltip?
How to format y-axes stackLabels?
How to colour the columns?
How to add event on columns?

In below image all questions are answered.
Also view complete example in jsfiddle.

Also we'll discuss other aspects of highcharts soon.

Comments

  1. https://stackoverflow.com/questions/48748550/google-chart-horizontal-scrolling

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Reset All Migrations in Django: A Comprehensive Guide

Implementing Throttling in Django REST Framework.

Differences Between List, Dictionary, and Tuple in Python