Django Covid19 – Dashboard App

Plotly made Covid19 Dashbaord app

User can view all information

User can view Bar Graph

User can filter new case view

User can filter death case view

User can view line graph with new case and death case

User can filter new case with line graph

User can filter death case with line graph

User can view Pie Chart with case information

Use can filter Pie Chart

User can view combine all charts

Django Report App

Report Details View :
In Django app, we have provide 3 different types of report like CSV, PDF, EXCEL.

If you need add record then click on Add Record Button.
Then enter your details.

Display Record in Data-Table List.

Report will generate base on user setting Min and Max Age and select Report Type.

CSV Report:

PDF Report:

EXCEL Report:

Edit Data:

When you delete a record, then system will ask for confirmation.

User can search record.

User can sort column.

Paypal payment gateway connection in Django

Use Paypal Payment Integration in Jobseeker Website

We have implemented solution for allowing payment process via Paypal from Django. We are still improving this module by adding new functionalities. Currently we have implemented feature with Client monthly and yearly plan activation to post a Job.
We have created account on Paypal ( We can get more information from here :
In Django-Jobseeker, first we have to sign in as a company for selecting plan, for signing in you must have created account on Django-Jobseeker.

Django Jobseekar Login Page
Django Jobseeker Login Page

Company have the option to post the Job Before post the job company have to pay some amount according to the plans, that are available on the plan list

Django Jobseekar Post Job
Django Jobseeker Post Job

When Company select the option of post job, plans are visible on the screen where company can select the one of them, Company can select plan of yearly basis or monthly basis

Django Jobseekar Select Plan
Django Jobseeker Select Plan

After selecting the plans from plan list company have to choose payment method to pay, If company select the Paypal gateway to pay, It redirect to the Paypal account form

Django Jobseekar Select Gateway
Django Jobseeker Select Gateway

Company selected the Paypal Gateway So It redirect to the Paypal button

Django Paypal button
Django Paypal button

After clicking on paypal Button It redirect to the Paypal login screen where company have to login with their Paypal account

Django Jobseeker Paypal Login Screen
Django Jobseeker Paypal Login Screen

Company Have to Add the payment detail

Django Jobseeker Credit Card Detail
Django Jobseeker Credit Card Detail

After Adding the detail of payment it show the Pay Now Button

Django Jobseeker Payment Button
Django Jobseeker Payment Button

Clicking on Pay Now Button, Payment will be successfully done and It will show the Receipt

Django Jobseeker Receipt
Django Jobseeker Receipt

When clicking on return to merchant it redirect to the message of payment successfully done

Django Jobseeker Payment Done
Django Jobseeker Payment Done

How to change default Python version in Ubuntu ?

Sometimes, you may require to change default python version of your linux operating system.
you can accomplish it by using following steps. First make sure you have root level privileges.

Now, you can see following lines which will be different according to operating system. Make changes into ‘default-version’ and save this file.

In next step, we have to change default link file of python.

Just move old file to another location.

Now again create symbolic link for python.

Check your python version.


How to install python2.5 in ubuntu 11.04 ?

Today for some urgent programs, need to work in Python 2.5 in Ubuntu 11.04.

But Ubuntu 11.04 is giving Python 2.7 by default. So I tried to install Python 2.5 but got some difficulties.
So I did R & D and found this solution. I know its very helpful so sharing with you guys.

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.5

How to create a module in OpenERP ?

It is very easy to create a module in OpenERP.

Find the below displayed screens. We will code to result this output.

Tree View

Form View

Few files needs to be created compulsory. We will take an example let say – “test_module”

First of all, we will see the architecture of a typical OpenERP module.

  3. Python files
  4. XMLFiles
    1. Actions
    2. Menu Entries
    3. Reports
    4. Wizards

All the modules are located in server/addons directory.

The following steps are necessary to create a new module “test_module”:

– create a subdirectory in the server/addons directory having module name test_module.

– create a module description file:

– create the Python file containing the objects.

– create .xml files that download the data (views, menu entries, demo data, …).

– optionally create reports, wizards or workflows.

We will see each files introduction one by one.

The file:

The file is, like any Python module, executed at the start of the program. It needs to import the Python files that need to be loaded.

So, if you create a “” file, containing the description of your objects, you have to write one line in


The file

In the created module directory, you must add a file. This file, which must be in Python format, is responsible to

  1. determine the XML files that will be parsed during the initialization of the server, and also to
  2. determine the dependencies of the created module.

This file must contain a Python dictionary with the following values:

"name" : "Test Module",
"version" : "1.1",
"author" : "Open",
"category" : "Test Base/Test Base",
"depends" : ["base"],
"init_xml" : [],
"demo_xml" : [],
"update_xml" : ["test_view.xml"],
"installable": True,
"active": True

The file

from osv import osv

from osv import fields

class test_base(osv.osv):

    ”’Test Base Class”’







The text_view.xml file

<?xml version=“1.0” encoding=“utf-8”?>



       <record model=“ir.ui.view” id=“test_base_form”>

           <field name=“name”>test.base.form</field>

               <field name=“model”>test.base</field>

               <field name=“type”>form</field>

               <field name=“arch” type=“xml”>

                   <form string=“Test Base”>

                       <field name=“name”/>

                       <field name=“code”/>




        <record model=“ir.ui.view” id=“test_base_tree”>

            <field name=“name”>test.base.tree</field>

            <field name=“model”>test.base</field>

            <field name=“type”>tree</field>

            <field name=“arch” type=“xml”>

                <tree string=“Test Base”>

                    <field name=“name”/>

                    <field name=“code”/>




        <record model=“ir.actions.act_window” id=“action_test_seq”>

            <field name=“name”>Test Base</field>

            <field name=“res_model”>test.base</field>

            <field name=“view_type”>form</field>

            <field name=“view_mode”>tree,form</field>


        <menuitem id=“menu_test_base_main” name=“Test Base”/>

        <menuitem id=“menu_test_base” parent=“menu_test_base_main”

                  name=“Test Base” action=“action_test_seq”/>



How to convert *.pyc to *.py files ?

Before few weeks I required to convert *.pyc to *.py files for one of my python project so thought to share with others.

Here is the steps to follow:

– Download plugin from below link,
– extract the ZIP file.
– Goto command prompt,

$ sudo python install
$ uncompyle2 -h (will give you help to process further)

I want add here is, its working on for python 2.7 only.