A blog about Django, Python, mongo DB, LINUX, Amazon Web Services


Django Hosting on Amazon EC2 with wordpress on same domain

Posted On 16 June 2013 By MicroPyramid

Configuring the Wordpress as subdirectory can be tricky. In this tutorial we will Setup a Django Website alongside a wordpress blog.

Understanding Django Permissions And Groups

Posted On 06 June 2013 By MicroPyramid

Django comes with a simple permissions system. It provides a way to assign permissions to specific users and groups of users. We can have permissions for add, edit, deleting a model.

Django permissions are of 2 types:
1.Model level permissions
2.object level permissions

Celery With Supervisor

Posted On 12 May 2013 By MicroPyramid

Celery is a task queue with focus on real-time processing, while also supports task scheduling. Task queues are used as mechanisms to distribute work across multiple threads or machines. A task queues input is a unit of work called a task,dedicated worker processes and constantly moniter the queue for new work to perform. Celery communicates via messages using a broker to mediate between workers and clients.

Django Inclusion Tags

Posted On 19 April 2013 By MicroPyramid

Django’s template system comes with a wide variety of built-in tags and filters designed to address the presentation logic needs of your application. You can extend the template engine by defining custom tags and filters using Python, and then make them available to your templates using the {% load %} tag.

Custom template tags and filters must be inside a Django app. If they relate to an existing app it makes sense to create them there; otherwise, you should create a new app to hold them.

Dynamic Models in Django (adding new fields to models from admin)

Posted On 04 April 2013 By MicroPyramid

Some times in the production level there may be a chance of adding new fields to our model.With the normal django models when we add new field to the model the database is not able to identify the new field.To make database identify the new field we have to drop the existing database from the database and sync our application again.During the time of production it is not possible to remove the existing data. The solution for this is Django-eav. With this we can add fields to our models on fly.

E-commerce (paypal) integration with Django

Posted On 30 March 2013 By MicroPyramid

E-commerce is integration is becoming almost essential for every web application now a days. There are so many payment gateways to integrate with our application. Some of them are Amazon payments, Asiapay, BPAY, Brain Tree, PayPal ...etc. Out of these now in this we'll see how to integrate Paypal with our django Application.

Django on GAE (google app engine)

Posted On 10 March 2013 By MicroPyramid

Google App Engine (often referred to as GAE or simply App Engine) is a platform as a service (PaaS) cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers.App Engine offers automatic scaling for web applications—as the number of requests increases for an application, App Engine automatically allocates more resources for the web application to handle the additional demand.

How to access development server publicly using Localtunnel

Posted On 23 February 2013 By MicroPyramid

We do need to expose our local server to hit call-back URLs while programming with other APIs. There is a tool called local tunnel from http://localtunnel.me/ and that does it for you for free with https. Now, what local tunnel is? Local tunnel allows us to easily share a web service on our local development machine without any server modifications. It will assign a unique URL which can be publicly accessible that will proxy all requests to our locally running webserver.

How to generate PDF Files from HTML In Python using PDFKIT

Posted On 02 February 2013 By MicroPyramid

There are many approches for generating PDF in python. pdfkit is one of the better approache as, it renders HTML into PDF with various image formats, html forms and other complex printable documents.

Converting Audio and Video files using FFMPEG Tool

Posted On 29 January 2013 By MicroPyramid

FFMPEG is a command-line tool that converts audio or video to required formats, which handle multimedia data. It can also capture and encode in real-time.

Need any Help in your Project?Let's Talk