Re: Sydney - Django Contracts - Mobile/Web Dev

2008-05-29 Thread Ben Ford
Hi Glen, Have you tried posting this on djangogigs.com..? You might get a wider readership there :-) Ben 2008/5/29 Wunderkind <[EMAIL PROTECTED]>: > > Hi, > > A client of mine located in North Sydney is looking for a couple of > contractors who have experience develop

Re: Django in a HA cluster web services application with some near real time elements

2008-05-21 Thread Ben Ford
code uses threadlocal in some places - I'm not sure how similar threadlocal is to 'threading' (if anyone can enlighten me I'd appreciate it!), but I think it might be causing a few of our problems. Cheers, Ben -- Regards, Ben Ford [EMAIL PROTECTED] +447

Re: can't compare datetime.datetime to datetime.date

2008-05-20 Thread Ben Firshman
The date() method of the datetime object is what you probably want. See the documentation: http://docs.python.org/lib/datetime-datetime.html Ben On 20 May 2008, at 09:56, vance ma wrote: > In django ;How to compare datetime.datetime and datetime.d

Re: This field is required. NO!

2008-05-16 Thread Ben Ford
Andre, You also need blank=True here: pn = models.CharField('Publication number', max_length=20, null=True) That will fix you :-) Ben Andre Meyer wrote: > hi all > > now, this is driving me crazy. this problem persists even after > switching from 0.96.1 to the newforms-

RE: Multiplechoicefield 1 value

2008-05-09 Thread Ben Eliott
On Fri, 2008-05-09 at 15:26 +0100, Ben Eliott wrote: > Hi, Can anyone please advise on why a multiplechoicefield might be > returning only 1 value (the last value)? Or maybe i'm not accessing it > correctly...? Many Thanks! > Ben How are you accessing the value? Are you using requ

Multiplechoicefield 1 value

2008-05-09 Thread Ben Eliott
Hi, Can anyone please advise on why a multiplechoicefield might be returning only 1 value (the last value)? Or maybe i'm not accessing it correctly...? Many Thanks! Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Reusable Web Controls

