Re: Don't Repeat Yourself!

2007-08-11 Thread sago
o companies who are very interested in putting feeds on everything and even loading and aggregating feeds. Ian. On Aug 11, 5:29 am, sago <[EMAIL PROTECTED]> wrote: > I was delivering some Django training this week, and it occurred to me > there is a huge DRY-violation in the Django fe

Don't Repeat Yourself!

2007-08-10 Thread sago
I was delivering some Django training this week, and it occurred to me there is a huge DRY-violation in the Django feed system. Django has a comprehensive and (in my opinion) superb URL routing mechanism. You route urls to views. In many cases you can route a number of urls to the same view, addi

Generating Xml in Django

2007-06-29 Thread sago
If you're using Django to generate XML that isn't RSS, Sitemaps or an external SOAP library, my Xml generation module at http://djangonflex.wordpress.com/2007/06/29/xml-generation-module/ might be useful. I'm using Django to talk to Flex, so need to generate custom XML dialects all the time. Yo

Django Training

2006-11-14 Thread sago
I just wanted to announce the first open commercial Django Training program. As well as being a great program, I hope it will be another reinforcement in the message that Django is a deployable commercial system for corporate web application development. I hope that having a solid and skills-base

Re: Screencast Moved

2006-11-13 Thread sago
I've got a second screencast almost ready. But I've recently been busy launching the new training company, so things are eating my time. So I can't guarantee a when yet. Ian. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Screencast Moved

2006-11-06 Thread sago
I've moved my introductory screencast to another server. Its now at: http://www2.lamptraining.com/screencast/1/ In case you were looking. Ian. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: django for non-web apps?

2006-11-01 Thread sago
I've used Django as a web-service server. Still using HTTP, but with XML (sometime SOAP, but mainly custom dialects). I've then built other front-ends onto this using GUI technologies, rather than web-based. Its something I fell into from neccesity, but has been a practical and efficient way to

Re: Saving arbitrary data without database

2006-10-23 Thread sago
I'm assuming you mean one single value, not one value per entry. There are a whole bunch of ways you can store an item of data in python. There's the pickle module, various flat-file database wrappers, just write it to a file, etc. But IMHO you are _much_ better off writing it to the database, e

Re: getting max and min

2006-10-19 Thread sago
zenx wrote: > hi, > > just tried this but doesn't work: > > q = ArtistaTag.objects.all() > nums=[''] > for tag in q: > num = tag.artista_set.count() > nums.append(num) > > max_art = max(nums) > min_art = min(nums) > > i get a TypeError unsupported operand type(s) for -: 's

Re: java applet won't load

2006-10-18 Thread sago
This is most likely to be a problem finding the media files. Are you serving the .class files with django's built-in webserver? Have you got other media files (like images) serving correctly? Are the paths you are registering okay? Unless you're passing in something with django-template-like syn

Re: What must I do to get this to work?

2006-10-18 Thread sago
You can certainly show a java canvas on a web-page. You create a java applet with the canvas in it, and use the regular OBJECT or APPLET tags to create it. You can do something similar in Python using Jython to compile the applet from python code into a java .class file. You can't do it directly

Re: Dojo vs Mochikit for Django dev?

2006-10-18 Thread sago
> On the other hand, its 'effects' module is entirely a red-herring, > providing only 'curved borders'. Its called 'visual', and it now provides some simple animations too - sorry, I haven't checked it out for a while. --~--~-~--~~~---~--~~ You received this messa

Re: Dojo vs Mochikit for Django dev?

2006-10-18 Thread sago
I haven't used this shell. I guess because I've been mostly using MochiKit anyways, I didn't go hunting for an alternative interpreter. Just trying it, the shell 1.4 gives me an object error javascript alert (and no evaluation) on everything I type in IE6.1 (fine on Firefox). I'd say you are mis

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread sago
I've used both MochiKit and Scriptaculous in Django production projects. I've only used Dojo in test projects. I've never used YUI. MochiKit is (pretty uniquely) focussed on providing programming features, rather than wiz-bang Web2.0 functionality. It does things like add easy handling of deferr

New Django Screencast

2006-10-17 Thread sago
At http://www.lamptraining.com/screencast/1/ Have fun Ian. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe f

Re: Paginator Overhall

2006-10-13 Thread sago
Adrian Holovaty wrote: > I love the idea of a Paginator class that knows what page it's on. Maybe a solution is to get a 'page' object back from the original paginator. So you can still call its methods to get individual morsels of data, or call a get_page_info method to get a PageInfo object bac

Re: Paginator Overhall

2006-10-13 Thread sago
Malcom, Yes, I agree that it is better to have a generally useful framework, rather than an all singing and dancing solution to everybody's solution but yours. I also agree with a lot of your post. > Pagination is something that can and is presented in many > different ways. This is a subtext o

Paginator Overhall

2006-10-12 Thread sago
All, I filed a bug in paginator last week. SmileyChris pointed out that his extra-features patch would solve the bug, and add orphan control (so you don't get one post on its own page at the end). I've got a pimped-up version of paginator too, and judging from searches, it seems like lots of fol

Re: FilePathField displaying file in template

2006-09-24 Thread sago
James, Presumably your FilePathField points to something that is accessible via a URL. Unfortunately, unlike the other fields, FilePathField doesn't pretend to know how to map the path on your machine to the URL, so you'll have to do it manually. Something like: class MyModel(models.Model): f

Django Training

2006-09-23 Thread sago
Hi all, I'm a pathological early adopter, long-time developer, consultant and occasional technology trainer. And a Django user since the start of September last year. I recently did a 'what is Django' taster for the development team at one of my clients, because I'd built a very neat asset manag