Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Released 0.5.1
We just released LFS 0.5.1. This is a yet another bugfix release of the 0.5 branch. Changes Bugfix: added csrf token to password reset forms; issue #170 Bugfix: removed double slash from logo URLs; issue #166 Updated German translations Information You can find more information and help on following locations: Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org and github. Google Group lfsproject on Twitter IRC LFS on EuroPython 2012 We have submitted a talk proposal about LFS, please consider to vote for the talk. We are also sprinting on this year's in Florence. Don't hesitate to join us, if you are around, see: https://ep2012.europython.eu/p3/sprints/ and LFS sprint topics. -
Mercurial Mirror For Django 1.4 branch
Another Django release, another branch, another mercurial mirror… Cloning this one will costs you ~35Mb on your hard disk, compared to 167Mb for the official django mirror. This is updated once a day from the official svn, and it’s gonna stay for a long time : https://bitbucket.org/orzel/django-1.4-production/ For some reason, the 1.4 branch was not […] -
Fab for All
So, you know how you think you're going to get home from the conference and hop on your computer and do all sorts of awesome things like you said you would? And you know how that's complete and utter BS? I came home and collapsed for about a week. Or ... -
Yet another tutorial for building a blog using Python and Django - part 4
Welcome back! In this tutorial we’ll continue extending our Django-powered blogging engine. We’ll add the capability to assign blog posts to categories, and comment on posts. We’ll also generate an RSS feed for our blog posts. Categories are somewhat tougher to implement than most of what we’ve done beforehand. One category can be assigned to many blog posts, and many categories can be assigned to one blog post, so this relationship is described as a “many to many relationship” when drawing up the database structure. What it means is that you can’t directly map categories onto posts and vice versa - you have to create an intermediate database table for the relationship between posts and categories. Here’s what your models.py should look like: from django.db import models from django.contrib.auth.models import User # Create your models here. class Category(models.Model): title = models.CharField(max_length=200) slug = models.SlugField(max_length=40, unique=True) description = models.TextField() class Meta: verbose_name_plural = "Categories" def __unicode__(self): return self.title def get_absolute_url(self): return "/categories/%s/" % self.slug class Post(models.Model): title = models.CharField(max_length=200) pub_date = models.DateTimeField() text = models.TextField() slug = models.SlugField(max_length=40, unique=True) author = models.ForeignKey(User) categories = models.ManyToManyField(Category, blank=True, null=True, through='CategoryToPost') def __unicode__(self): return self.title def get_absolute_url(self): return "/%s/%s/%s/" % (self.pub_date.year, self.pub_date.month, self.slug) class … -
[Django Day] - Aperte le iscrizioni!
[Django Day] - Aperte le iscrizioni! Il gruppo WEBdeBS (Web Developer Bresciani), in collaborazione con l’associazione Python Italia, sta organizzando il primo Django Day a livello nazionale. La conferenza si terrà a Brescia il 21 Aprile 2012. Pubblicata l'agenda definitiva: Sul sito trovate l'agenda definitiva e una presentazione degli illustri speaker che presenteranno durante l'evento. Come vedrete non ci sarà tempo di annoiarsi! Sono aperte le iscrizioni: Sono state ufficialmente aperte le iscrizioni su http://djangoday.eventbrite.com/ Affrettatevi: il 21 arriva presto e i posti sono limitati! Iscriviti Ora! Prenota la tua maglietta: Vuoi esser sicuro di avere la tua maglietta ricordo del Django Day? Non rischiare di rimanere senza! Prenotala subito, usando il form che trovi qui (hai tempo fino a giovedì 12 aprile). Pre-Conf-Dinner! Sarai a Brescia il giorno prima della conferenza? Vuoi partecipare alla pizzata pre-conf? Un'occasione unica di socializzare con gli speaker, gli organizzatori e altre personalità della community django. Se vuoi paretcipare manda una mail a info@djangoday.it Seguici su twitter @djangoday e @webdebresa. Per qualsiasi contatto diretto non esitare a scriverci a info@djangoday.it Vuoi diventare sponsor del Django Day? WEBdeBS ha alle spalle l’organizzazione di alcuni eventi innovativi e di successo quali il “NoSQL Day” e la “Node.js … -
[Django Day] - Aperte le iscrizioni!
[Django Day] - Aperte le iscrizioni! body,.backgroundTable{ background-color:#eeeeee; } #contentTable{ border:0px none #000000; margin-top:10px; } .headerTop{ background-color:#0B2226; border-top:1px none #000000; border-bottom:0px none #000000; text-align:right; padding:0px; } .adminText{ font-size:10px; color:#407F6A; line-height:200%; font-family:Helvetica; text-decoration:none; } .headerBar{ background-color:#1F4C4A; border-top:0px none #333333; border-bottom:0px none #FFFFFF; padding:0px; } .headerBarText{ color:#333333; font-size:30px; font-family:Helvetica; font-weight:normal; text-align:left; } .postcardBarText{ color:#333333; font-size:9px; font-family:Helvetica; font-weight:normal; text-align:center; } .title{ font-size:24px; font-weight:bold; color:#407F6A; font-family:Helvetica; line-height:150%; } .subTitle{ font-size:14px; font-weight:bold; color:#000000; font-style:normal; font-family:Helvetica; } .defaultText{ font-size:12px; color:#333333; line-height:150%; font-family:Helvetica; background-color:#FFFFFF; padding:20px; border:0px none #FFFFFF; } .footerRow{ background-color:#0B2226; border-top:1px solid #000000; padding:20px; } .footerText{ font-size:10px; color:#1F4C4A; line-height:100%; font-family:Helvetica; } a,a:link,a:visited{ color:#17488a; text-decoration:underline; font-weight:normal; } .headerTop a{ color:#407F6A; text-decoration:none; font-weight:normal; } .footerRow a{ color:#407F6A; text-decoration:none; font-weight:normal; } body,.backgroundTable{ background-color:#0B2226; } a,a:link,a:visited{ color:#407F6A; } #templateHeader{ padding:0px; background-color:#304948; } Il gruppo WEBdeBS (Web Developer Bresciani), in collaborazione con l’associazione Python Italia, sta organizzando il primo Django Day a livello nazionale. La conferenza si terrà a Brescia il 21 Aprile 2012. Pubblicata l'agenda definitiva: Sul sito trovate l'agenda definitiva e una presentazione degli illustri speaker che presenteranno durante l'evento. Come vedrete non ci sarà tempo di annoiarsi! Sono aperte le iscrizioni: Sono state ufficialmente aperte le iscrizioni su http://djangoday.eventbrite.com/ Affrettatevi: il 21 arriva presto e i posti sono limitati! … -
Djangocon.eu 2012 and Early Registration
DjangoCon Europe was announced earlier this month and for those that missed it here are a few details. DjangoCon Europe will be held in Zurich Switzerland on June 4-6th with sprints happening on the 7th and 8th. For those who are looking to pick up a ticket the early bird prices end this Saturday, March 31st. Here’s a list of the ticket prices: Early Bird Regular Corporate 599 CHF 629 CHF Individual 429 CHF 459 CHF Student 219 CHF 249 CHF While I’ve never been to DjangoCon Europe last years DjangoCon US was amazing with a lot of great talks and sprints. I think the best part of DjangoCon is meeting the people you interact with on IRC in real life. The discussions and code that comes out of events like this are priceless. Related posts: Ready Set Sprint – DjangoCon 2011 Sprints DjangoCon 2011 – Portland DjangoCon 2011 – Advanced security topics -
Caktus seeking a Django Contractor
I'm excited to announce that Caktus is looking for a developer to join our team on a contract basis! We're looking for a strong software developer who enjoys working on a team and is excited to learn and experiment with new technologies. We do have a preference for local candidates, but will consider all submissions. Initial work will focus on maintaining small Django-powered websites. This position will involve managing existing Django projects, data modeling complex business ideas and deploying Django sites. -
Caktus seeking a Django Contractor
I'm excited to announce that Caktus is looking for a developer to join our team on a contract basis! We're looking for a strong software developer who enjoys working on a team and is excited to learn and experiment with new technologies. We do have a preference for local candidates, but will consider all submissions. ... -
Calendar About Nothing
On October 16th, 2011, which was one hundred and sixty-four days before I published this post, I resolved to get myself onto the Longest Streak list of Calendar About Nothing. Today, with this blog post, I've managed to do just that - get on the Longest Streaks. Calendar About Nothing tracks your open project commits on Github. It tallies your total number of days, records your longest streak, and lets you compare yourself against other committers. The idea comes from an article where Jerry Seinfeld says his secret to productivity is to get something done every day, because if you skip one day then skipping another day is easier. I feel a great sense of accomplishment. The majority of those days I would like to think I did real commits. I pledged to myself to do more than just white space tweaks or write a script to do the work for me. I wanted to accomplish things and make a difference. I started projects, wrote code, cleaned up old code, added tests, documented a lot, and moved my blog here. It's been an awesome time, and keeping my fingers constantly in projects has been eye opening. I feel a great … -
Calendar About Nothing
On October 16th, 2011, which was one hundred and sixty-four days before I published this post, I resolved to get myself onto the Longest Streak list of Calendar About Nothing. Today, with this blog post, I've managed to do just that - get on the Longest Streaks. Calendar About Nothing tracks your open project commits on Github. It tallies your total number of days, records your longest streak, and lets you compare yourself against other committers. The idea comes from an article where Jerry Seinfeld says his secret to productivity is to get something done every day, because if you skip one day then skipping another day is easier. I feel a great sense of accomplishment. The majority of those days I would like to think I did real commits. I pledged to myself to do more than just white space tweaks or write a script to do the work for me. I wanted to accomplish things and make a difference. I started projects, wrote code, cleaned up old code, added tests, documented a lot, and moved my blog here. It's been an awesome time, and keeping my fingers constantly in projects has been eye opening. I feel a great … -
Using django.contrib.markup
Having your users input data and outputting it in ways other than straight plain text can be complicated. However, using different markup languages like markdown can make things easier for you the developer and your users. This video goes over how to use markdown, textile and restructured text built right into Django.Watch Now... -
Using django.contrib.markup
Having your users input data and outputting it in ways other than straight plain text can be complicated. However, using different markup languages like markdown can make things easier for you the developer and your users. This video goes over how to use markdown, textile and restructured text built right into Django.Watch Now... -
Using django.contrib.markup
Having your users input data and outputting it in ways other than straight plain text can be complicated. However, using different markup languages like markdown can make things easier for you the developer and your users. This video goes over how to use markdown, textile and restructured text built right into Django.Watch Now... -
Django HTML5 date input widget with i18n support and jQueryUI DatePicker fallback
Here's my manual for creating a HTML5 form date input with jQueryUI Datepicker and multilingual support. What we need is: 1. django-floppyforms 2. jQueryUI Datepicker + jQuery 3. Modernizr javascript library and of course - Django You need to have some basic python, django & jquery knowledge. Make sure multilingual support is enabled: USE_I18N = True and request context available for -
Gunicorn + Nginx - a much better way to deploy your Django website
I've been a lighttpd + FastCGI django user for a long time. Now there's a better solution -> gunicorn. What is a gunicorn? Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model ported from Ruby's Unicorn project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy. If you -
Scrum and Bugzilla
Not all teams at Mozilla follow the same software development methodology. We’re free to design our own workflows, use whatever tools we want, and just generally work in whatever way is best for us. The one component that almost every project uses is Bugzilla for issue and feature tracking. If you’ve ever worked for, or [...] -
Scrum and Bugzilla
Not all teams at Mozilla follow the same software development methodology. We’re free to design our own workflows, use whatever tools we want, and just generally work in whatever way is best for us. The one component that almost every project uses is Bugzilla for issue and feature tracking. If you’ve ever worked for, or contributed to Mozilla, you have a Bugzilla account. Apart from being a very powerful and configurable tool, this level of participation is a large part of what keeps projects using and wanting to use Bugzilla. Enter Scrum Being software developers, many of us know and like Scrum. I’ve personally found it to be a great method of answering the old questions of “How long will this take?”, and “How much can we get done?”. I won’t go into great detail on how Scrum works here, but the main points are as follows: Work units are scored by the team based on difficulty or expected time consumption. Those work units are included in a “Sprint” usually lasting 2 weeks. Lots of interesting data is generated around team performance. That last point is key. In order to be able to use and appreciate these data, we need … -
DjangoCon Europe 2012
DjangoCon Europe 2012 -
Shortcuts to goodness
Evennia, being a MUD-design system, needs to take some special considerations with its source code - its sole purpose is after all to be read, understood and extended.Python is of course very readable by default and we have worked hard to give extensive comments and documentation. But for a new user looking into the code for the first time, it's still a lot of stuff to take in. Evennia consists of a set of Django-style "applications" interacting and in some cases inheriting from each other so as to avoid code duplication. For a new user to get an overview could therefore mean diving into more layers of code than one would like.I have now gone through the process of making Evennia's API (Application Programming Interface) "flatter". This has meant exposing some of the most commonly used methods and classes at a higher level and fully documenting exactly what they inherit av every layer one looks at. But I have also added a new module ev.py to the root directory. It implements "shortcuts" to all the most commonly used parts of the system, forming a very flat API. This means that what used to be from src.objects.objects import Objectcan now be … -
Release 0.6.11
We just released LFS 0.6.11. This is a yet another bugfix release of the 0.6 branch. Changes Bugfix: added csrf token to password reset forms; issue #170 Bugfix: removed double slash from logo URLs; issue #166 Updated German translations Information You can find more information and help on following locations: Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org and github. Google Group lfsproject on Twitter IRC LFS on EuroPython 2012 We are sprinting on this year's EuroPython in Florence. Don't hesitate to join us, if you are around, see: https://ep2012.europython.eu/p3/sprints/. -
Django's contrib.auth and django-newauth
Django's contrib.auth and django-newauth -
In mathematics, the sieve of Eratosthenes , is a simple, ancient algorithm for finding all prime numbers up to any given limit. It does so by iteratively marking as composite (i.e. not prime) the multiples of each prime, starting with the multiples of 2. You can reed the full description on wikipedia here This is my implememntation def compute(n=100): seq = range(2,n) p = 2
In mathematics, the sieve of Eratosthenes , is a simple, ancient algorithm for finding all prime numbers up to any given limit. It does so by iteratively marking as composite (i.e. not prime) the multiples of each prime, starting with the multiples of 2. You can reed the full description on wikipedia here This is my implememntation def compute(n=100): seq = range(2,n) p = 2 -
Yet another tutorial for building a blog using Python and Django - Part 3
Welcome back! In this installment, we’ll make some changes to our URL structure for blog posts, we’ll add support for multiple authors and static pages, and we’ll add some more templates. First of all, our URL structure. The existing structure works fine, but it would be better if we included a representation of the date of publication. If you’re familiar with WordPress, you’ll know it offers several different URL forms, one of which is the post name alone as we’re using here, and another of which is the year, month and name. We’ll use the latter of these URL schemes with our blogging engine. This seems like a good opportunity to introduce the interactive Python shell that comes with Django. Make sure you have a few dummy posts set up, then in the project directory (DjangoBlog/, not the top-level one but the one inside that), enter the following command: python manage.py shell This will start up an interactive Python shell which you can use to interact with your Post objects. Now, the first step is to import your Post model: >>> from blogengine.models import Post We now have access to our Post objects – let’s take a look at them: … -
Release 0.7.0 beta 5
We just released LFS 0.7.0 beta 5. This is the next beta relase of the 0.7 branch. What's new? Bugfix: added csrf token to password reset forms; issue #170 Bugfix: prevent setting of unsupported locale; #issue 165. Bugfix: removed double slash from logo URLs; issue #166 Updated German translations Information You can find more information and help on following locations: What's new for version 0.7 Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org and github. Google Group lfsproject on Twitter IRC LFS on EuroPython 2012 We are sprinting on this year's EuroPython in Florence. Don't hesitate to join us, if you are around, see: https://ep2012.europython.eu/p3/sprints/.