ImproperlyConfigured: cannot import name RegistrationFormTermsOfService

Django’s django-registration ver­sion 3 intro­duces a new class, RegistrationFormTermsOfService, that replaces the tos field in RegistrationForm.

Our app had done that but django-registration’s ver­sion change slipped past me (so I had django-registration, just the wrong ver­sion), eas­ily fixed with a svn -co http://django-registration.googlecode.com/svn/trunk/registration/ into site-packages.

Server shenanigans

So Ubuntu is utterly refus­ing to install and I’m scared to use Gen­too, which was vaguely the next resort. And I’ve had enough of Cen­tOS’ absurd pack­age man­age­ment sys­tem (really, RPM does make things impos­si­bly dif­fi­cult com­pared to apt-based sys­tems). I’m going to try installing FreeBSD tomor­row and com­pil­ing bits and pieces, because that’s how metro stayed online all those years and whilst I don’t have Dale’s skill, I don’t doubt that the method­ol­ogy was sound. Plus, FreeBSD is one more envi­ron­ment to test this project on — a ded­i­cated server we were vaguely offered a few months back is run­ning NetBSD, so it’d be good to begin scratch­ing together a hand­ful of skills in that area, just in case!

On the plus side, I got all sys­tem con­fig­u­ra­tion stuff (esp. Samba, which can be a lot more dif­fi­cult than per­haps it should be at times) worked out last week (i.e. the sys­tem was nearly per­fect, but for being utterly unable to install even SRPM pack­ages of a more recent Python ver­sion), and Michael went through installing every­thing with me at work… we had to bat­tle Win­dows a lit­tle there, but even it relented. So close. Then I’ll spend heaps of time cut­ting lay­outs to markup and see­ing them work­ing, and non-Youthworks time tak­ing Satchmo for a spin (which will hope­fully lend itself to a cer­tain appli­ca­tion very nicely). The lovely thing about all this is I need Django to work for CYIADA, so I’m sup­ported in get­ting it up and run­ning, but then have enough ‘spare’ hours in the week that I can engage in free­lance projects that ulti­mately mean I know what’s going on with CYIADA and am mildly more com­pe­tent to make minor mod­i­fi­ca­tions as required accordingly.

Some of those projects might even feed back into the project, which would be a bonus — but even if they come to noth­ing, it’s worth­while for skills devel­op­ment alone.

# by Josh on July 29th, 2007 Tags: , , , , , ,
| 1 Comment »

Too much nostalgia for a computer

What fol­lows is writ­ten far less well than it deserves, but — iron­i­cally — I’m drown­ing in other work at present. This needed writ­ing sooner than other things did.

Michael’s pulling the plug on the server that this web­site has run on since 2003.

The ‘server’ has changed dra­mat­i­cally in con­sti­tu­tion since it all began way back when, but… wow. An aston­ish­ingly large part of my teenage years. For the longest time, it seemed as though the Inter­net had alto­gether ceased to exist every­time Dale’s con­nec­tion went out. In the early days, we were all run­ning servers on port 1200 to cir­cum­vent ISP restric­tions on port 80. phpBB was the order of the day, run­ning Apache — on a pirated copy of Win­dows 2000 (those were the days in which “legit­mate soft­ware” con­sti­tuted an oxy­moron). Oper­at­ing on an early ADSL link with 64kbps upload, forum emoti­cons were hosted on free web space pro­vided by iiNet in order to con­serve band­width. You laugh now, but the speed boost was incred­i­ble. Every time iiNet dropped out (to future read­ers: that’s what hap­pens when the inter­net goes out for a cou­ple of hours, none of this occa­sional con­nec­tion time-out rub­bish), an irate explana­tory post from mwd­meyer would emerge and life would con­tinue as nor­mal. Until par­ents dis­cov­ered the server run­ning and turned it off again, which would spark an effort to con­ceal yet another com­puter in a room crowded full of equip­ment. About halfway through 2004, they gave up searching.

These were the days (for me) of NE2000 clones pow­er­ing Smoothwall/m0n0wall routers, recy­cling hard­ware, a sub­scrip­tion to Atomic before all the other kids (I bought more geeky mag­a­zines than any­one I know – I think it was that strange meet­ing place of compters, cre­ativ­ity, and cant that I later became com­fort­able with), when GeForce 2’s and Pen­tium 4’s (the first ones with RDRAM that every­one despised) and DDR-supporting Athlons were still zippy. When frame-based redi­rects passed for domain names — .tk, anyone?

Mostly, it was about the forums… but as for per­sonal pub­lish­ing, this was no small resource. My first dynamic web­site was a blog hosted on that server — I don’t think it yet had a name — we all rolled our own web soft­ware in those days (it’s not that long ago). Some of us still do. The first domain name acquired was Dale’s, in March 2004, co-inciding (more or less) with the forums’ first birth­day. Twelve US dol­lars later (Joker.com’s prices still haven’t changed), we were all still using frame-based redi­rects — sta­tic IPs were the stuff of pipe-dreams, and Dynamic DNS, though around, was out­side of the expe­ri­ence of most of us. Steve ran a notoriously-flaky IIS server with real domains and Exchange, but paid about $150 a month for the priv­i­lege: sta­tic IPs being avail­able only on busi­ness grade inter­net connections.

