Posted On 22 January 2016 By MicroPyramid
By writing unit test cases, you can evaluate each code component in the initial stage itself and it'll improve your app/code performance. Which is the best practice to test your code and you can easily determine if there are any errors.
Posted On 22 January 2016 By MicroPyramid
Self Motivation is important to achieve success in life. Motivation is what Pushes us to achieve our goals, One of the biggest challenge is meeting goal whether it may be anything like productivity, changing habit etc.
Posted On 22 January 2016 By MicroPyramid
Docker, has captured the hearts and minds of the Devops community, with its platform for delivering distributed applications in containers. In this Blog Post, Lets look on how to deploy a sample django app into docker container.
Posted On 22 January 2016 By MicroPyramid
IPython is a set of tools developed to make it easier for the programmers to work with Python and data. IPython provides extensions to the Python programming language that make working interactively convenient and efficient. IPython Notebook lets you write and execute code, analyze data in your web browser.
Posted On 22 January 2016 By MicroPyramid
Querying with Django Q objects: Q object encapsulates a SQL expression in a Python object that can be used in database-related operations. Using Q objects we can make complex queries with less and simple code.
Posted On 22 January 2016 By MicroPyramid
Arrow is a python library and command-line tool to genrerate, manipulate dates, times, timestamps.
use of arrow:
With the use of arrow, we can also create, manipulate, format and convert dates, times, and timestamps, convert timezones, generates time spans, ranges, floors and ceilings with a less code.
Posted On 22 January 2016 By MicroPyramid
Using python requests and vimeo endpoints it becomes very easy and simple to upload our videos and customize them.
Vimeo Access token:
1. Create an account at vimeo, vimeo has different levels of account, so based on your requirement signup for suitable account.(This article assumes pro account)
2. After you log in, create an app and generate token based on your requirement like editing, uploading, view etc..
Posted On 22 January 2016 By MicroPyramid
Here You can learn about how to setup and deploy a Django application to Amazon Web Services (AWS).
Tools/technologies used:
Python v2.7
Django v1.7
Amazon Elastic Beanstalk, EC2, and S3
Posted On 22 January 2016 By MicroPyramid
It is a bit pricy if you want to host code for collaboration using bitbucket or github on your own VPS or On-Premisis servers. Gitlab in midst of this provides a community edition which is packed with essential features and also free of cost. Both Editions ship with CI integrated in it and also can handle 3rd party CI applications like Jenkins or Bamboo ..etc.,
Posted On 22 January 2016 By MicroPyramid
Django by default to store the files in your local file system. To make your files load quickly and secure we need to go for any third party storage systems. AWS s3 is one of the storage service for the Internet. It is designed to make web-scale computing easier for developers. django has a package called django-storages which can be used to store the files in the amazon s3 and serve them from its cloudfront service.
Test Cases For Forms, Views
In this post, we’ll see how to write unit test cases for any project.
Having tests for any project will helps you to find bugs. If any of the function breaks, you will know about it. Its easier to debug code line by line.
Unit Tests: ...