2008-05-06 Thread Ben Firshman
I like to use the {% include %} tag along with {% with %} around the include tag to pass variables to the template. I'm not sure if this is the best way to do it, but it works well for me! Ben On 6 May 2008, at 19:24, [EMAIL PROTECTED] wrote: > > There is the includes tag, or you ca

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
On 5 May 2008, at 14:52, Ben Eliott wrote: > > Hi kg, > > Class HIP has a 1-to-many with Property (many HIPs / 1 Property) . The > offending field is HIP.hip > > #CODE > class Property(models.Model): >"""Model of a property""" > >

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi Kg, You're beautiful, you know that don't you? It worked a treat. And just in time moments before the Chelsea game starts too. When I said all slash permutations tried, I did of course mean, all but that one Thanks a million. Ben -Original Message- From: django-users

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
ld upload_tol On 05-May-08, at 6:46 PM, Ben Eliott wrote: > Thanks for for your swift attention. > It reloads the same form with the message at the top: 'Please correct > the error below.' (although it doesn't actually show any error below). please paste your model here -- regard

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi kg, Thanks for for your swift attention. It reloads the same form with the message at the top: 'Please correct the error below.' (although it doesn't actually show any error below). Best, Ben -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf

Filefield upload_tol

2008-05-05 Thread Ben Eliott
aths -- but it only likes it when upload_to gets given the absolute path. Any suggestions or even hints of ideas will be most welcome - it's bound to be some small, simple thing! Thank you. Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Production vs Development Environments

2008-05-03 Thread Ben Ford
have a testing setup that mirrors our live setup (which consists of several servers, postgres failover and some other bits) however it would be too expensive! Ben On 03/05/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > A post from another thread got me wondering, how m

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
Karen wrote: > Where in your apache config is the relative to your > Django block?  It sounds like you need to reverse > the order, so that the admin_media location over-rides the Django one, not > vice-versa. Thats it! Your'e a star! I've put the admin_media stuff below the Django block

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
Karen wrote: > You did restart apache after making the change? Yes > the error log that will show the cause of the 404 (assuming the url is > being > handled by apache itself), since it is where you will see the actual file > name apache is trying to access. If you see nothing about the admin

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
Karen wrote: > If you include the trailing slash on the first part (url-path), then you > need to include it also on the second part. Thanks for your reply. I now have the trailing slash in both places, but still a 404 >> > > Check the error log as well, this will print out the actual file

Re: 404 on admin media files and mod_python

2008-04-25 Thread Ben
> Darryl wrote: > You don't need admin_media in the urls.py file as it shouldn't make it > as far as Django. Thanks for your reply. I agree, but desperation made me doubt what I knew > Unless you've copied the media files from the Django source into your > web root, it needs to point at the

404 on admin media files and mod_python

2008-04-25 Thread Ben
Hello The issue of how to serve the admin media files using mod_python has been dealt with several times before, and AFAICS I've followed the advice given (and the documentation), but I still get a 404 on the admin media files. I've already removed "Apache expert" from my CV. Any suggestion

Re: Add RDF store as database

2008-04-03 Thread Ben Ford
that yould make a non-relational db backend a bit easier. Cheers, Ben On 03/04/2008, Karen Tracey <[EMAIL PROTECTED]> wrote: > > On Thu, Apr 3, 2008 at 9:00 AM, Roland Hedberg <[EMAIL PROTECTED]> > wrote: > > > > > Hi! > > > > I'd like to add the possibil

Re: Django Admin WAP

2008-03-31 Thread Ben Ford
That's the one!! :-) Ben On 31/03/2008, Brot <[EMAIL PROTECTED]> wrote: > > > this could be useful: > http://code.google.com/p/django-mobileadmin/ > > Bernd > > > On 31 Mrz., 10:40, "Ben Ford" <[EMAIL PROTECTED]> wrote: > > I'm pretty sur

Re: Django Admin WAP

2008-03-31 Thread Ben Ford
I'm pretty sure that someone's put together a django admin type thing for smaller form factor devices... I can't remember where I saw it though, sorry! Ben On 31/03/2008, David Marquis <[EMAIL PROTECTED]> wrote: > > > Using the Django admin on a WAP browser would involve seri

Ticket 6682: "manage.py shell" startup

2008-03-24 Thread Ben Hayden
I got tired of typing "from blabla import *", so here's a 5-line patch that executes settings.SHELL_STARTUP (defaults to the empty string) in the shell namespace before interacting. Enjoy, Ben --~--~-~--~~~---~--~~ You received this message b

Re: data import

2008-03-04 Thread Ben Ford
5.000 rows. > > What you can recomend in my case? > > Thanks! > > > -- Regards, Ben Ford [EMAIL PROTECTED] +447792598685 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Multiple Database Support

2008-03-02 Thread Ben Ford
looking at the tranquil project on google code for some django-SA integration stuff). Cheers, Ben On 02/03/2008, Lee Connell <[EMAIL PROTECTED]> wrote: > > > Hello, > > I seen some code in trak for multiple db support. Is this something > that is usable now, is there some docu

Re: SqlAlchemy branch status or composite keys?

2008-02-25 Thread Ben Ford
Hi Mike, As far as I know the newest body of work regarding SA is the tranquil project on google code. Have a look here<http://code.google.com/p/tranquil/> Hope it help, I haven't read through enough of the source to know if it does what you want. Cheers Ben On 25/02/2008, Mike Driscoll &

Django Success Story

2008-02-12 Thread Ben
If you'd like to read about the recent success of a summer project involving Django, read on. I've been playing with django in my spare time for a couple years. I've written a simple blog app, and have half-finished a few sizeable apps, one of which will be put on a vps by the end of the

Re: Iterating over very large queryset

2008-01-31 Thread Ben Ford
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've had pretty good results with SQLAlchemy on large datasets, that might be a painless way to solve the problem.. Ben Jarek Zgoda wrote: > Jacob Kaplan-Moss napisał(a): > >>>> Can you share any hints on how to reduc

Re: Multiple form objects, only getting contents from last one

2008-01-23 Thread Ben Ford
the widget's choices are updated when the field's choices are set. In my experience, working off trunk doesn't cause much trouble. Hope that helps Ben On 23/01/2008, Tim <[EMAIL PROTECTED]> wrote: > > > On Jan 22, 5:22pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > >

Re: Template Macros Like In Jinja

2008-01-22 Thread Ben Ford
Correct me if I'm wrong, but can't jinja be pretty much used as a direct drop in for django? Ben On 22/01/2008, Jeff Anderson <[EMAIL PROTECTED]> wrote: > > Hello, > > I stress again that I don't know a ton about the django template system, > (or any for that matter)

Re: gis: MySql Persistence Problem

2008-01-08 Thread Ben Walton
Thanks Justin, I seemed to have glanced over that section of the documentation, I'd realized that the query wasn't actually using the query from contrib/gis and that explains why! Thanks again! Ben On Jan 8, 2008 8:34 PM, Justin Bronn <[EMAIL PROTECTED]> wrote: > > Ben, > >

Re: Context Processors: {{ MEDIA_URL }} not available in templates

2008-01-07 Thread Ben Stahl
UPDATE: OK, I installed the trunk version and it worked right away, so I guess 0.96 does not support the media context processor. Thanks again for the help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Context Processors: {{ MEDIA_URL }} not available in templates

2008-01-07 Thread Ben Stahl
On Jan 4, 9:43 pm, Peter Rowell <[EMAIL PROTECTED]> wrote: > > Well, if I can't get this working I suppose I can just stuff the > > settings.MEDIA_URL variable into each template render by placing it > > into the render dictionary myself each time. > > Nah, don't do that. > > I think your

Re: Context Processors: {{ MEDIA_URL }} not available in templates

2008-01-04 Thread Ben Stahl
On Jan 4, 4:19 pm, Peter Rowell <[EMAIL PROTECTED]> wrote: > > (3) Imported the RequestContext object in my views.py file: > > > from django.template import Template, Context, RequestContext > > I know this is a silly question, but did you *use* RequestContext, or > just import it? > > E.g. >

Context Processors: {{ MEDIA_URL }} not available in templates

2008-01-04 Thread Ben Stahl
Hi, I read that if I install a context processor, MEDIA_URL will automatically be available to my templates. However, it's not. Here's what I've done: (1) Added the image files to my ftp server here: myserver.com/sites/myapp/images/ (2) Added this to settings.py

Re: Django is more?

2008-01-02 Thread Ben Ford
applications. > I've seen it done where I work-- we use django for our print accounting > scripts. > > Does anyone else use django for a framework? > > Jeff Anderson > > > -- Regards, Ben Ford [EMAIL PROTECTED] +6281317958862 --~--~-~--~~~--

Re: Accessing Multiple Databases

2007-12-12 Thread Ben Ford
do my best and will update with my progress (and some docs) at some usable point in the future. Cheers, Ben On 13/12/2007, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > On Dec 13, 2007 12:25 AM, Derek Steinkamp <[EMAIL PROTECTED]> wrote: > > > > As an aside, I th

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-12 Thread Ben Ford
I third it... except for the fact that this is a newby asking. Given that fact I'd have to say (k)ubuntu. Personally I love Arch!! Ben On 12/12/2007, Aspersieman <[EMAIL PROTECTED]> wrote: > > > Lic. José M. Rodriguez Bacallao wrote: > > I will recommend Arch, i

Re: Oracle usage

2007-11-23 Thread Ben Ford
Some of the more oracle oriented people on the list will be able to give you an answer with more depth, however: there was a branch (and a sprint) solely given to improving oracle support. This is now merged into trunk, so it may be worth your while upgrading! Ben On 23/11/2007, anthony <[EM

Re: more info when serializing

2007-11-17 Thread Ben Ford
You could use a objects.values(...) which return a dictionary if I remember correctly, and then simplejson.dumps... Ben On 18/11/2007, Bryan L. Fordham <[EMAIL PROTECTED]> wrote: > > > So, say I have a model something like this: > > class Bar(models.Model): > user

Re: streaming status

2007-11-04 Thread Ben Ford
I'm not sure about this particular instance, but Templates are iterators I think so you might be able to come up with somthing if you hack around with the internals. Sorry I can't be more specific, but I don't have access to my normal environment at the moment! Ben On 04/11/2007, Karen Tracey

Re: Detecting changed fields when saving an object

2007-10-30 Thread Ben
On Oct 30, 10:33 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > That's the basic idea, anyway. Hope this helps. Spot on, it was overriding __init__() that does it :) Many thanks, Ben. --~--~-~--~~~---~--~~ You received this message because

Re: Detecting changed fields when saving an object

2007-10-30 Thread Ben
On Oct 30, 10:07 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > Is there a particular reason you need the before and after, instead of > just the after? Getting the before values would either require an > additional query during your save, or you'd have to overload the > __init__ method to

Re: Detecting changed fields when saving an object

2007-10-30 Thread Ben
On Oct 30, 7:31 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 10/30/07, Ben <[EMAIL PROTECTED]> wrote: > > > I'm trying to create an audit trail for a particular model, capturing > > all changes made on the objects. > > You might want to rea

Re: Detecting changed fields when saving an object

2007-10-30 Thread Ben
On Oct 30, 7:31 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 10/30/07, Ben <[EMAIL PROTECTED]> wrote: > > > I'm trying to create an audit trail for a particular model, capturing > > all changes made on the objects. > > You might want to rea

Detecting changed fields when saving an object

2007-10-30 Thread Ben
to update this whenever a new field was added to the model which is both non-DRY and rather tedious. Is there any django way of doing this? Something like: def save(): for all fields in this object: if field is now different: do audit here super(blah, self).save() Cheers, Ben

Re: AsianAirfares.com Beats Closest Competitor 6 Out of 10 in International Travel Comparison

2007-10-26 Thread Ben van Staveren
>> > The django-users list spam abuse has become nearly intolerable. As a > subscriber to numerous other technically oriented mailing lists, I > very > rarely have to deal with any spam whatsoever. Google Groups may be > free, > but it is apparently not without cost. > > Cl Next time, try

Re: Error During Django Install on Mac

2007-10-24 Thread Ben van Staveren
No offense but uh, RTFM? (Protip: man sudo, man su) On 24/10/2007, at 1:45 PM, jnap wrote: > > anyone? > > On Oct 24, 2:36 am, jnap <[EMAIL PROTECTED]> wrote: >> sorry for another dumb question...but how do i do it as root? >> >> On Oct 24, 2:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]>

Re: multiple database support: oracle backend

2007-10-18 Thread Ben Ford
time to write anything up, I also don't have internet at home at the moment so even emailing might be a bit intermittent! What do you all think? Ben On 18/10/2007, Carlos Hanson <[EMAIL PROTECTED]> wrote: > > > On Oct 17, 1:29 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: &g

Re: Get model's attributes

2007-10-10 Thread Ben Ford
Why would you need to do this?? The question as you've phrased it doesn't make any sense... Ben On 10/10/2007, xunSir <[EMAIL PROTECTED]> wrote: > > > class Address(models.Model): > name = models.CharField('uname', maxlength=20, unique=True) > mobile = models.CharField('u

Re: Advanced search issues

2007-10-10 Thread Ben Ford
A good start would be to put that sql in get_min_rent into a queryset... I it's queryset.select(). I'm not sure if you'll then be able to order_by('min_rent') though... Ben On 10/10/2007, Dan <[EMAIL PROTECTED]> wrote: > > > Hi > > I am trying to make an advanced search

Re: Using the fancy date/time widget with newforms

2007-10-09 Thread Ben Ford
Hi Dave, I believe this is what you're looking for http://www.djangosnippets.org/snippets/391/ I had to tweek a few things to get it to work, but it looks pretty damn good now! If it's what you want let me know if you have any issues setting it up and I'll do my best to help ;-) Ben On 10/10/2007

Re: using a existing database

2007-10-02 Thread Ben Ford
ny table then you could add "db_table=" to the ManyToMany field declaration and delete the Model that inspectdb will have created for you. Or you could leave it in your models.py and add two ForeignKey declarations to that model. Hope that helps, Ben On 02/10/2007, Greg_IAP <[EMAIL PR

Re: choose the database at runtime

2007-10-01 Thread Ben Ford
ut if this is the sort of thing that you need and I can help further. Ben On 02/10/2007, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > On 10/2/07, bluesky <[EMAIL PROTECTED]> wrote: > > > > So information about the connection to db should be stor

Re: It's Django for bussines/financial apps??

2007-09-26 Thread Ben Ford
to work ok for the limited stuff I've done with it. Ben On 27/09/2007, vandevel <[EMAIL PROTECTED]> wrote: > > > Hmmm.. not sure that argument makes much sense. In this case, it > sounds like > the deep integration is part of the problem here. If you can't swap > ou

Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Ben Ford
moment. However if you have any questions or comments please feel free to contact me and I'll do my best to help you out. With any luck I should be 'back with the program' in a couple of weeks when I've signed off on what I am doing. Best Regards, Ben On 21/09/2007, Russell Keith-Magee <[EMAIL

Re: using multiple databases

2007-09-18 Thread Ben Ford
send you the patch if you want it. Note that I haven't used the patch yet. Ben On 18/09/2007, msoulier <[EMAIL PROTECTED]> wrote: > > > On Sep 17, 11:00 pm, "Ben Ford" <[EMAIL PROTECTED]> wrote: > > Hi Mike, > > There is a branch that supports multiple databa

Re: using multiple databases

2007-09-17 Thread Ben Ford
to be done! If you want either patch then send me a mail, and of course if you have any problem/comments/suggestions I'm more than happy to help. Cheers, Ben On 18/09/2007, msoulier <[EMAIL PROTECTED]> wrote: > > > I was hoping to use Django in a web management UI for a server that I &

Re: How to add a non database item to a python model

2007-09-03 Thread Ben Ford
If you want to add things to an instance in a view you could just use setattr. Is this what you're asking? Ben On 04/09/07, shabda <[EMAIL PROTECTED]> wrote: > > > I have a python model > > class MyModel(models.Model): > fld1 = models.TextField() > fld1

Re: How to use Django with 2 legacy databases

2007-09-03 Thread Ben Ford
branch and hit me up for the patch that brings the branch up to date as of a few weeks ago. It's not perfect but it's certainly usable :-) Ben On 04/09/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > On 9/4/07, nubis <[EMAIL PROTECTED]> wrote: > > > >

Re: Help needed

2007-08-24 Thread Ben van Staveren
On 24/08/2007, at 3:03 PM, james_027 wrote: > > Hi ani, > > On Aug 24, 3:42 pm, Ani Nair <[EMAIL PROTECTED]> wrote: >> Hi I'm new to this.. I want to know whether django restricts the use >> of '?' in urls. I am unable to use it in the url config > > My guess is that "?" is a special char in

Re: Importing Excel/CVS into Database

2007-08-22 Thread Ben Ford
It worked? Sweet ;-) On 23/08/07, Amirouche <[EMAIL PROTECTED]> wrote: > > > > > On 22 août, 09:51, "Ben Ford" <[EMAIL PROTECTED]> wrote: > > A quick hack that should work would be to create a DictReader object to > read > > the cs

Re: Importing Excel/CVS into Database

2007-08-22 Thread Ben Ford
e() I haven't tested this, but I've used the csv module a fair bit and th syntax should be close enough. Ben On 22/08/07, Amirouche <[EMAIL PROTECTED]> wrote: > > > > > On Aug 21, 8:37 pm, robo <[EMAIL PROTECTED]> wrote: > > Have any of you guys imported excel/cvs by us

Re: Can Django be combined with a more powerful ORM?

2007-08-20 Thread Ben Ford
to stay close to original code that looks like this: >p[d[series][game]["f"][ixb]["owner"]]["kills"]++; Regards, Ben On 21/08/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote: > > > You can minimize the amount of code writing some special m

Re: django hosting companies

2007-08-15 Thread Ben Ford
I use slicehost... been really happy with them so far. You get a dedicated virtual machine, so you can set up whatever you want. It's $20 per month. Ben On 16/08/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > On 15-Aug-07, at 10:33 AM, Jay Parlar wrote: > > >

Re: Generating charts with ReportLab

2007-08-06 Thread Ben Ford
eature for the future. See my other message to the group or the link for more details. To everyone else: Sorry for the double message for those of you not using gmail :-) Ben On 30/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hey Ben...thanks...I'll check that out.

Re: Something like a mini Crystal Reports with Django

2007-08-06 Thread Ben Ford
l find it useful and that we can work together to get it production ready! Mir, email me off list and I'll give you the https password so you can access it too. I will also let Carole and Toby know about this so that maybe we can explore reportlab and R integration respectively. Cheers, Ben On 06/08/0

Re: Something like a mini Crystal Reports with Django

2007-08-05 Thread Ben Ford
figured. :-) Ben On 05/08/07, Mir Nazim <[EMAIL PROTECTED]> wrote: > > > Ho ho, > > Its generating a lot of interest. > > On Aug 4, 3:18 pm, "Chris Hoeppner" <[EMAIL PROTECTED]> wrote: > > Need another tester? Count me in. > > > > 2007/8/4, Mi

