Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Quick Django Class Based View Decorator
A quick way to use decorators on Django class based views using Python metaclasses. -
Faking attributes in Python classes…
… or how to imitate dynamic properties in a class object Preface: When you have connections between your application and other systems frequently the data is not in the most useful form for your needs. If you have an API it is awesome but sometimes it just does not act the way you want and [...] -
5 open-source Python/Django apps we love
The Python/Django duet is fantastic, everyone knows that. However it can be even more awesome with these apps: 1. South This is an intelligent schema and data migration tool. If you don’t use it yet, you will want to after reading this post. Okay… but what it is exactly? When you create a Django app, you are using the “syncdb” command. After a model changes you have to delete the whole database and run “syncdb,” or manually do SQL changes directly in the database. It’s even more tragic when you already have production data. Not so fun, right? Enter our hero: “South.” Its main objectives are to provide a simple, stable and database-independent migration layer to prevent all the hassles schema changes bring to your Django applications over time. Simple example Let’s create a model in our “southtut” app: class Knight(models.Model): name = models.CharField(max_length=100) of_the_round_table = models.BooleanField() Then let’s create our first migration: $ ./manage.py schemamigration southtut --initial Creating migrations directory at '/home/andrew/Programs/litret/southtut/migrations'... Creating __init__.py in '/home/andrew/Programs/litret/southtut/migrations'... + Added model southtut.Knight Created 0001_initial.py. You can now apply this migration with: ./manage.py migrate southtut And apply our new migration: $ ./manage.py migrate southtut Running migrations for southtut: - Migrating forwards to … -
Running sentry on DotCloud
Sentry is a realtime event logging and aggregation platform. At it’s core it specializes in monitoring errors and extracting all the information needed to do a proper post-mortum without any of the hassle of the standard user feedback loop. The main feature of sentry and the ability to send all of your application logs to one place, and then aggregate them, so that you only get one error email for the same error. This will keep your mailbox from flooding, when something goes wrong. Putting your logging server on a different server or network then your production servers is a good idea. If something goes wrong, and you can't access your servers, you can still see what errors were getting thrown before the servers started having problems. Follow these easy steps to get sentry up and running on DotCloud. Create a place to store your project $ mkdir -p ~/projects Go into the projects directory $ cd ~/projects Clone git repo from github, requires git client $ git clone git://github.com/kencochrane/sentry-on-dotcloud.git Go into the new project directory $ cd sentry-on-dotcloud Creating the virtualenv (using virtualenvwrapper, virtualenv, and pip) $ mkvirtualenv --no-site-packages --distribute sentry-on-dotcloud Install all of the Sentry requirements via pip … -
Angelo Dini is a core developer
Angelo Dini is a core developer -
django CMS 2.2 roadmap update
django CMS 2.2 roadmap update -
django CMS 2.2 release candidate 2 available
django CMS 2.2 release candidate 2 available -
Scary monsters and feature-creep
Scary monsters and feature-creep -
Security release issued
Security release issued -
django CMS 2.1.4 security release issued
django CMS 2.1.4 security release issued -
django CMS 2.2 release candidate available
django CMS 2.2 release candidate available -
django CMS 2.2 beta 1 available
django CMS 2.2 beta 1 available -
django CMS 2.1.2 released
django CMS 2.1.2 released -
django CMS 2.2 released
django CMS 2.2 released -
How to justify attending PyCon sprints
Sad that the PyCon sprints fall on business days? Wishing you could stay but the boss/client won't let you and demands you back so 'you can work'? This is how you make it so that the sprints are something your management is demanding you attend every sprint ever.Make it foremost in your mind that the wonderful thing about the PyCon sprints is that the odds are that anyone who knows anything about whatever you are doing in Python will be there.Write up a list of the things that you are finding challenging, hard, or impossible to do with Python.Now go to the boss and say something like: "Because the experts and leaders of the open source tools we are using are going to be there, I want to attend PyCon sprints. All my time at the sprints will be focused on sitting around them and working on our tools. I'll focus on things that directly impact our agency / company / organization, specifically things I wrote down on this list."If the boss says, "Why not just use IRC or email?"Then you say something like, "Well, IRC/email is not the same as sitting next to these people. I'll be so much … -
Forms Part 3: Model Based Forms
Model forms really helps to show the power behind Django. When all it takes is to define a model and then attach the model object to a form object and poof you have a form, I call that winning. In this video we will go over using your models you already have to create forms to save you time, heartache, and code.Watch Now... -
Forms Part 3: Model Based Forms
Model forms really helps to show the power behind Django. When all it takes is to define a model and then attach the model object to a form object and poof you have a form, I call that winning. In this video we will go over using your models you already have to create forms to save you time, heartache, and code.Watch Now... -
Software for business
I am starting a new blog. The reason is that I want to keep this one more technically oriented while the other will be more business and customers oriented. Its name is Software for business and the idea is to show to the business in less technical details how the modern IT technologies like CRM [...] -
Connecting Django Models with outer applications
Preface: Sometimes, parts of the data that you have to display in your application reside out of the Django models. Simple example for this is the following case – the client requires that you build them a webshop but they already have CRM solution that holds their products info. Of course they provide you with [...] -
Join the PyCon Early Birds program!
First off, I want to say that me and my fiancee will be attending PyCon US this year! Hooray! Can't wait to see old friends and make new ones. I'll be chairing one of the Panels at the PyWeb Summit on March 8th. We're absolutely delighted to see all the great talks, hang out in the hallway, and just be in the middle of Python for well over a week. Now on to the extremely unofficial PyCon Early Birds program!PyCon early registration ends on January 25th. If you register at the early bird rate that gets you the benefit of joining the elite PyCon Early Birds group. Being a member of the PyCon Early Birds gets you all sorts of incredible rewards and benefits.Most importantly, you get some serious bragging rights.A custom ribbon that says 'Early Bird' that you get to attach to your conference badge.A discounted rate from the regular ticket rate as according to the registration page.The confidence of knowing you have a ticket before they sell out.A tasty and rather edible store-bought cookie provided by myself and Audrey Roy.If the PyCon Early Birds program gets enough members, I'm going to challenge PyCon chair Jesse Noller to stump … -
Website changes: sphinx code, layout, twitter bootstrap, less
-
Django explained with model/view/controller (MVC)
-
Checking out tags from git on your server
-
Many-to-many field, save() method and the Django admin
-
Back