Category: django

Playing with django-invitation module

Invitation to the Dance (film) (Photo credit: Wikipedia) Django logo (Photo credit: Wikipedia) In this post, I will explain you how to use the great Playing  django-invitation module, which as its name indicates permits to invite people to the beta of a web app, for example. The documentation of the django-invitation module is accessible on […]

NoReverseMatch error in python django… The solution

More accurate representation of relationship between URIs, URNs, and URLs. Revised version of File:URI Venn Diagram.svg, per Talk:Uniform Resource Identifier#Misleading Venn Diagram in a different way. (Photo credit: Wikipedia) NoReverseMatch error is nasty with python Django. It happens often when you add a new page. In this post I will explain you how to solve […]

Playing with user registration in django

English: Gmail registration screenshots فارسی: عکس‌های برگه ثبت‌نام جی‌میل (Photo credit: Wikipedia) Django registration module is quite handy whenever you need some users to, well, registrate to your website… In this post, I will explain you how to install and configure it for your web app. To install django registration module: easy_install -Z django-registration The […]

Django: how to run backgroung tasks in parallel and deferred processing (background tasks) thanks to celery

Head of celery, sold as a vegetable. Usually only the stalks are eaten. (Photo credit: Wikipedia) I am implementing a web app with Django. In my App, a user submits tasks, and receives an email when they are done.  The tasks can take a few minutes to complete, and an end-user can submit several tasks […]

A Django tutorial on Debian – part 5: implementing the frontend

Django logo (Photo credit: Wikipedia) In Django the essential part of any project consists in defining the data structures. Then, implementing a webpage to a web application consists in nothing more than providing a “view” on these data structures. We will define such view for our web application in the file textModif/ from django.http import […]

A Django tutorial on Debian – part 4: creating the web administration portal

Django logo (Photo credit: Wikipedia) .Django creates automatically a web admin portal for our web app. We just have to edit the file and to uncomment “django.contrib.admin” in the INSTALLED_APPS setting. # Uncomment the next line to enable the admin: ‘django.contrib.admin’, # Uncomment the next line to enable admin documentation: ‘django.contrib.admindocs’,    We need […]