These are mere details. The forums them­selves con­sti­tute an amaz­ing chron­i­cle of the lives of mwd­meyer, ucosty, Sammy, i_am_a_n00bie, Smile:), smKz, n|cktangents, angelicde­ity, baibai, Sphinx^, lud­vikas, and a hand­ful of oth­ers over a fairly tumul­tuous time. There is so much not recorded explic­itly that sur­rounds the nearly 16,000 mes­sages from these eleven users alone. Some has been sup­pressed, other parts for­got­ten, but all of it inex­tri­ca­bly linked together in the momen­tum of time. There are some things about that time which will never be shared with those who weren’t around.

The forums didn’t sur­vive post-school. This shouldn’t be sur­pris­ing, given the amount of research that says this will be the case for any given rela­tion­ships faced with that man­ner of tran­si­tion, but it was still bizarre wit­ness­ing what would have been sev­eral months of time spent on a sin­gle web­site evap­o­rate into (not much). The server moved from Bal­main to Mar­ian Street, even­tu­ally find­ing its way into a rack there. This is where things get hazy for me. I think the last time I saw Michael might’ve been New Years’ Eve 2005/2006… I feel some sense of guilt about that, but recog­nise mutual busy-ness had a role such that nei­ther of us should be blamed alone. I don’t believe that a blame­less “but things changed” is ever suf­fi­cient when talk­ing about close rela­tion­ships. I’m fairly cer­tain my clos­est friend for about two years at school is some­one that I no longer have any­thing to do with, but can’t explain why. And I know that I can’t in any way blame him, because I’m so guilty of fail­ing to keep work­ing on rela­tion­ships myself.

I sup­pose the point of all this is that the com­puter for­mally known as ‘Metro’, now ‘Loki’ (I don’t know how it got that name — Loki to me is an amaz­ing con­trib­u­tor to Linux-based gam­ing, 2000 – 2002 RIP, but it could just as eas­ily have been named after the Norse trick­ster and Odin’s wily accom­plice!) isn’t just the lat­est in a series of bits of elec­tronic gear that some markup and pix­els have been piped off for a cou­ple of years. This is just one step closer to a com­plete clo­sure of a very large chap­ter of my life… and, yeah, that’s incred­i­bly sad.

Please don’t for a minute con­sider this to be my argu­ing that Loki should stay switched on — it’s about some­thing far greater and more per­sonal than a star­tlingly reli­able FreeBSD web server that just hap­pened to host a web­site for free for a long time.

There aren’t too many peo­ple you can make sit in the back of a car on their 18th birth­day, much less who will laugh along with as it happens.

This isn’t an obit­u­ary, just a poor expres­sion of remorse at the (human) dis­con­nec­tion and ‘drifted’ rela­tion­ships of that era. Michael, once all this stu­pid uni crap gets out of the way (maybe after you move again?), I owe you a fairly large drink.

Thankyou.

Josh vs. the Snake

I’ve been bat­tling a Python for the bet­ter part of a week now. Mostly just in terms of cre­at­ing a nice habi­tat for it to inhabit, so that we can gather all man­ner of use­ful infor­ma­tion about the habits of pythons and inter­ac­tions of humans with things that the python does. I’d been win­ning most fights and attribut­ing the fact they arose at all to my slowly becom­ing famil­iar with the way it worked at all.

I’d been doing some research on this par­tic­u­lar kind of snake for a cou­ple of months before I decided it looked like a GoodThing™ to be wrestling with, so I knew a bit about it rel­a­tive to some­thing else that I knew a bit about (enough to be dan­ger­ous, as is appar­ently the case with 95% of the world’s PHP devel­op­ers). I knew that it was slightly more strongly typed than PHP, but didn’t really think that was some­thing I’d have to know about.

Ba-baauummm.

Error in formatting:__str__ returned non-string (type int)

Oh, come on, just play with the pretty lit­tle num­ber. Grum­ble grumble.

I am in the strangest place right now. It’s 1.30 in the morn­ing on a week­night and I’m writ­ing code, but I’ve spent most of the day going between Pho­to­shop and a cock­tail of a cou­ple of shell ses­sions mixed with php­MyAd­min and a bit of Django doc­u­men­ta­tion. It’s cool being able to write use­ful code again (and, bet­ter still, I am work­ing on code to solve prob­lems I’d be itch­ing to solve for our own min­istry con­text at TACKLES/Matthias but am being paid to do it under the aus­pices of the CYIADA project, which means I can afford to spend more time and do it prop­erly!), but it’s pos­si­bly even cooler to have ready access to great design tools at home since last week — qual­ity tools are an awe­some blessing!

# by Josh on February 13th, 2007 Tags: ,
| No Comments »