Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Lightbox Clones Matrix
As I'm currently validating different lightbox clones I'll advert to the brilliant The Lightbox Clones Matrix of PlanetOzh. It lists nearly all lightbox clones and gives the possibility to filter by features and used javascript framework. File size is displayed, too. The Lightbox Clones Matrix -
Blango now hosted at byNotes repository
Blango is now hosted at the byNotes source code repository and I'll start doing proper releases soon. However, I feel like Blango has all I need and I don't see any new features I could add (you can check the current features at the project page. How would you enhance it? Leave a comment with your cool idea! -
sPaste|source – a secure, open source, pastebin
A few months ago, I found myself with a frequent itch at work. Often I needed to send sensitive information such as access credentials to co-workers and clients. Obviously email isn’t an acceptable way to send this information, but anything much more complex than email overly frustrates who ever I am sending information to. My [...] -
CivicSquared
This is a call to action, folks. Please go vote for CivicSquared to get funding to bring such a great idea to reality. The Knight News Challenge is a contest where $5 million worth of projects will be funded. The projects are those with a focus "on neighborhood and community-focused projects, services, and programs". The CivicSquared project goal is essentially opening up government: "The same prudence, which, in private life, would forbid our paying our money for unexplained projects, forbids it in the disposition of public moneys." -- Thomas Jefferson CivicSquared is social software that helps communities obtain and discuss information about local legislation, tax allocation, and elected officials' voting records. It will be released as an open source Django application. Most citizens do not know how their local taxes are spent. While it is true that citizens can voice opinions at the public meetings where these decisions are made, there are enormous barriers to effective participation. Some of these barriers include advance access to agendas, to information about issues, and to past deliberations on those issues. Even when agendas are posted in advance, there are often questions, and the impact of legislation on a community is often unclear without … -
Exploring Pinax – Part 6
I think this series of articles is starting to pay off… A few people are using my first article to learn how to set up a new Pinax website. And also, I am getting feedback on how to do things better. On the pinax-users list, Bob Haugen pointed out that I was not following the [...] -
CivicSquared
This is a call to action, folks. Please go vote for CivicSquared to get funding to bring such a great idea to reality. The Knight News Challenge is a contest where $5 million worth of projects will be funded. The projects are those with a focus "on neighborhood and community-focused projects, services, and programs". The CivicSquared project goal is essentially opening up government: "The same prudence, which, in private life, would forbid our paying our money for unexplained projects, forbids it in the disposition of public moneys." -- Thomas Jefferson CivicSquared is social software that helps communities obtain and discuss information about local legislation, tax allocation, and elected officials' voting records. It will be released as an open source Django application. Most citizens do not know how their local taxes are spent. While it is true that citizens can voice opinions at the public meetings where these decisions are made, there are enormous barriers to effective participation. Some of these barriers include advance access to agendas, to information about issues, and to past deliberations on those issues. Even when agendas are posted in advance, there are often questions, and the impact of legislation on a community is often unclear without … -
Django questions and answers with a Swedish guy
Manolo Guerrero, that funny talking Mexican dude who happens to be a jQuery god and excellent friend of mine, introduced me to Andreas Krohn, a great pal from Sweden, evil mind behind WebHostNinja, with whom I've developed a nice Google App Engine and Django based Facebook application that will go live soon and I'll discuss later. Andreas is a highly energetic online entrepreneur and developer who's considering Django for his next project and asked me a few questions about it. These were very good questions that many may have asked before and I thought my answers could help others getting used to the Django way of thinking. <!--break--> Andreas: Alexis, I've spent some time on reading up on Django after your recommendation to use it for the new project. There is really a lot of good documentation online, especially djangoproject.com and djangobook.com, (Ventanazul also helps!), but there are a few questions I haven't found answers to and I wonder if you can point me to some site or other resource that can help me there: How do I use different applications in the same project? Some apps can be kept completely separate, but some need to share templates or functionality. … -
Django questions and answers with a Swedish guy
Manolo Guerrero, that funny talking Mexican dude who happens to be a jQuery god and excellent friend of mine, introduced me to Andreas Krohn, a great pal from Sweden, evil mind behind WebHostNinja, with whom I've developed a nice Google App Engine and Django based Facebook application that will go live soon and I'll discuss later. Andreas is a highly energetic online entrepreneur and developer who's considering Django for his next project and asked me a few questions about it. These were very good questions that many may have asked before and I thought my answers could help others getting used to the Django way of thinking. <!--break--> Andreas: Alexis, I've spent some time on reading up on Django after your recommendation to use it for the new project. There is really a lot of good documentation online, especially djangoproject.com and djangobook.com, (Ventanazul also helps!), but there are a few questions I haven't found answers to and I wonder if you can point me to some site or other resource that can help me there: How do I use different applications in the same project? Some apps can be kept completely separate, but some need to share templates or functionality. … -
Django sitemap class for named views
This sitemap class allows you to specify which named views your sitemap should include. Useful for views that don't map to models, or when you don't want to include all your flatpage or direct-to-template URLs. -
Python Onsen Oct. 2008
Python Onsen Oct. 2008 -
Exploring Pinax – Part 5
Proceeding with my project to learn how to develop a Django web application over Pinax, I build two simple forms: one for submitting a new item, and another to show an item. As one reader commented, up to this point I’m not really using any Pinax feature other than the website structure itself, like authentication, templates and menus. I’m starting with a basic Django application. I hope to add soon features like notification, messaging, tagging, gravatar. So, in this sprint I started by defining two URLs: /pastebin/ to submit a new item /pastebin/<uuid>/ to view a submitted item This is what my apps/oxybeles/urls.py file looks like: from django.conf.urls.defaults import * from oxybeles.models import PastedItem info_dict = { 'queryset': PastedItem.objects.all(), 'slug_field': 'uuid', } urlpatterns = patterns('', url(r'^$', 'oxybeles.views.new', name='oxybeles_new'), url(r'^(?P<slug>[-0-9a-f]{36})/$', 'django.views.generic.list_detail.object_detail', info_dict, 'oxybeles_detail'), ) I also updated apps/oxybeles/models.py so it knows how to build a URL for a pasted item: def get_absolute_url(self): return ('oxybeles_detail', (), { 'slug': self.uuid }) get_absolute_url = models.permalink(get_absolute_url) I wrote a simple form class in apps/oxybeles/forms.py: from django import forms from django.utils.translation import ugettext_lazy as _ from oxybeles.models import PastedItem class PastedItemForm(forms.ModelForm): class Meta(): model = PastedItem fields = ('text',) def __init__(self, user = None, *args, **kwargs): … -
Django Site of the Week - Suggestions Wanted
Over at DjangoSites there is a steady flow of new websites, with a handful showing up every single day. Something really cool is that a growing number of these are either commercial websites that are using Django to make money, or they are very serious in terms of code-base, development effort and online exposure. Django is growing up, and is making an impression on the web at large: I've decided to interview the brains behind these websites to find out why they chose Django, how it assisted their development processes, and how it got in their way. Soon I'll be launching Django Site of the Week, and I want your input. So far I've conducted quick interviews with a number of fantastic websites that are powered by Django. Some of these are commercial and charge their users for access, others are large-scale community projects, and others are a hybrid. I'm in the process of editing them into something useful for the community, with plans to launch Django SOTW within the next few weeks. Each week, I aim to publish an interview with the creators of a Django-powered website that stands out from the other sites listed at DjangoSites. I'm looking … -
Django Site of the Week - Suggestions Wanted
Over at DjangoSites there is a steady flow of new websites, with a handful showing up every single day. Something really cool is that a growing number of these are either commercial websites that are using Django to make money, or they are very serious in terms of code-base, development … -
Return of zope?
First off the bat, let me just this post is not meant to add more gasoline to the django vs Plone wars. It is just meant to read as my thoughts surrounding the Experience of using Zope and Plone and trying to use them both in my company.It's no secret now my company is using django for most of our web related projects. Although I use mostly django now, I am like the kid who left his good pal to play at the other side of the fence. I constantly look back and think if we could still fit zope in somewhere in our projects. I think back right to the beginning when I did my first web project. Unlike many I did not start with php. I started with zope because my company at the time wanted to vary our skill base. I had many a sleepness night trying to wrap my head around the zope concepts and paradigms. I got my ass handed back to me many times at the #zope channel by MacYet yet strangely I persisted and slowly I grew to like zope. Then came Plone. In my next company I deployed a Customer Complaints Form … -
Opensourcing byNotes
Since I started writing byNotes I wanted to release all the code under a free software license. After all, would you trust a service you cannot audit? However, since it all started as a small project in my free time (it's now about 30k sloc), the source code was all in one big repository and preparing it for release took some time. First, I needed to evaluate some SCM systems because I wanted to split the code into subprojects and I wasn't sure how good git-submodule was. Finally, after some analysis and some advice from newman on #django-hotclub, I went with git for the SCM and Redmine for bugtracking. Not all code is ready for release yet, but there are some subprojects inmediately available at the byNotes Source Code Repository. Let me introduce them: django-bundles: Provides an easy way to create JS and CSS bundles, with optional support for compression and validation using YUI and rhino. django-geocoding: Uses the Google APIs and django-geonames for geocoding and reverse geocoding. django-geonames: Models for working with the geonames.org database. django-storage: Application for storing user-uploaded files django-dboembed: oEmbed client using the database for caching. wapi and django-oauthsp, have also been released and, the best … -
Exploring Pinax – Part 4
This is the fourth of a series of articles about my experience learning Pinax. In the previous articles I created a new option in the menu for a paste bin application and linked it to a very basic view. My next step is to create a form for pasting text. I plan to do that [...] -
Django.pl otwarte!
W końcu. Po tak długim czasie, strona django.pl doczekała się otwarcia. Strona ta ma skupiać polską społeczność Django, jak również promować tenże framework w naszym kraju. Obecnie na stronie znajduje się blog, część dokumentacji oraz agregator wpisów z polskich blogów o... -
datepicker without admin
Django's admin interface is one of the really nice things about django because of it's functionality and useful tools. Nearly all of the reviews I have read about django have mentioned a good thing or two about the admin interface. There is however sometimes a need to go beyond or implement a lesser version of admin interface. This is where the adventure of living outside the realm of comfort for me begins ... I have been trying to live outside the comfort of the admin interface for django and have found other niceties outside of the admin interface namely generic views, forms and others. I have been using these tools to build a web inventory cum sales application for one of our clients and happy to say it has been fairly successful. Generic views are really powerful and really helps to shave off development time. There are however withdrawal symptoms my code is feeling to the admin interface. I have reimplemented some of the css niceties and javascript in my code. One of the one I am looking for is to re implement the cool datepicker admin has every time it encounters a DateTime or a Date Field. I have … -
Exploring Pinax – Part 3
This is the third of a series of articles about my experience with the Pinax project. I am building a sample paste bin application named Oxybeles, of all things. On the previous articles I installed Pinax and created a tab in the main menu for my new app. Now I want to create a basic [...] -
How to create a view to add an object...
How to create a view to add an object with a PointFieldAll the files described below are part of a django app called dj_cartographe. The objective of this short wiki page is to help you to create a web page where you will be able to add object RunningWaterOutage.Let us take the following models that represents a simplified version of what could be a RunningWaterOutage :# dj_cartographe/models.pyfrom django.contrib.gis.db import modelsclass RunningWaterOutage(models.Model): """A spatial model for interesting locations """ name = models.CharField(max_length=50, ) description = models.TextField() creation_date = models.DateTimeField(auto_now_add=True) start_date = models.DateTimeField() end_date = models.DateTimeField() geometry = models.PointField(srid=4326) #EPSG:4236 is the spatial reference for our data objects = models.GeoManager() # so we can use spatial queryset methods def __unicode__(self): return self.nameIn order to use this model in django admin you should configure it as follow :# dj_cartographe/admins.pyfrom django.contrib.gis import adminfrom django.contrib.gis.maps.google import GoogleMapfrom dj_cartographe.models import *class RunningWaterOutageAdminOptions(admin.OSMGeoAdmin): list_display = ('name', 'description', 'start_date', 'end_date') list_filter = ('name', 'description', 'start_date', 'end_date') fieldsets = ( ('Location Attributes', {'fields': (('name', 'description', 'start_date', 'end_date',))}), ('Editable Map View', {'fields': ('geometry',)}), ) # Default GeoDjango OpenLayers map options scrollable = False map_width = 700 map_height = 325 GMAP = GoogleMap(key='<YOUR GOOGLE KEY THERE>') # Can also set GOOGLE_MAPS_API_KEY … -
How to use a public IP address with Google App Engine development server
And just when I thought that setting up Apache, mod_python and Lighty with Django was cool, and I haven't even started playing with mod_wsgi or nginx (the powerful Russian HTTP server, pronounced engine X) came the requirement to move the Django application I'm developing for Facebook to Google App Engine, the latest, and it seems the coolest, player in the cloud computing arena. While my code was running on a pure Django environment I setup the callback url in Facebook's developer application to point to my local server, some simple port forwarding in my router did the trick. Now I wanted to do the same using Google App Engine's development server. <!--break--> After having one of my internal IP addresses accesible from the outside Facebook could call my application running at home. I noticed then that Django's development server made Facebook time out and started using my Apache/Lighty setup for development, you may need to setup your max requests per child setting on Apache to do that. Anyway, I wanted to do the same when I started porting my Django application to Google App Engine (take a look at the App Engine helper for Django) and knew I had to … -
How to use a public IP address with Google App Engine development server
And just when I thought that setting up Apache, mod_python and Lighty with Django was cool, and I haven't even started playing with mod_wsgi or nginx (the powerful Russian HTTP server, pronounced engine X) came the requirement to move the Django application I'm developing for Facebook to Google App Engine, the latest, and it seems the coolest, player in the cloud computing arena. While my code was running on a pure Django environment I setup the callback url in Facebook's developer application to point to my local server, some simple port forwarding in my router did the trick. Now I wanted to do the same using Google App Engine's development server. <!--break--> After having one of my internal IP addresses accesible from the outside Facebook could call my application running at home. I noticed then that Django's development server made Facebook time out and started using my Apache/Lighty setup for development, you may need to setup your max requests per child setting on Apache to do that. Anyway, I wanted to do the same when I started porting my Django application to Google App Engine (take a look at the App Engine helper for Django) and knew I had to … -
Ogranicznie liczby elementów w selekcie
Formularze w Django to potężne narzędzie. Automatyzuje nam wiele ... i jeszcze wiecej. Początki posługiwania się nimi są trudne. Czasem więcej czasu zajmuje nauczenie się jak dana rzecz działa, niż ręczne napisanie tego po swojemu. Ale mimo wszystko warto poświęcić trochę czasu na... -
Django WSGI handler and SSL proxies
When serving both HTTP and HTTPS in my preferred deployment setup — nginx in front of Apache with mod_wsgi running Django — I had to figure out how to let Django know whether a request was secure or not. Here's how I did it. -
Exploring Pinax – Part 2
This is the second of a series of articles where I register what I learn about developing Web applications with Pinax. In the first part I got the sample website running. Now I’m going to add a section for a new application. I will develop a simple paste bin where people will be able to [...]