Django Girls in Cardiff

Published on Feb. 28, 2015, 10:43 a.m.

(From the Django Girls press release)

Django Girls is coming very soon to Cardiff - a first Wales edition of the international programming course directed at women. This non-profit event will take place during DjangoCon Europe, a large conference for programmers and will be attended by 45 women and girls who want to learn how to build web applications in just one day.

Django

Related ManyToManyField in Django admin site - continued

Published on Oct. 5, 2014, 6:50 p.m.

A few weeks ago, I posted an article about displaying related ManyToManyFields in the Django admin site. The trick presented in that article works and was tested in Django 1.5.8 and 1.6.5 (the latest releases at the time). In the mean time, as you probably know, Django 1.7 was released as well as a security update. Using any one of those releases (1.5.9, 1.5.10, 1.6.6, 1.6.7, 1.7), the trick presented in that article doesn't work as-is anymore. It requires a bit more code.

In this article, I'll give out that code and explain why it is now needed.

Tutorial Snippet Django

Creating a re-usable Django app - Part 1

Published on Aug. 30, 2014, 1:02 p.m.

Hi everyone and welcome back for this next tutorial of the Babbler series. This tutorial will cover 2 ways of creating a re-usable Django app.

The first and simplest one is apps for flexible and personal re-use.

The second one is a somewhat less simple way of doing it but which allows re-distribution of your application and that can be a very good thing too!

For the first part of this tutorial we will be using the custom user model, built during the previous tutorial, as a starting point. The second part will be using the theme application built during the Using your own flavour of bootstrap with django tutorial.

Tutorial South Django

Related ManyToManyField in Django admin site

Published on Aug. 19, 2014, 10:18 p.m.

Hello everyone. There is something quite common people are trying to do in Django which is accessing a ManyToMany relationship from both ends in Django admin.

Since this is something I am going to have to explain to someone tomorow, I thought I'd take the opportunity to write a short tutorial about it.

Tutorial Snippet Django

Updated repository for the Babbler series

Published on Aug. 16, 2014, 1:41 p.m.

Hi everyone.

This is just a short post to let you know that we have updated the repository for the Babbler tutorial series. Instead of using a different repository for each tutorial, we will now be using a single repository accessible from here.

Each tutorial has its own branch and tags mark the start and end of each tutorial part.

We have also uploaded the code for the last tutorial (Creating a custom user model in Django 1.6) since it was missing.

Some time next week we will publish the next tutorial in the series: Creating re-useable apps. In the mean time: happy coding everyone Smile

Tutorial Mercurial Django

Tinkering with Django and Ember.js

Published on July 15, 2014, 10:46 p.m.

Hi everyone. Recently I have been looking around at the various JavaScript frameworks that have been blooming out recently. Three came in front of the others, namely BackboneJs, AngularJs and EmberJs.

After looking at all 3 of them, EmberJs is the one which appeals to me the most. But if you hadn't guessed from the tutorials on this blog, I also like Django a lot and most tutorials out there talking about EmberJs and actually using a data backend are using Ruby on Rails and the few that I could find that were talking about Django were based on TastyPie while I like Django-REST-Framework better... So I decided to dive in and go full speed ahead and learn the hard way.

The result of which is Djember-CMS.

JavaScript Bootstrap Ember.js Framework Django

Creating a custom user model in Django 1.6 - Part 5

Published on July 9, 2014, 1:05 p.m.

Hello everyone and welcome back to the fifth part of this tutorial (part of the Babbler tutorial series). If you haven't read the first four parts I'd encourage you to do so now:

This week we will cover user registration with e-mail validation as well as the "lost / change password" workflow.
As we did two weeks ago we will be using (generic) class-based views to build our forms and Crispy forms to render them. We will also be using Templated emails to handle our email needs and we will create our first management command.

Class-based views Crispy forms Templated e-mails Tutorial Django Custom user model Read more...

Creating a custom user model in Django 1.6 - Part 4

Published on July 5, 2014, 12:33 p.m.

Hi everyone and welcome back to this Django tutorial. If you haven't done so yet, make sure to check out the first, second and third part of this tutorial before getting started today.

Once again, we are sorry about the partial posting of this article earlier this week.

This week we will start by covering the admin login form and allowing users to log into the admin site using their e-mail address or their username instead of just their username.
Then we will go through a couple more advanced cases of custom user model in Django, including expirable users.

Tutorial Django Custom user model


Published on July 2, 2014, 7:17 a.m.

Hello everyone.
We are sorry but it appears we published a partial post yesterday evening. It has been unpublished and its full version will be re-published tonight.
In the mean time, have a great day everyone.

Django

Creating a custom user model in Django 1.6 - Part 3

Published on June 24, 2014, 7:40 p.m.

Hello everyone and welcome back to the third part of this tutorial series. If you haven't done so yet, make sure to checkout part 1 and 2 first.
Last week we saw how to create and use admin forms with a custom user model. This week we will go through the process of creating a frontend login form. During this process we will also cover (part of) template inheritancecsrfthe messages framework, accessing the user from the template and Crispy forms.

I know last week I announced that this week's post would also cover the admin login form but finally the admin login form will be covered next week.

Class-based views Crispy forms Tutorial Django Custom user model Read more...