Re: Something like a mini Crystal Reports with Django

2007-08-03 Thread Ben Ford
just need to write a front end for creating filters and it'll be good to go. I'll be happy to release it for the benefit of others when it's done. Ben On 03/08/07, Mir Nazim <[EMAIL PROTECTED]> wrote: > > > I understand that views need to be created. I am doing that these > days. >

website template compatible with django

2007-08-01 Thread Ben
Hi all, I am a total Django newbie. Hence the probably silly questions: There are professional-looking website templates for sale in several places (templatemonster, etc). Can those be used easily with Django ? Do they need to be designed specifically for Django ? Do you know of any vendor that

Re: How can I re-use the filtering and sorting from the admin pages in my view?

2007-07-31 Thread Ben Ford
Johan, I used some of the admin functionality in my views and to be honest I wish I hadn't... It's pretty difficult to extend and I'm kinda stuck now! I'm not sure what the newforms admin brings to the table (or even if it's merged into trunk yet) so maybe you'd want to look at that? Ben On 01/08

Re: Adding ForeignKey on self to User with add_to_class causes endless loop in the server

2007-07-31 Thread Ben Ford
I'm not sure about the mechanics of add_to_class, but usually a self referential ForeignKey should look like: models.ForeignKey('self', ..) Have you tried it like this? Ben On 31/07/07, Daniel Kvasnicka jr. <[EMAIL PROTECTED]> wrote: > > > Hi, > in my models.py I'm

Re: Generating charts with ReportLab

2007-07-30 Thread Ben Ford
/43eafd773734acb6/31748b7c9487ba0a?lnk=gst=contrib+namespace+r=1#31748b7c9487ba0a or just have a look through your gmail for *Re: Graphs and django.* (The search string "contrib namespace r" worked for me.) Ben On 30/07/07, David Reynolds <[EMAIL PROTECTED] > wrote: > > > On 28 Jul

Re: error on models with foreign key on each other

2007-07-29 Thread Ben Ford
t;emp = Employee.objects.get() >>>emp.contracts.all() ... [.. ] Hope this explains it OK. Ben On 30/07/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 7/29/07, james_027 <[EMAIL PROTECTED]> wrote: > > D:\private\james\documents\django\ksk>python manage

Re: Satchmo

2007-07-22 Thread Ben Ford
lable as a zip (tar, gz, etc)? > > Failing that, when can I expect the next official release? > > Thanks > Karl > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---~--~~ You received this message becaus

Re: Accessing FK sets in model methods

2007-07-18 Thread Ben Ford
This error message is to do with a syntax error... It doesn't have anything to do with django specifically. If you've cut and pasted verbatim, then you need a colon ( : ) at the end of your if > 0 line. This is what python is flagging as an error as far as i can see. Ben On 18/07/07, I

Re: ANN: DMigrate - A Django Database Migration Tool

2007-07-18 Thread Ben Ford
Just out of interest have you explored using SQLAlchemy directly with the django model..? I mean mapping the SA Table onto the django Model..? I had a play with that a while back and it seems a very straightforward way of achieving SA - django integration... Ben On 18/07/07, Noam <[EM

Re: ANN: DMigrate - A Django Database Migration Tool

2007-07-17 Thread Ben Ford
re's also a similar module (on djangosnippets I think) which enables extraction/insertion of a database into/from a list of python files. It's pretty good!! Cheers Ben -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---~--~~ You received this messag

Re: Django serving static PDF file

2007-07-17 Thread Ben van Staveren
t; time, they hang the browser, so is there a way to push ? > > regards, > Arnold > > On Jul 17, 4:03 pm, Arnold Chen <[EMAIL PROTECTED]> wrote: >> Thanks Ben, >> >> Besides, i've found thatwww.lawrence.comandwww.ljworld.com(which >> are famous sites that use

Re: Django serving static PDF file

2007-07-17 Thread Ben van Staveren
You're better off not doing it with Django, just make a directory that won't be handled by Django and stick all your static content in there. After all, the webserver is usually better at serving static files than Django is :) On 17/07/2007, at 2:26 PM, Arnold Chen wrote: > > Can any one

Re: How to make dictionary out of model instance

2007-07-16 Thread Ben van Staveren
If you have an instance, you could just do: myUserModelInstance.__dict__ -- that'll get you the data you want, and a bunch of extra stuff you most likely don't want. I don't really recommend doing this either, since it's not "the right way" IMO, but it solves your problem. On 16/07/2007,

Re: Graphs and django

2007-07-12 Thread Ben Ford
- when I get back! :-) Ben On 12/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote: > > > Hi Ben, > > I see what you're doing now. There are a couple things I should mention. > > First of all, you are right: getattr(r,'generic.scatter.plot') is not the > same as

