Re: Using multiple databases

2008-07-21 Thread Ben Ford
It won't be in 1.0. It's only really been kicked off recently, so you'll have to wait a while :-) 2008/7/21 CPF_ <[EMAIL PROTECTED]>: > > Ben Ford wrote: > > Hi There, > > > > It has been possible in the past to use multiple databases with > > django. There

Re: Must Have Python resources

2008-07-21 Thread Ben Ford
ginning Python" and the > Django book. > Do you suggest a must have book or reference for a serious Python > programmer? > Thanks. > > > -- Regards, Ben Ford [EMAIL PROTECTED] +447792598685 --~--~-~--~~~---~--~~ You received this message

Re: Using multiple databases

2008-07-20 Thread Ben Ford
ou're implying some other technique, I have no idea what you are > > talking about - could you please explain, or redirect to a page > > explaining it? > > > > Thanks. > Sorry for kicking this subject, but I'd really like to have an answer to > that... > > Thanks in advance. > &g

Re: Automatic Image Resizing upon Upload

2008-07-11 Thread Ben Ford
ume I could, I haven't checked it in any detail!), but > > wouldn't that be hugely processor intensive? > > > > > > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +447792598685 --~--~-~--~~~---~--~~ You received this message

Re: Do you code django with Komodo?

2008-06-25 Thread Ben Ford
! Ben -- Regards, Ben Ford [EMAIL PROTECTED] +447792598685 --~--~-~--~~~---~--~~ 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

Re: Tests in files other than tests.py and models.py

2008-06-25 Thread Ben Ford
nittest.defaultTestLoader.loadTestsFromModule(m)) >try: > s.addTest(doctest.DocTestSuite(m, >checker=doctestOutputChecker, >runner=DocTestRunner)) >except ValueError: > # No doc tests in tests.py > pass > return s > > # End tes

Re: Sydney - Django Contracts - Mobile/Web Dev

2008-05-29 Thread Ben Ford
give me a call on +61 400 639008. > > Thanks very much - if you aren't from Australia - sorry for clogging > up your email with another job! I'm sure you must get sick of it :) > > Glen McGrath. > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +447792598685 --~--~-

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: 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-admin branch. > >

Re: Production vs Development Environments

2008-05-03 Thread Ben Ford
eliminate the staging environ and speed up your end-to-end process I > would think. > > Any thoughts or experiences you all would care to share? > > > -- Regards, Ben Ford [EMAIL PROTECTED] +447792598685 --~--~-~--~~~---~--~~ You received thi

Re: Add RDF store as database

2008-04-03 Thread Ben Ford
base > backend, which might result in some better doc, but for right now the > recommendation is to look at the code under django/db/backends for guidance > on what you need to do. > > Karen > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +447792598685 --~--~-~

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 can use the django admin on my cel phone ( N73 ) It has a nice > > browser based > > but I tested on another cel phone and it only knows WAP not full > > html / > > css / javascript > > > > Leonel > > > > > > > > > > > >

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
mentation on it? I have my app > that mainly interacts with mysql but I need to pull some data from a > mssql database for specific reasons, is this possible or should i just > use ado-mssql or pyodbc by itself? > > > -- Regards

Re: SqlAlchemy branch status or composite keys?

2008-02-25 Thread Ben Ford
I can't find much of anything newer than March 2007 for the > SqlAlchemy branch. > > Anyone know what's going on? I've been messing with TurboGears for a > couple of weeks, but their SqlAlchemy implementation doesn't seem to > play nice with MS SQL Server. > > Thanks, &g

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 reduce the memory usage in such

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

2008-01-23 Thread Ben Ford
ave to give that a go, but was hoping to stick to stable > releases if possible. > > Thanks! > Tim > > > -- Regards, Ben Ford [EMAIL PROTECTED] +447503145951 --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Template Macros Like In Jinja

2008-01-22 Thread Ben Ford
gt; Jeff Anderson > >> > >> Papalagi Pakeha wrote: > >> > >>> hi there! > >>> > >>> i wonder if there is any way to have Macros in django templates > >>> similar to what Jinja has (http://jinja.pocoo.org/)? > >

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
s when I have some time and get it > > caught up with the latest trunk. > > If multi-db support is important to you, then this is the most helpful > thing you can do. > > Yours, > Russ Magee %-) > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +6281317958862 --~--~-

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

