30 May 2029

feedDjango community aggregator: Community blog posts

Django NoReverseMatch Explained

How to add slugs to any Django website.

30 May 2029 3:28pm GMT

20 Sep 2020

feedDjango community aggregator: Community blog posts

From PHP and SWISDK2 to Python and Django – 12 years later

From PHP and SWISDK2 to Python and Django - 12 years later

Once at a time1 there was an agency founded by a few friends and myself. We were using PHP at the time and had our own framework, the SWISDK - Simple Web Infrastructure SDK; quite a mouthful. It supported many features which are now commonplace in web frameworks such as an ORM, a mostly autogenerated admin interface, forms which could be used together with models, some sort of routing, generic views2, XSS and CSRF protection, support for translations in the code and the database, images, galleries, comments etc.

I think I had Django on my radar for quite a while already. I liked the template language and especially the template inheritance feature so much that I reimplemented it as an extension to the Smarty template engine. Smarty has built-in support for template inheritance since 2009 but I didn't profit from this anymore, because we migrated to Python and Django in 2008 and have never looked back. This was after manipulators had been replaced by the newforms library (the current django.forms) but before the newforms admin and before Django 1.0.

I also took a long and hard look at Ruby on Rails as an alternative. Ruby used and uses too much interpunction for my taste. Writing this down does not make it sound or feel better - as a reason it still sounds as meaningless as ever.

The decisive push factors were:

Pull factors for Python and Django were:

Python and Django, both the language and the community hasn't let me down and I hope the same is true vice versa. The excellent DjangoCon EU 2020 has only helped making me ever more glad about that choice.

Here's to ten more years of Python and Django - also at Feinheit.

  1. A bit more than 14 years ago. I can hardly believe it myself.

  2. Or rather viewsets.

20 Sep 2020 7:32pm GMT

Tweet from Django application using Tweepy

In this tutorial, we will learn how to post a tweet from Django application using Tweepy.

20 Sep 2020 5:25pm GMT