ers' doesn't exist" is what webmin said)
> >
> > If you'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 subj
and "Beginning 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 receive
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
> >
t; need to go manage a different 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
[E
ust testing, I'd be 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
> > gettin
db (via the
ConnectionInfoDescriptor) on the fly?
- A metaclass that changes the internals of the models in the Oracle
db(s) to allow specifying which db to look in?
- Both of the above?
- Witchcraft and Voodo?
- Any other ideas?
This is a fairly interesting problem here, and I r
ight be able to get away with a sub-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:
>
>
support for 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 reus
o you can share any code that
> > 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
rk.
>
> The installation instructions are in 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,
class.
>
> Maybe your version of RPy isn't translating python names into R names the
> same way 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.o
_to_get_scatter_data)
> >>> plot.to_html()
>
> Have you tried to get the 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.
>
> Si
There'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 recei
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
> > > mul
Couldn't install apps, because there were errors in one or more
> > > models:
> > > mysite.traveler: invalid syntax (models.py, line 8)
> >
> > If you did a copy&paste of your actual code, line #8 ("def
> > _first_date(self):") seems to have an e
ke it
> available 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 me
> > 2 errors found.
>
> Django is telling you exactly what you need to do to resolve the
> error. Look at the model documentation for "related_name" for more
> details.
>
>
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of
> cor
hem useful at some point.
>
> Thanks,
>
> David
>
> --
> David Reynolds
> [EMAIL PROTECTED]
>
>
>
>
--
Regards,
Ben Ford
[EMAIL PROTECTED]
+628111880346
--~--~-~--~~~---~--~~
You received this message because you are subscribe
r time.
>
> I 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 P
the same in better django-style, and re-
> using the admin capabilities in my custom view and template?
>
> All feedback highly appreciated!
>
> Johan
>
>
> >
>
--
Regards,
Ben Ford
[EMAIL PROTECTED]
+628111880346
--~--~-~--~~~---~--~~
You rece
ystal reports. Generating 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.
> >
> > &g
ate.
> >
> > > 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 F
set it up under https 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 comme
that out.
>
> 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...
> Carol
agree
>
> --
>
> regards
> kg
> http://lawgon.livejournal.com
> http://nrcfosshelpline.in/web/
>
>
>
> >
>
--
Regards,
Ben Ford
[EMAIL PROTECTED]
+628111880346
--~--~-~--~~~---~--~~
You received this message because you ar
it presents
> > to you. From the examples you 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
brary)
> 3. 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
--~--~-~--~
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
elopment had progressed before it
> stalled, 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 b
fld1 = 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
--~--~-~--~~~--
t;>
> >> Hopefully this is a good starting point!
> >>
> >> Jeff Anderson
> >>
> >> Papalagi Pakeha wrote:
> >>
> >>> hi there!
> >>>
> >>> i wonder if there is any way to have Macros in django
on a newer version just yet. I
> suppose I'll have to give that a go, but was hoping to stick to stable
> releases if possible.
>
> Thanks!
> Tim
> >
>
--
Regards,
Ben Ford
[EMAIL PROTECTED]
+447503145951
--~--~-~--~~~---~--~~
You
-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
; and 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 SQ
, is there some documentation 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?
> >
tes to import 85.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"
ff Anderson
> >>
> > 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
> >
> >
> &
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
f a more formal spec for writing a database
> 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 PR
you could
> 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
--~--~-~--~~~---~--~~
Y
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.
>
> a
and a lot of trouble finding
where the originate! Our 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
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]
+44779259868
helpers]
>
> def suite():
> s = unittest.TestSuite()
> for m in TEST_MODULE_LIST:
>s.addTest(unittest.defaultTestLoader.loadTestsFromModule(m))
>try:
> s.addTest(doctest.DocTestSuite(m,
>checker=doctestOutputChecker,
>runner=DocTestRunner))
&
!
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 unsub
the fly
> > (well I assume I could, I haven't checked it in any detail!), but
> > wouldn't that be hugely processor intensive?
> >
> > >
>
>
> >
>
--
Regards,
Ben Ford
[EMAIL PROTECTED]
+447792598685
--~--~-~--~~~-
ages all have the same look
> and feel. Is there a recommended way to do this?
>
> Thank you for any help that you can offer.
>
> Mike
>
>
> >
>
--
Regards,
Ben Ford
[EMAIL PROTECTED]
+628111880346
--~--~-~--~~~---~--~~
You received th
t and I'll 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 supp
tiple-db-support branch and update it with
> > 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
ious advantage worth
> > considering.
> > 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'
[EMAIL PROTECTED]> wrote:
>
>
> On 10/2/07, bluesky <[EMAIL PROTECTED]> wrote:
> >
> > So information about the connection to db should be stored on session,
> > not globally. Is this possible with django?
>
> Well, anything is possible, but not necessarily e
of my
> database, primary 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...
>
> Than
a custom widget, but I thought
> 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
ilable etc
> but this throws up an error as 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
s.all()
>
> How to get :
> 1 ['name', 'mobile', 'room']
> 2 ['uname', 'umobile', 'uroom']
> 3 {'name':'uname', 'mobile':'um
I appreciate it. If I happen to
> > solve the problem, you'll see it 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: f
to have forgotten
> how long it takes, and 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
--~--~-~--~~~
ust 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
>
> >
&
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
t even sure if there will be any great difference between
> >>> several distributions regarding these aspects. Any comment is welcome.
> >>>
> >>> Regards,
> >>> Andreas
> >>>
> >>>
> >
> >
> >
> >
&g
own the to-do list.
>
> > Perhaps I'll put some work into this 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 %-)
>
> >
ng
> AttributeError: 'Sponsor' object has no attribute 'method'
>
> offcourse that is correct because only clients is a attribute from
> sponsor.
>
> Can someone help me out, how can i add values to this table using the
> django method ? ( offcourse i can fal
r than web 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
--~--~-~--~~
63 matches
Mail list logo