2007-12-12 Thread Ben Ford
ny great difference between > >>> several distributions regarding these aspects. Any comment is welcome. > >>> > >>> Regards, > >>> Andreas > >>> > >>> > > > > > > > > > I second the Arch suggestio

Re: Oracle usage

2007-11-23 Thread Ben Ford
ing fine..... > > > -- Regards, Ben Ford [EMAIL PROTECTED] +6281317958862 --~--~-~--~~~---~--~~ 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@g

Re: more info when serializing

2007-11-17 Thread Ben Ford
missing? > > Ideally, it would return something like: ..."user": > {"username":"bfordham", "pk":1}... > > I'm using the django-rest-interface, if that makes a difference one way > or the other. > > Thanks > --B > > > > --

Re: streaming status

2007-11-04 Thread Ben Ford
despite any warnings to "Click DOIT only once!" > they're going to go back and click DOIT again > > Karen > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +6281317958862 --~--~-~--~~~---~--~~ You received this message because you

Re: multiple database support: oracle backend

2007-10-18 Thread Ben Ford
here. > > > > Carlos > > I put the following line in the wrong place: > > connection = self.model._default_manager.db.connection > > It needs to go in two places in the OracleQuerySet: first, in the > iterator() method; second, in the _get_sql_clause() method. T

Re: Get model's attributes

2007-10-10 Thread Ben Ford
t; 2 ['uname', 'umobile', 'uroom'] > 3 {'name':'uname', 'mobile':'umobile', 'room':'uroom'} > > Address's attributes are unfixed. > > "Class Amdin" let those come ture, but I am blind to see the English. > &g

Re: Advanced search issues

2007-10-10 Thread Ben Ford
s min_rent, max_rent, is_room_available > are not fields in the database, I looked at the custom model managers > and they seems to work but just for one custom criteria at a time. > > Could someone please recommend a good way to solve

Re: Using the fancy date/time widget with newforms

2007-10-09 Thread Ben Ford
; perhaps there was an easier way. > > Thoughts? > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +6281317958862 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: using a existing database

2007-10-02 Thread Ben Ford
mary and foreign keys as shown in my image table? > > Coule it be done after the feed of the database or could i integrate > my python scripts into my django application structure? > > i hope my explanations and questions will be understood... > > Thanks > > Greg >

Re: choose the database at runtime

2007-10-01 Thread Ben Ford
k at the sites framework, and consider the ways that you > could deploy multiple instances of your Django application, with a > common login interface that redirects to the appropriate site after > login. > > Yours, > Russ Magee %-) > > > > -- Regards, Ben Ford [EMAIL PROTECT

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

2007-09-26 Thread Ben Ford
gt; > If I were you, I would design the model and try to run the most > > complicated queries with django's ORM. > > If you reach django's limitations, or feel you're on the edge, it's > > probably just one hour of find/replace in your favori

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

2007-09-20 Thread Ben Ford
t; the latest development version? > > It is possible to update (the SVN terminology is merge) multi-db with > the changes from trunk; however, the process won't be a simple one, as > conflicts between changes in multi-db and changes in the trunk will > need to be resolved manually. >

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
ecommended way to do this? > > Thank you for any help that you can offer. > > Mike > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

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

2007-09-03 Thread Ben Ford
= models.TextField() > > I want to have a non database item in this model class, which I can > populate in the views. What is the recommended way to do this. > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---

Re: How to use Django with 2 legacy databases

2007-09-03 Thread Ben Ford
d, but if you're feeling adventurous, it might be worth looking > at. > > Yours, > Russ Magee %-) > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

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
create for each line a Model Instance with the data extracted from > the file > > I prefer, because I had to change some values, and I prefer to do > this in python :) > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~--

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

2007-08-20 Thread Ben Ford
u gave, Django's query set notation doesn't > > help you. So don't use it. Pick a replacement persistence layer. > > > > Trying to replace just the ORM portion (the "mapper" between Python > > objects and database relations) is almost certainly the wrong level to &

Re: django hosting companies

2007-08-15 Thread Ben Ford
> -- > > regards > kg > http://lawgon.livejournal.com > http://nrcfosshelpline.in/web/ > > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Generating charts with ReportLab

2007-08-06 Thread Ben Ford
> > We'll most likely continue to use ReportLab for our project, as we are > using the graphs in some reports we are going to export to PDF... but > looks like an interesting read :) > > I'll also add the other two samples to the wiki this week... > Carole > > On Jul 3

Re: Something like a mini Crystal Reports with Django

