>a.) connect to multiple databases: ex. Legacy database A and new
>database B for a single application ?
Even though magic-removal doesn't address this directly, there is a lot
of what is done in magic-removal that will make this possible in the
future. The main thing is the concept of managers,
It looks like magic-removal doesn't allow more than one database
connection 'out of the box', but I guess you could use a view that has
something like;
import MySQLdb
result = curs.fetchall()
in it and carry on from there, with judicious use of
result['fieldname'] in the newobj.save() argum
I got to a similar state, but I couldn't figure out what the template
should look like! (dumb, I know). Do you have an example you can post?
I'm trying to implement parts of the admin system into my own apps, and
the paginator is a core part of that (looking at migrating from Zope,
and the 'batch
Ooh, that's neat Jason! - certainly our guys can get their teeth around
that code.
Authentication of django apps is going to be one of our biggest issues,
and examples like this can only help.
It's just the sort of thing that deserves an entry in the wiki
http://code.djangoproject.com/wiki.
You
Hadn't thought of that Brian, I'll have a go at putting something a bit
more sensible into the Wiki (I was in a hurry to go to a meeting and
wanted to get the content online somewhere before it left me
completely!).
Come to think of it, I may try diffing against the original docs and
submitting i
Arghh ... updated to 0.91 and now it works.
Back to work everyone!
-Z
Hi Gabor, I am dealing with the same issue here, and I've opened a
ticked for this : http://code.djangoproject.com/ticket/1315
It seems that on the admin's template ('file.html'), filefields are
susbtituted to "bound_field.original_url" which evaluates to blank
even if you use the "bound_fiel
More on this ...
If I turn on show_indices ("... 'show_indexes': True"), then I can
navigate all the way down to my target media, until I actually click
one ... that's when I get the "redirection limit" error.
There are about 15 requests for the mangled URI shown above (each doing
a 302 redirect
Hey all,
I've been reading the other thread about static files and getting this
to work with the development environment (v 0.90).
Sadly, the instructions doesn't work for me, I keep getting 302 errors:
The following Html:
give me this error in the HTTP server:
[02/Feb/2006 02:26:10]
On Wednesday 01 February 2006 22:05, [EMAIL PROTECTED] wrote:
> With this setup, I can create a Bar in the admin page, but when I hit
> "submit", it throws an exception. Unfortunately the exception gets
> clobbered, but I added a quick one-liner hack to print it out before
> it gets clobbered,
I wrote the patch using Oracle 9.2.0.1.0 on Windows XP and Python
2.4.1. I'm hoping to set up a dev server (or at least VMPlayer image)
that will test the patch against Windows and Red Hat versions of Oracle
10g.
I highly doubt there are version specific differences in the patch
between 9i and 10
tonemcd wrote:
> Amit,
> *Many thanks* - that is *exactly* the kind of stuff I need to know
> about. We have people who can write the decorators for LDAP
> authentication,
I just wrote a detailed post on how to "hack" in LDAP support to
Django. It does not cover the same steps as suggested by Ami
On Wednesday 01 February 2006 12:14, Julio Nobrega wrote:
> I added an article at the Wiki about Modified Preorder Tree
> Traversal, a way to store parent/children relationship.
You use 'lft' and 'rght' instead of 'left' and 'right' - I don't think
there is any need to do this. You can always
On Wednesday 01 February 2006 11:32, Karsu wrote:
> I have 2 variables var1 and var2. Variables contains strings like
> "testi", "Test" "TEsT".
>
> I need templates like this, but django throwed error..
>
> {% ifequal var1|lower var2|lower %}
> ---something---
> {% endifequall %}
>
> Is there any
Hi,
I am trying to use a related object's attribute as part of the __repr__()
function, and am running into trouble.
from django.core import meta
class Foo(meta.Model):
name = meta.CharField(maxlength=255)
def __repr__(self):
return self.name
class META:
admin = m
On Wednesday 01 February 2006 09:10, Bram de Jong - MTG wrote:
> Now, I have some questions about caching. Here goes:
>
> 1. how does one cache websites (with django) that have personalized
> views for the users? I.e. there's lot's of thing like
>
> if(user has voted for this item)
> display
On 2/1/06, treelife <[EMAIL PROTECTED]> wrote:
>
> Thank for this Adrian. This was in fact the case and I now have
> mod_python2.3/ apache2 running.
>
> I imagine that there is some way to resolve this, I had to also
> disable Squirrelmail. (it's not critical but I was testing it out to
> offer
Which Oracle is it being tested against? I don't suppose it
matters since the API used is "lowest common denominator" in
general. I plan on using Oracle 10g XE as soon as they take it
out of beta. Best deal out there if you ask me.On 2/1/06, Jason Huggins <[EMAIL PROTECTED]> wrote:
Robert Hicks
That's cool. Did you put this on the wiki?
http://code.djangoproject.com/
Bryan
On 1/31/06, tonemcd <[EMAIL PROTECTED]> wrote:
>
> Here's what I've found...
>
> Start with the very useful tutorial at
> http://www.djangoproject.com/documentation/forms/ - in general it's
> very helpful, but ther
Robert Hicks wrote:
> On the Django site it lists the currently implemented databases and say
> "more to come soon".
>
> Is Oracle on that list? And relatively speaking, how "soon" is soon?
I wrote the Oracle patch and it's working fairly well for me at the
moment, you can download and apply it f
On Wednesday 01 February 2006 08:40, Rudolph wrote:
> But do you know a solution to my original problem when relating a
> model to another model more than once, which gives errors in the
> admin interface. Using 'related_name' doesn't solve it.
I think I just saw a bug filed against this, have a
The ObjectPaginator is cool. I just can't seem to find any
documentation on how to properly implement it in a project.
This is what I did... hopefully it'll be of use to some. If someone
has a cleaner method of implementing this object
##someView.py
paginate_by = 20
paginator = ObjectPaginato
When using the generic view 'archive_month', Im getting a TypeException
with the message
"got unexpected keyword argument 'posted__range'", where 'posted' is
whatever date_field I put in.
The args are being shunted through a view atm so I can remove another
arg but I don't see any problems with m
Thank for this Adrian. This was in fact the case and I now have
mod_python2.3/ apache2 running.
I imagine that there is some way to resolve this, I had to also
disable Squirrelmail. (it's not critical but I was testing it out to
offer to my clients )
Barring resolution, I would have to look f
Yeah, this weekend I will have time to code with Django and I am
planning to decouple the Comment model and functions I did, because I
need it on another project. Look for an updated wiki in a few days if
you want something easier to use...
On 2/1/06, Alex Bondarenko <[EMAIL PROTECTED]> wrote:
On 2/1/06, PythonistL <[EMAIL PROTECTED]> wrote:
> I installed django on Dreamhost.com and it works ok but I can not start
> admin interface
> I get the error:
> Exception Value: (1146, "Table 'boardbma.django_admin_log' doesn't
> exist")
You'll need to run the command "python manage.py install a
张骏 <[EMAIL PROTECTED]> writes:
> 在 2006-1-26 16:23:[EMAIL PROTECTED] 写道:
>> Their is a strange bug in the admin interface of django
>> 1- i want to add new user from the admin interface
>> 2- i went to users and add new user
>> 3-i write my password
>> but i can't log in with this password
>> w
Thanks a lot.That works !
张骏 <[EMAIL PROTECTED]> writes:
> 在 2006-1-26 16:23:[EMAIL PROTECTED] 写道:
>> Their is a strange bug in the admin interface of django
>> 1- i want to add new user from the admin interface
>> 2- i went to users and add new user
>> 3-i write my password
>> but i can't log in with this password
>> w
> I added an article at the Wiki about Modified Preorder Tree
> Traversal, a way to store parent/children relationship.
Lots of thanks. I'm just wanted to implemented too (:
Would be nice to see that implemented in model base class.
To clarify some things in the last post:
When I said, "the view should be handling all variable assignments if
possible". I meant to say the controller should be handling all
varialbe assignments. It's confusing because django calls controllers
"views", and views "templates". They have a reason
Modifying template variables in the template throws out the
model-view-controller way of doing things. In theory, the view should
be handling all variable assignments if possible.
Now, for your specific example, it seems it would be a pain to pass
both a capitalized and a lowercased version of t
I've encounterred this problem as well. All I know is that if you run
the following SQL, everything will get better.
DROP TABLE IF EXISTS `django_admin_log`;
CREATE TABLE `django_admin_log` (
`id` mediumint(9) unsigned NOT NULL auto_increment,
`action_time` datetime NOT NULL default '-
Hi,
I installed django on Dreamhost.com and it works ok but I can not start
admin interface
I get the error:
Exception Value: (1146, "Table 'boardbma.django_admin_log' doesn't
exist")
Exception Location:
/usr/lib/python2.3/site-packages/MySQLdb/connections.py in
defaulterrorhandler, line 32
other
Someone forgot the link... :)
http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal
I added an article at the Wiki about Modified Preorder Tree
Traversal, a way to store parent/children relationship.
I don't know how good my english is (I am from Brazil, and speak
portuguese), and I extracted the code from an app I am doing. Could
someone "proof-read" it please, and if any e
i'm also concerned about this specific issue and would be interested in
receiving information about that.
my experience is that multiple editing is a very basic functionality
which is needed almost everywhere you deal with a broad amount of
records.
regards,
parsch
patrick k wrote:
> could som
I have 2 variables var1 and var2. Variables contains strings like
"testi", "Test" "TEsT".
I need templates like this, but django throwed error..
{% ifequal var1|lower var2|lower %}
---something---
{% endifequall %}
Is there any good way to do this?
Can i modify some template variables and then
Hi,
(new here, hello all)
My latest website ( http://freesound.iua.upf.edu ) is becoming more
popular then it was ever meant to be, so I'm looking at rewriting it in
django and rethinking the model space from the bottom up...
Now, I have some questions about caching. Here goes:
1. how d
Thanks for your answer Luke! So magic-removal is at the moment more
unstable then trunk, I guess.
But do you know a solution to my original problem when relating a model
to another model more than once, which gives errors in the admin
interface. Using 'related_name' doesn't solve it.
TIA,
Rudol
40 matches
Mail list logo