Re: Graphs and django

2007-07-11 Thread Ben Ford
e.series" was not found I tried it with underscores too and I got exactly the same message... In fact just having looked through the source and having a play with rpy it seems that there are bugs all over the place: >>> from rpy import r RHOME= /usr/lib/R RVERSION= 2.4.0 RVER= 2040 RUSER= /home/b

Re: Graphs and django

2007-07-11 Thread Ben Ford
a very brief look at rpy before, but I'm not exactly familiar with it's inner workings Great work, I've been meaning to have a crack at something like this for ages!! Ben On 11/07/07, Toby Dylan Hocking <[EMAIL PROTECTED]> wrote: > > > Hi there, > > If you still need help wi

Re: Sharing code between two projects

2007-07-04 Thread Ben Ford
> > is on your Python path. The only real constraints are that template tags > > are loaded from a directory called templatetags/ that must live in an > > application directory and models must live in a module called "models". > > Everything else is free-form and enti

Re: Sharing code between two projects

2007-07-04 Thread Ben Ford
.py Put all of your templatetags in some_file.py and include top_module in your installed apps. In your templates you just {% load some_file %} AFAIK that's all you need. Cheers Ben On 04/07/07, Eugene Morozov <[EMAIL PROTECTED]> wrote: > > > Hello, > I have two projects, the

Re: As if multiple-db wasn't hard enough :(...

2007-07-03 Thread Ben Ford
-class of Manager (and perhaps a mixin for my models) I'll have to write some code and see how I go! Thanks for the help (and the write up on Model Creation and Initialization!!) Ben On 03/07/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-07-03 at 11:51 +0700,

As if multiple-db wasn't hard enough :(...

2007-07-02 Thread Ben Ford
fairly interesting problem here, and I recognize that it's WAY out of spec for what django was designed for!!! If anyone's got any ideas, I'm all ears!! TIA, Ben -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---~--~~ You received this message be

Re: Using more than one database in the project

2007-06-29 Thread Ben Ford
in the test db (under postgres) completely and I have to close bash to kill it! I'll let you know :-) Ben On 29/06/07, AnaReis <[EMAIL PROTECTED]> wrote: > > > Hi, > Do you already have an ETA for that? If there is anything I can do to > help, even if just testing, I'd be

Re: Using more than one database in the project

2007-06-28 Thread Ben Ford
Hi There is a branch that supports multiple databases and I'm working on getting the merges I've made from trunk checked in at the moment... That's probably your best bet, watch this space! Ben On 28/06/07, AnaReis <[EMAIL PROTECTED]> wrote: > > > Hi! > As I said in previous