2007-08-06 Thread Ben Ford
s or svn+ssh > > Thanks > > On Aug 6, 6:47 am, "Ben Ford" <[EMAIL PROTECTED]> wrote: > > Hi guys, > > Thanks for the interest! I'll split it up from my main app and put it > into > > SVN on my server. I'd really like comments on some of the design

Re: Something like a mini Crystal Reports with Django

2007-08-05 Thread Ben Ford
> On Aug 3, 11:51 am, "Matt Davies" <[EMAIL PROTECTED]> wrote: > > > > Ben, I'd be interested in looking at that application. > > > > > > Need someone to help with testing? > > > > > > On 03/08/07, Ben Ford <[EMAIL PROTECTED]&g

Re: Something like a mini Crystal Reports with Django

2007-08-03 Thread Ben Ford
ating a report based of model items > > > > selected in a WYSIWYG(ok this is not important) fashion. And > > > > generating a HTML tables based report with defined calculations etc. > > > > > > I understand that

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

2007-07-31 Thread Ben Ford
> using the admin capabilities in my custom view and template? > > All feedback highly appreciated! > > Johan > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~~---~--~~ You received this message because you are s

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

2007-07-31 Thread Ben Ford
do it like this: > User.add_to_class('parent', models.ForeignKey('User', blank = True, > default = 0)) > > Anybody experienced something similar? > > Thanks for every thought, > Dan > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-

Re: Generating charts with ReportLab

2007-07-30 Thread Ben Ford
ttp://code.djangoproject.com/wiki/Charts > > > > If anyone is interested in a sample for a Pie or Scatter chart, let me > > know, and I can add samples of these as well. > > I would say, go ahead and add them, as I'm sure many people will find > them useful at some point. > &g

Re: error on models with foreign key on each other

2007-07-29 Thread Ben Ford
model documentation for "related_name" for more > details. > > > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of > correct." > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +628111880346 --~--~-~--~~

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
cause there were errors in one or more > > > models: > > > mysite.traveler: invalid syntax (models.py, line 8) > > > > If you did a copy of your actual code, line #8 ("def > > _first_date(self):") seems to have an extra space worth of > > i

Re: ANN: DMigrate - A Django Database Migration Tool

2007-07-18 Thread Ben Ford
AIL PROTECTED]> wrote: > > > On Jul 18, 4:47 am, "Ben Ford" <[EMAIL PROTECTED]> wrote: > > > I haven't looked at the code, but I wonder about the dependency on > > > multiple ORMs; the Django ORM cannot expose its own functionality on > > > multiple

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: Graphs and django

2007-07-12 Thread Ben Ford
demo bike app (django.contrib.dataplot.bike) to > work? If you are able to get those simple examples working, it should be > straightforward to translate the design paradigm to your problems. > > Sincerely, > Toby Dylan Hocking > http://www.ocf.berkeley.edu/~tdhock > > On T

Re: Graphs and django

2007-07-11 Thread Ben Ford
as mine is? I'm using RPy 0.4.6-3ubuntu2 Python 2.4.2-0ubuntu3 > and R 2.2.1-2 on ubuntu dapper. What are your versions? > > Sincerely, > Toby Dylan Hocking > http://www.ocf.berkeley.edu/~tdhock<http://www.ocf.berkeley.edu/%7Etdhock> > > On Wed, 11 Jul 2007, Ben Ford wrote:

Re: Graphs and django

2007-07-11 Thread Ben Ford
INSTALL.txt in the archive. > Documentation is mostly present in docstrings at the moment -- I'm working > on more tutorials, but the .txt files and the example app should be enough > to get you started. > > Sincerely, > Toby Dylan Hocking > http://www.ocf.berkeley.ed

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
r code reuse is significantly worse, than, say, in Plone/ > Zope 3. Though it might be because of my relative inexpirience in > Django. > > I would be very grateful if someone will point me to pages/blog > entries about how to write Django apps with reusability in

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
glad to help, since I really need > this module for my project. > Ana > > On Jun 28, 10:21 am, "Ben Ford" <[EMAIL PROTECTED]> wrote: > > Hi > > There is a branch that supports multiple databases and I'm working on > > getting the merges I've made from tr

Re: Using more than one database in the project

2007-06-28 Thread Ben Ford
erent database. > I'm kind of lost and a bit stuck here because I have no idea how to > deal with these two problems. > I read several other posts about this matter but none of them seemed > to help me. > > > > > -- Regards, Ben Ford [EMAIL PROTECTED] +62811188034