Tag: Django

Specifying a Python Version for Cloud Foundry

When you use Cloud Foundry to build Python based solutions like Django, you end up running into the issue of Python versions. By default Cloud Foundry, defaults the Python version to 2.7.11. Between version 2.7.11 and the latest 3.5.x, Python has made a lot of changes and even simple string processing functions could potentially error ...

Model Inheritance in Python Django

Amongst, other things, Django asĀ a powerful framework allows you to directly map your object-oriented models to a database table structures and in doing so also builds relationships in the backend. A big part of object-oriented programming is Inheritance and the tutorial below demonstrates how to create 1:1 relationship between models. Basic Background Let’s assume that ...

Python Django Buildpack for Cloud Foundry

Django is a powerful python framework to rapidly create apps. This post provides you with a buildpack that will help you accelerate the Django framework installationĀ on cloudfoundry. This post assumes the following: You have created an app using the cf tools You have created a postgres database service using the cf tools You have bound ...