Re: Django logging facilities

2007-06-19 Thread Ben Godfrey
I used logging for a while but messages were dropped too often. I'm not entirely sure why, as logging is reputedly thread safe. Instead I switched to syslog, which is more reliable, but truncates log messages. Not so useful for later inspection of stack traces. I have not looked at configuring

Re: wicket like templating

2007-06-02 Thread Ben Jones
stem that has syntax a little closer to what you're used to. You might be interested in this FAQ entry: http://www.djangoproject.com/documentation/faq/#i-can-t-stand-your-template-language-do-i-have-to-use-it -- -Ben --~--~-~--~~~---~--~~ You received this messa

Re: Applications imports best practices ?

2007-05-31 Thread Ben Jones
pps and deploy them. -- -Ben --~--~-~--~~~---~--~~ 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 from this group, send email

Re: installing django on vista?

2007-05-26 Thread Ben Jones
78e http://code.djangoproject.com/ticket/2457 -- -Ben --~--~-~--~~~---~--~~ 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 from thi

Re: Can you define an extra filter to be applied to a class in all cases via the model?

2007-05-25 Thread Ben Jones
t;2 weeks ago." "Nevermind. Umm . . . If you could just reactivate that for me." Of course, this will almost certainly be followed up with an email where the topic is a very vague notion of "lessons learned", "being more careful", and "accountability&qu

