Django Registration redux
So, 4 years ago [already??] I wrote a post about a shortcut to getting "User registration with verification email", using very little code by leveraging the password reset machinery built ...
Find here the febrile ramblings and fever induced musings of someone known as FunkyBob...
So, 4 years ago [already??] I wrote a post about a shortcut to getting "User registration with verification email", using very little code by leveraging the password reset machinery built ...
Those who've been reading my older posts may remember I showed how you could use Enum and IntEnum as a cleaner way to declare const-type values for choices lists ...
So, I saw a post recently about Build an API under 30 lines of code using Flask.
I started wondering what it would take to do the same in Django ...
Whilst it is theoretically possible, I've yet to see a single server-side web framework that is MVC.
"Oh, pshaw!", I hear you say, "But {framework of choice} says it ...
So, we've all needed a choices list in Django at one time or another, right?
And from the docs we see the example code:
YEAR_IN_SCHOOL_CHOICES = (
('FR', 'Freshman'),
('SO', 'Sophomore ...I was recently helping someone who was trying to learn about building web sites, and was trying to avoid learning too many things at once, so opted to avoid JS ...
Serialisers are increasingly important now that most web apps are just APIs for the JavaScript to consume.
Serialisers help to reduce your living code objects into simpler types that can ...
This comes up a lot in #django ... and the solution is [as many are with Django] much simpler than people assume.
Frequently I see people reach for formsets, in the ...
We've all had to write a search form at some point. Beyond simple cases, you reach for the big guns, like haystack, et al.
But what about when it ...
Django provides many decorators for use throughout your project. They can be great time savers, and mastering them can help you DRY your code considerable. However, they often confuse people ...
Every so often (quite frequently, actually) you'll get someone in #django begging for help trying to integrate some app that promises the world ... at least, as far as it ...
In explaining recently to a new team how I wanted development to proceed, I realised it's a lot like a caterpillar. Allow me to explain.
Leading ...
I was recently helping someone with the seemingly easy task of getting a list of related sub-models. This was working with a "tree" structure, where the base model had a ...
Whilst performance tuning a large Django web site recently, I noticed how much pointless whitespace was in our HTML.
"Sure," I hear you say "but you've got gzip enabled ...
Recently I had need to interact with Emulex, and try to get my hands on a developer kit they offered.
I've come to the conclusion they don't want ...
In Django, using the session is just so EASY! There it is on request, behaving like a dict, just being all easy to use.
But sometimes ...
I've been using Django Polymorphic quite a lot lately, and to great effect. However, there are some limitations.
Recently, as I was trying to reduce the number ...
So, you've written your first Django app, and deployed... and suddenly, you're getting errors about your apps not existing.
Some helpful person on #django tells ...
So, your app is growing nicely, but you find yourself repeating the same field definition in a bunch of models. The models themselves have nothing to do with ...
This must be one of the most frequent blog post topics on the internet, but I find myself compelled to contribute to the pool anyway.
I spend a lot ...
As many newcomers to Python discover, a lot of things they've lived with as rules in other languages [such as public/private members] ... and, conversely, some ...
I'm sure most other people know this already, but hey... maybe they don't?
Whilst nginx typically comes with gzip compression enabled by default, it doesn't compress proxied ...
So, Nintendo, whilst I appreciate you running your "network connection test" when I finish changing my settings, I don't appreciate you ABSOLUTELY REFUSING to let me ignore the result ...
I'm sure there's quite a few tutorials on this, and I'm sure what I have to say is nothing new to many people, but here is the ...
Because it wasn't just a matter of "aptitude install..."
aptitude install postgis postgresql-8.4-postgis
createlang plpgsql {yourdb}
psql -f /usr/share/postgresql/8.4/contrib/postgis-1.5 ...Some time ago, I struggled and wrestled with a problem that should have been easy. How, in my custom tag, can I parse the parameters passed to ...
So, recently I had to do an install for a client on GoDaddy...
Hey, don't look at me like that... they had some special deal, and I just didn ...
So, an early post covered how I ran nginx+gevent... but since, I've also dallied with gunicorn.
Here's my runit script:
#!/bin/sh
cd /var/www ...So, I've finally split several of the major components of gnocchi into separate installable apps, and they're available for public consumption.
Really a support package ...
In response to a query about how my memory usage changed, here's some info from my VPSs.
Note, that I've done a few tweaks to try to prevent ...
So, I've recently been playing with Django production schemes other than Apache/mod_wsgi (I'm sorry, Graham! :)
Specifically, I wanted to reduce my memory footprint, as I'm cheap ...
So, I now come to shopping for a code license...
The BSD license give the fewest restrictions, sure, and I'd love to believe people will give back freely.. but ...
So, for those who are interested, this site is running my very own, home rolled CMS called "Gnocchi", built atop Django.
So far it's a loosely coupled suite of ...
What better way to find out what features a blog needs than to have one of my own?
So far... it works.
Soon, I'll add comments so you can ...