Tag Archives: Django

Fit Any Backend Into Ember with Custom Adapters & Serializers

via Fit Any Backend Into Ember with Custom Adapters & Serializers – Ember Igniter.

An API is a language and for successful communication, parties have to understand each other.

In our app-world, backends (be it Rails, CakePHP, Django, Express, or any other) often dictate the rules and styles of this language. They define an API and it’s the client’s job to adhere to it – even with a common alphabet like JSON.

In this guide we’ll explore Ember Data strategies that aid us in that “translation” process.

From Python to Go: migrating our entire API

via From Python to Go: migrating our entire API – Repustate.

If you want to know the whole story, read on. But for the impatient out there, here’s the executive summary:

  • We migrated our entire API stack from Python (First Django then Falcon) to Go, reducing the mean response time of an API call from 100ms to 10ms
  • We reduced the number of EC2 instances required by 85%
  • Because Go compiles to a single static binary and because Go 1.5 makes cross compilation a breeze, we can now ship a self-hosted version of Repustate that is identical to the one we host for customers. (Previously we shipped virtual machine appliances to customers which was a support nightmare)
  • Due to the similarity between Python and Go, we were able to quickly re-purpose our unit tests written in nose to fit the structure that Go requires with a just a few simple sed scripts.

Enabling Gzip with ngnix

Gzipping has its advantages, it compresses CSS, JS and HTML so that your response time increases. Lets say that you save 100KB per hit after Gzipping, now say you get 1000 unique hits per day, that will  be 100MB of data saved a day, pretty huge saving. I am using Ngnix now predominantly, so ngnix.conf […]


Deploying a Django App with mod_wsgi on Ubuntu 14.04

via Deploying a Django App with mod_wsgi on Ubuntu 14.04.

Django is a free, open-source, Python-based web framework. Django follows the MVC architectural pattern, with special emphasis on creating your applications rapidly. In recent times, Django has become a popular choice for creating web applications. Popular services like Instagram, Bitbucket and Pinterest were developed using Django.

In development mode, Django has a development server, which is sufficient for testing purposes. Once you complete a web application and it’s ready for production, the process of setting up the application on a server might be overwhelming for some, especially if you’re doing it for the first time. This article provides a step-by-step guide on how to deploy Django-based web applications using mod_wsgi.

Video 11 Hours Tutorials Course: Zero to Hero with Python

Python and Django Tutorials Building Websites from Scratch https://goo.gl/Tgs6zT

Explore More Python Tutorial http://bit.ly/1MWVkSg

Are you brand new to coding? Want to see how fun and easy it can be? Watch engaging experts Susan Ibach and Christopher Harrison for an entertaining introduction to solving real-world problems using the popular programming language, Python. Susan and Christopher offer a step-by-step walk-through, from a basic idea to translating that idea into code, and everything in between.

Don’t worry about making mistakes! Python uses simple syntax, has an easy learning curve, and is a very forgiving language. Gain a new skill or complete a task by the end of each module, and, by the end of the course, you will be writing programs! You also learn basic principles which can make it easier for you to learn other programming languages in the future. Don’t miss this opportunity to go beyond the if statement!

[00:00:00] Getting Started
Explore applications of Python language, and create a “Hello world” application for Python in Visual Studio as you learn the benefits of knowing Python. Get help setting up your computer so you can start coding.

[00:50:21] Displaying Text
Get an introduction to the print statement, comments, and basic formatting, so you can display and format text to a user.

[01:20:29] String Variables
Learn about the input statement, string variables, and manipulate strings, so you can prompt a user for input, store values in a string, and use string functions to manipulate string values.

[02:20:00] Storing Numbers
Hear an introduction to numeric datatypes and variables, how to do math operations, and datatype conversions. Learn to store numeric values and perform math operations.

[03:14:26] Working with Dates and Time
Get the details on date variable storage and issues, along with date functions and formatting, so you can store and manipulate date values.

[04:05:53] Making Decisions with Code
Hear an introduction to basic if/else statements and Boolean variables, so you can write code that reacts differently to different user inputs.

[04:57:42] Complex Decisions with Code
Explore and/or statements, nested if statements, and elif, so you can write code that reacts differently to more complex user inputs.

[05:55:39] Repeating Events
Take a look at for loops and nested for loops, so you can write code that repeats a fixed number of times.

[06:47:03] Repeating Events until Done
Play with while loops, and learn when to use for versus while loops, so you can write code that repeats as often as needed.

[07:20:18] Remembering Lists
Get the details on arrays and lists, so you can store multiple values.

[08:04:21] How to Save Information in Files
Hear about functions for creating and writing to files, so you can write code that saves information in a file so you can remember it later.

[08:40:42] Reading from Files
Explore functions for reading from files, so you can read information that was saved in a file.

[09:25:21] Functions
Learn about the syntax for declaring functions and how to call functions from your code, so you can use functions to avoid retyping the same code over and over.

[10:13:29] Handling Errors
Get the details on syntax for error handling, so you can write code that can handle common error situations without crashing.

Source Code: https://github.com/kidscancode/intro-…

Python Tutorial: Creating Web Sites using Python and Flask

Creating Websites using SQL, Python, and Flask

Frontend Code Strategy with Django

via Django Screencasts and Tutorials – GoDjango.com.

Web development is getting more and more focused on front-end development. This leads to a lot of questions on what is the best way to handle compiling css, javascript, coffeescirpt, stylus, etc. Having been involved with a project where the frontend deals with 100+ files between stylus files, coffeescirpt files, javascript, and css. This is kind of crazy to manage without a good strategy or even knowing how to accomplish it.

Let LoopBack Do It: A Walkthrough of the Node API Framework You’ve Been Dreaming Of

via LoopBack: A Powerful Node API Framework | Toptal.

It’s needless to mention the growing popularity of Node.js for application development. eBay has been running a production Node API service since 2011. PayPal is actively rebuilding their front-end in Node. Walmart’s mobile site has become the biggest Node application, traffic wise. On Thanksgiving weekend in 2014, Walmart servers processed 1.5 billion requests, 70 percent of which were delivered through mobile and powered by Node.js. On the development side, the Node package manager (npm) continues to grow rapidly, recently surpassing 150,000 hosted modules.

While Ruby has Rails and Python has Django, the dominant application development framework for Node has yet to be established. But, there is a powerful contender gaining steam: LoopBack, an open source API framework built by San Mateo, Calif., company StrongLoop. StrongLoop is an important contributor to the latest Node version, and they’re the same guys that brought us Express, one of the most popular web frameworks for Node.