Re: user object in templates

2007-05-23 Thread Ben Jones
s.google.com/group/django-users/browse_thread/thread/84c15332671e02f8?hl=en I suspect that your missing user object is because of the same reasons that {{ perms }} was empty in thread above. -- -Ben --~--~-~--~~~---~--~~ You received this message because you ar

Re: One, maybe two small bugs.

2007-05-20 Thread Ben Jones
// Create a new option node based on the selected primary category var xopt = document.createElement('option'); xopt.value = pcat_f.options[pcat_f.selectedIndex].value; var cat_f = document.getElementById('id_categories_to'); cat_f.appendChild(xopt);

Re: save() extension works in shell, not in admin interface?

2007-05-18 Thread Ben Jones
ng the id from the 'default' and putting it in with the 'additionals'. I can then perform a check in my save() extension to make sure that the information posted by the client is as expected, raising an exception if something is amiss. Again, thanks for the help. I really

save() extension works in shell, not in admin interface?

2007-05-18 Thread Ben Jones
s.get(id=1) container = Container.objects.get(id = self.default_container.id) item.containers.add(container) -- -Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Many2Many question about Database API

2007-05-17 Thread Ben Jones
> Apparently it's a bug in the version of sqlite that's bundled with the > Windows installer (3.3.4). The Python 2.5 installer, that is. . . -- -Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: Many2Many question about Database API

2007-05-16 Thread Ben Jones
the different results. I originally thought it was just a misunderstanding on my part of the docs or else I would have researched it a little more before posting. Thanks for the help. On 5/16/07, Ben Jones <[EMAIL PROTECTED]> wrote: > > Might be worthwhile having a look at the SQL Django i

<    1   2   3   4   >