Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Djangosites Open Sourced
I've been promising it for years, but never gotten around to it. Finally, I've pushed the source code for djangosites.org up to Github. -
Djangosites Open Sourced
Back in 2008 I started djangosites.org as a listing of websites powered by Django. Prior to that, we relied on a wiki page to see who was using Django, so an image-based website felt like a big improvement. Since day one I've promised to release the source code that I use for the site. It's relatively simple, so I never stressed much about making it a high priority - but I continue to be asked and politely berated for not getting it published. Today that's changed. I think it's too late for me to say I've come good on my promise, but the Djangosites source code is now available on GitHub. The README has more details, but in short this is a dump of the code currently running the site. I'll continue to use this repository as changes are made to the live site, however I'm not actively working on djangosites at this point in time (other than reviewing & approving submissions) There's a few pieces of this that might be useful for people new to Django, but otherwise this is really a collection of generic views. The useful bits might be: Full-text searching (and helper SQL) with PostgreSQL Generating … -
Djangosites Open Sourced
I've been promising it for years, but never gotten around to it. Finally, I've pushed the source code for djangosites.org up to Github. -
Djangosites Open Sourced
I've been promising it for years, but never gotten around to it. Finally, I've pushed the source code for djangosites.org up to Github. -
Djangosites Open Sourced
Back in 2008 I started djangosites.org as a listing of websites powered by Django. Prior to that, we relied on a wiki page to see who was using Django, so an image-based website felt like a big improvement. Since day one I've promised to release the source code that … -
Python Indie Bundle Cyber Monday Sale
I've joined forces with Matt Harrison and Audrey Roy to put together the first ever Python Indie Bundle sale! This bundle includes the following e-book bundles (PDF, Kindle, ePub) for just $24.95: Treading on Python Volume 1: Foundations Treading on Python Volume 2: Intermediate Two Scoops of Django: Best Practices for Django 1.5 Bought individually, these three books would cost you $36.95, but in honor of Cyber Monday we've chopped off about 33%, bringing you the awesome price of just $24.95! We're just indie authors who work without a publisher. We pay all the bills, do all the marketing, and make it or break it on our own. It's a lot of work, but we think the total control we have over our work speaks volumes for the quality of result. If you've been to my blog before, you probably already know about Two Scoops of Django that I co-wrote with Audrey Roy. However, you may not know about Matt Harrison's books, so I'm going to share some thoughts: Matt has a talent for explaining things related to Python. If you are still new to Python, his books will amplify your skills and get you to the next level. If … -
Python Indie Bundle Cyber Monday Sale
I've joined forces with Matt Harrison and Audrey Roy to put together the first ever Python Indie Bundle sale! This bundle includes the following e-book bundles (PDF, Kindle, ePub) for just $24.95: Treading on Python Volume 1: Foundations Treading on Python Volume 2: Intermediate Two Scoops of Django: Best Practices for Django 1.5 Bought individually, these three books would cost you $36.95, but in honor of Cyber Monday we've chopped off about 33%, bringing you the awesome price of just $24.95! We're just indie authors who work without a publisher. We pay all the bills, do all the marketing, and make it or break it on our own. It's a lot of work, but we think the total control we have over our work speaks volumes for the quality of result. If you've been to my blog before, you probably already know about Two Scoops of Django that I co-wrote with Audrey Roy. However, you may not know about Matt Harrison's books, so I'm going to share some thoughts: Matt has a talent for explaining things related to Python. If you are still new to Python, his books will amplify your skills and get you to the next level. If … -
Bagels
It’s impossible to get good bagels further west than about New Jersey, so I make my own. My recipe’s adapted from Baking Illustrated, Alton Brown’s pretzel recipe (yes pretzels, see below), and some techniques I learned at Wheatfields. There’s a few keys to making everything turn out right: Use the highest protein flour you can find. King Arthur Bread Flour is the best commonly available one you can find (at about 12-13% protein). -
To my friends in the Node community
Dear friends in the Node community, I’m excited and inspired by the work that you’re doing. Being new is exciting: you get to re-invent the world, and shape it to suit your purposes. You’re not bound by the mistakes other environments have accrued over the years. This has paid huge dividends. You’ve come up with a way to make asynchronous programming accessible to a much wider pool of programmers. You’re creating a set of tools that put developer experience first, proving that developer tools don’t have to have terrible user interfaces. -
Out-of-band mergings
As of today the development repository of Evennia, which has been brewing for a few months now, merged into the main repository. This update grew from one experimental feature to a relatively big update in the end. Together with the "many-character-per-player" feature released earlier, this update covers all the stuff I talked about in my Behind the Scenes blog post. Evennia's webserver was moved from Portal to Server. This moves all database-modifying operations into the same process and neatly avoids race conditions when modifying a game world from various interfaces. The OOB (Out Of Band) handler was implemented. This goes together with a protocol for telnet sub-negotiations according to the MSDP specification. The handler allows on-demand reporting whenever database fields update. It also offers regular polling of properties if needed. A user can customize which oob commands are available to the client and write whatever handlers are needed for their particular game. In the future we'll also add support for GMCP, but the lack of a central, official specification is off-putting (if there is a central document besides accounts of how individual games chose to implement GMCP, please let me know). For our own included web client, we'll likely just use … -
Be More Productive with django_extensions
Django provides a lot of really useful things by default, but there are a few things we do over and over again. Learn how django extensions help solve some of these, and enhances your ability to do others with this intro to django-extensions. We will show a few of the many many useful things it can do.Watch Now... -
Welcome to the world, Wish List Granted
I built something. It's called Wish List Granted. It's a mash-up using Amazon.com's Wish List functionality. What you do is you hook up your Amazon wish list onto wishlistgranted.com and pick one item. Then you share that page with friends and familiy and they can then contribute a small amount each. When the full amount is reached, Wish List Granted will purchase the item and send it to you. The Rules page has more details if you're interested. The problem it tries to solve is that you have friends would want something and even if it's a good friend you might be hesitant to spend $50 on a gift to them. I'm sure you can afford it but if you have many friends it gets unpractical. However, spending $5 is another matter. Hopefully Wish List Granted solves that problem. Wish List Granted started as one of those insomnia late-night project. I first wrote a scraper using pyQuery then a couple of Django models and views and then tied it up by integrating Balanced Payments. It was actually working on the first night. Flawed but working start to finish. When it all started, I used Persona to require people to authenticate … -
New Apps & Migrations
This week, it's the exciting story of one man's battle against his idea of automatically writing settings files. One of the early questions I ran into when designing migrations was how to make the onboarding experience for users as easy as possible. All new apps that you made in 1.7 should come with migrations from the start, of course, but we didn't want to automatically convert apps that didn't have migrations - those could be third-party apps or, as I found to my amusement during initial testing, django.contrib apps. Several potential solutions were thought of and discussed between some of the core team and some South users I talk to regularly. The first thought was a new setting - perhaps MIGRATED_APPS - that defined which apps had migrations, but this was a bad idea and required people to opt-in - a definite no-no. The second idea was to automatically exclude django.contrib apps and then have a blacklist setting - UNMIGRATED_APPS. As we're trying not to introduce more settings in Django, this wasn't looking great from the start, and this still needed makemigrations to prompt you for every new app and ask if you wanted migrations - asking every time if … -
Hiring a Python web application developer
My client is looking to hire a new Python developer, initially for an 8 month contract. It's a home working position, we communicate mostly via Skype / email / gtalk etc. Although we do meet up in meatspace from time to time, so ideally a candidate would be in the London / Oxford area. You will be working with your truly. The projects I've been working on are in the server side of web-enabled devices. The web interface is written in Django, so you'll need the usual battery of front-end technologies; HTML, CSS, Javascript etc. We have a Twistd server which communicates with devices in the field, that my client produces. In the middle we have dynamic user interface generation from XML. So there is some genuinely interesting technology there, and more such projects planned. We need someone who is a good problem solver with a general interest in web technologies. There's also the occasionally need work with data at the bits and bytes level, so a working knowledge of C that would be a plus. See the Careers page on wildfoundry.com for the full details. -
Hiring a Python web application developer
My client is looking to hire a new Python developer, initially for an 8 month contract. It's a home working position, we communicate mostly via Skype / email / gtalk etc. Although we do meet up in meatspace from time to time, so ideally a candidate would be in the London / Oxford area. You will be working with your truly. The projects I've been working on are in the server side of web-enabled devices. The web interface is written in Django, so you'll need the usual battery of front-end technologies; HTML, CSS, Javascript etc. We have a Twistd server which communicates with devices in the field, that my client produces. In the middle we have dynamic user interface generation from XML. So there is some genuinely interesting technology there, and more such projects planned. We need someone who is a good problem solver with a general interest in web technologies. There's also the occasionally need work with data at the bits and bytes level, so a working knowledge of C that would be a plus. See the Careers page on wildfoundry.com for the full details. -
Hiring a Python web application developer
My client is looking to hire a new Python developer, initially for an 8 month contract. It's a home working position, we communicate mostly via Skype / email / gtalk etc. Although we do meet up in meatspace from time to time, so ideally a candidate would be in the London / Oxford area. You will be working with your truly. The projects I've been working on are in the server side of web-enabled devices. The web interface is written in Django, so you'll need the usual battery of front-end technologies; HTML, CSS, Javascript etc. We have a Twistd server which communicates with devices in the field, that my client produces. In the middle we have dynamic user interface generation from XML. So there is some genuinely interesting technology there, and more such projects planned. We need someone who is a good problem solver with a general interest in web technologies. There's also the occasionally need work with data at the bits and bytes level, so a working knowledge of C that would be a plus. See the Careers page on wildfoundry.com for the full details. -
Finding the first bit set with Python
Here's a Python gotcha that I spent some time tracking down. I'm writing it up in the spirit of saving developers a debugging headache in the future. I had an integer with a single bit set, and I wanted to find the index of that bit. For example, 4 in binary is 00000100. The 1 is at the third position from the right, which should give an index of 2 – since the first position is 0. You can do this in two ways; either check each bit in turn until you find a 1, or you can use math as a shortcut. I chose the math solution: >>> import math >>> myint = 4 >>> int(math.log(myint, 2)) 2 Simple right? Finally staying awake in high school maths paid off. So simple that it was the last bit of code I suspected to be broken (spoiler: it was). This is Python 2.7 which still has two types of integer; type int and arbitrary long integer type long. I was testing with ints because that's what you get when you type 4. However the numbers I was getting out of the Django db where longs. Look what happens with the above … -
Finding the first bit set with Python
Here's a Python gotcha that I spent some time tracking down. I'm writing it up in the spirit of saving developers a debugging headache in the future. I had an integer with a single bit set, and I wanted to find the index of that bit. For example, 4 in binary is 00000100. The 1 is at the third position from the right, which should give an index of 2 – since the first position is 0. You can do this in two ways; either check each bit in turn until you find a 1, or you can use math as a shortcut. I chose the math solution: >>> import math >>> myint = 4 >>> int(math.log(myint, 2)) 2 Simple right? Finally staying awake in high school maths paid off. So simple that it was the last bit of code I suspected to be broken (spoiler: it was). This is Python 2.7 which still has two types of integer; type int and arbitrary long integer type long. I was testing with ints because that's what you get when you type 4. However the numbers I was getting out of the Django db where longs. Look what happens with the above … -
Finding the first bit set with Python
Here's a Python gotcha that I spent some time tracking down. I'm writing it up in the spirit of saving developers a debugging headache in the future. I had an integer with a single bit set, and I wanted to find the index of that bit. For example, 4 in binary is 00000100. The 1 is at the third position from the right, which should give an index of 2 – since the first position is 0. You can do this in two ways; either check each bit in turn until you find a 1, or you can use math as a shortcut. I chose the math solution: >>> import math >>> myint = 4 >>> int(math.log(myint, 2)) 2 Simple right? Finally staying awake in high school maths paid off. So simple that it was the last bit of code I suspected to be broken (spoiler: it was). This is Python 2.7 which still has two types of integer; type int and arbitrary long integer type long. I was testing with ints because that's what you get when you type 4. However the numbers I was getting out of the Django db where longs. Look what happens with the above … -
Long-term reliability test with Django
Steel rusts. Food rots. And WordPress? Well, really bad things tend to happen when it's left unattended. But this website, built by hand using Django, has held up remarkably well over time. A little history: I built this site a few years ago when Lindsay and I lived in Knoxville, TN. I was working for the E.W. Scripps company at the time, and had a full-on love affair with Django (I still do). I started working at Scripps at the beginning of the first enterprise rollout of a Django content management system (customized version of Ellington. I was not new to Django then; I began using the framework toward the end of our first stay in Roanoke. This blog was both a way for me to keep my writing chops pliable, but also to put into practice the code used by Scripps developers. It helped me understand what they were building, and apply that knowledge to my role as project manager. As new versions of Django came out, so did this blog. I stopped updating around version 1.2.3 however. But unlike a WordPress install, this app has continued to hum along dutifully. This isn't to say I recommend building apps … -
Long-term reliability test with Django
Steel rusts. Food rots. And WordPress? Well, really bad things tend to happen when it's left unattended. But this website, built by hand using Django, has held up remarkably well over time. A little history: I built this site a few years ago when Lindsay and I lived in Knoxville, TN. I was working for the E.W. Scripps company at the time, and had a full-on love affair with Django (I still do). I started working at Scripps at the beginning of the first enterprise rollout of a Django content management system (customized version of Ellington. I was not new to Django then; I began using the framework toward the end of our first stay in Roanoke. This blog was both a way for me to keep my writing chops pliable, but also to put into practice the code used by Scripps developers. It helped me understand what they were building, and apply that knowledge to my role as project manager. As new versions of Django came out, so did this blog. I stopped updating around version 1.2.3 however. But unlike a WordPress install, this app has continued to hum along dutifully. This isn't to say I recommend building apps … -
Happy Holidays from Daniel and Audrey
The Python community has been like our family. We met through the community, and many of our dearest friendships started because of the community. This year has been a very special year for us. We wrote Two Scoops of Django, and we started a little publishing company called Two Scoops Press. We traveled throughout Spain, Poland, Italy, and Croatia, teaching and helping local user groups. Daniel gave keynote speeches at DjangoCon Europe and EuroPython. We did a few book signings and got the chance to meet many of our book's readers. Now we are back in Southern California, settling into our new home together and getting ready to release the next edition of our first book. We couldn't have gotten to this point without you, our friends and readers. It is because of your feedback that we've been able to improve the next edition. We've been hard at work expanding chapters and sections that you wanted to hear more about. We've been making little changes everywhere to improve clarity and help you see what's in our heads. We've been scrubbing those typos. Audrey has been drinking lots of coffee and drawing more silly Django ice cream metaphor cartoons. Daniel has … -
Happy Holidays from Daniel and Audrey
The Python community has been like our family. We met through the community, and many of our dearest friendships started because of the community. This year has been a very special year for us. We wrote Two Scoops of Django, and we started a little publishing company called Two Scoops Press. We traveled throughout Spain, Poland, Italy, and Croatia, teaching and helping local user groups. Daniel gave keynote speeches at DjangoCon Europe and EuroPython. We did a few book signings and got the chance to meet many of our book's readers. Now we are back in Southern California, settling into our new home together and getting ready to release the next edition of our first book. We couldn't have gotten to this point without you, our friends and readers. It is because of your feedback that we've been able to improve the next edition. We've been hard at work expanding chapters and sections that you wanted to hear more about. We've been making little changes everywhere to improve clarity and help you see what's in our heads. We've been scrubbing those typos. Audrey has been drinking lots of coffee and drawing more silly Django ice cream metaphor cartoons. Daniel has … -
Happy Holidays from Daniel and Audrey
The Python community has been like our family. We met through the community, and many of our dearest friendships started because of the community. This year has been a very special year for us. We wrote Two Scoops of Django, and we started a little publishing company called Two Scoops Press. We traveled throughout Spain, Poland, Italy, and Croatia, teaching and helping local user groups. Daniel gave keynote speeches at DjangoCon Europe and EuroPython. We did a few book signings and got the chance to meet many of our book's readers. Now we are back in Southern California, settling into our new home together and getting ready to release the next edition of our first book. We couldn't have gotten to this point without you, our friends and readers. It is because of your feedback that we've been able to improve the next edition. We've been hard at work expanding chapters and sections that you wanted to hear more about. We've been making little changes everywhere to improve clarity and help you see what's in our heads. We've been scrubbing those typos. Audrey has been drinking lots of coffee and drawing more silly Django ice cream metaphor cartoons. Daniel has … -
Wordpress NextGEN gallery and "Not a valid template"
If you encounter the output [Not a valid template] on your gallery pages after you updated to NextGEN gallery 2.x and you probably moved your blog location on the server, then you should check the plugin settings. In my case, under NextGEN Basic Thumbnails the Template value pointed to a wrong path. After I fixed that, everything worked again: