t can be revisited. Even if you got a decision right
now, it would never have a chance of making it in to 1.1, so rushing
the decision would be pointless anyway.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
bit buggy still and the unit tests
> seem to have real issues with the debugger at the moment.
> >
>
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To
Perhaps the default 500 view could just include a few simple things
like MEDIA_URL on its own?
Alternatively, one can make a custom 500 handler with whatever info
they want, instead of using django's default :)
--
Collin Grady
--~--~-~--~~~---~--~~
You rec
but not behaving like you
> show. Instead he wanted it to update *just* the fields passed as
> arguments. I.e. it should be equivalent to this:
So more like http://code.djangoproject.com/ticket/4102 then ? :)
--
Collin Grady
--~--~-~--~~~---~--~~
You receiv
Usage questions belong on the django-users mailing list. This list is
for the development of django itself.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
kwargs)
> File "C:\Development\Python25\Lib\site-packages\django\contrib\auth
> \decorators.py" in __call__
> 67. return self.view_func(request, *args, **kwargs)
> File "C:\Development\googleapp_projects\busa\..\mysite\myapp\views.py"
> in registerProdu
I think you should look at select_related() to solve most of those cases.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email
Of course not - you can do .order_by() to clear ordering if you really
don't want a default ordering somewhere, but all your examples sound
like you do :)
On Sat, Feb 28, 2009 at 3:02 PM, PauloS wrote:
>
> On Feb 27, 5:28 pm, Collin Grady wrote:
>> One could also set a defa
One could also set a default ordering on a model and have a consistent
order everywhere :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this g
;> return None
>>
>> other=property(_get_other,_set_other)
>>
>> When someone tries to access "other", it will call the _get_other()
>> method automagically, so you can have whatever logic you need in there
>> without forcing anything but the model to deal
xchange for a few pointers here and there. Sarcasm, and
> blaming the user, is a very tasteless way of saying no.
>
>
> On Feb 22, 10:52 am, Collin Grady wrote:
>> Seems you could just use an IntegerField and do it yourself, instead
>> of expecting django to adapt itself to
ally means
>> > relationships aren't fetched prematurely (foreignkey object isn't fetched
>> > automatically), which django does by default.
>>
>> > Secondly, the NULL value in databases is actually defined originally as
>> > Unknown, so it s
gt; Model.objects.aggregate(Count('filefield')) i would expect this to
> count objects with a file and not those without a file.
>
> This may relate to other fields aswell, if a field has both blank=True
> and null=True should it not store NULL in the db?
> >
>
.
Just like if you had instantiated it.
If you want it to fail if the object is gone, use force_update=True as
you were told before.
This is not an ORM bug, no matter how much you would like it to act otherwise.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this
py of it.
This is not a bug, as everything is working as intended :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to
On Thu, Dec 18, 2008 at 8:30 AM, gert wrote:
> Which was definitely what was intended on day one when the CHANGE,
> ADD, DELETE permissions were created.
Says you.
Admin is for admins. Not limited users.
Write your own views.
--
Collin
anything
- the tests rely on caching, since they test the cache session
backend.
There is no way to make them not fail unless you either do not test
that, or make the dummy cache backend /not/ a dummy cache backend
anymore.
--
Collin Grady
--~--~-~--~~~---~--~~
You
Make app.
Post on Google Code (or other site)
Profit!
:)
These shouldn't need to be in core to be used.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
to_template for some reason :)
http://www.djangosnippets.org/snippets/3/
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to
hey hit an out of date doc page.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubsc
t would be a
backwards-incompatible change, so it isn't likely to happen :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send
Usage questions belong on the django-users list - this list is for the
development of django itself :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To po
Usage questions belong on django-users, not django-developers - this
list is for the discussion of the development of django itself.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
ck for that context
processor, you could replace the auth processor with a custom one that
only works in admin's path and as such wouldn't add any db hits to the
rest of the site.
So if your goal is to make only admin do the queries for that data,
it's entirely possible.
--
Coll
ur own subclass of AdminSite
and override check_dependencies
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-devel
On Wed, Oct 1, 2008 at 2:04 PM, Marc Fargas <[EMAIL PROTECTED]> wrote:
> So, would a signal there be useful? (no ticket filled yet) And, where
> can one hook code for that? :)
I don't think any such place exists, so there's nothing you can do for
This is related to http://code.djangoproject.com/ticket/3460
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-
ment of django itself, not usage questions or
errors like this :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-devel
Wouldn't it be easier to use process_exception instead of process_view ?
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send
ta and f.unique and not is_null_pk:
> AttributeError: 'IdeaForm' object has no attribute 'cleaned_data'
>>>>
> and i read the doc over and over again and i cant use the forms.
This sounds like more of a usage question then (for instance
ics-forms-index
>
> I make a mistake?
That line also says what I said - it *used to be* clean_data in 0.96,
but it *is* cleaned_data now.
So if the line of code had clean_data, it would be wrong, but it has
cleaned_data, so it is right.
--
Collin Grady
--~--~-~--~~--
in 0.96 but changed to
cleaned_data shortly after to avoid conflicts with validation
functions for a field named "data" - you are reading old examples
and/or docs.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribe
ble to link back to admin for staff members,
so
you can quickly go and edit a page, so I think any fix along these lines would
be very useful :)
--
Collin Grady
"I only touch base with reality on an as-needed basis!"
Please send usage questions to django-users - this list is for the
development of django itself.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to
Questions of this nature should go on django-users, not
django-developers - this list is for the development of Django itself,
not usage questions :)
--
Collin Grady
Sentimentality -- that's what we call the sentiment we don't share.
-- Gra
I don't seem to have mentioned that in the ticket, since it
didn't really matter there)
[1] http://code.djangoproject.com/ticket/3575
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django de
ven if someone did sniff the code, it'd be useless
after that.
--
Collin Grady
Abstainer, n.:
A weak person who yields to the temptation of denying himself a
pleasure.
-- Ambrose Bierce, "The Devil's Dictionary"
--~--~-~--~~~--
Mike Scott said the following:
> Maybe the page after the block submission needs to be changed. And
> maybe you could output a copy of the submitted text too just incase
> you didn't have a copy written elsewhere.
Something wrong with your browser's back button? :)
--
several notes about filing tickets, including this one:
# If you're getting rejected by the spam filter, we apologize! The
best way to avoid that is to register for an account and make sure
you're logged in.
--
Collin Grady
--~--~-~--~~~---~--~~
You rece
Jeff Anderson said the following:
> #4118
Do you have the wrong # here? That ticket is closed: duplicate :)
--
Collin Grady
It was a brave man that ate the first oyster.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Model fields have null and blank arguments, form fields have
required.
--
Collin Grady
A chicken is an egg's way of producing more eggs.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developer
Can I recommend http://code.djangoproject.com/ticket/4102 for the list? :)
--
Collin Grady
Bumper sticker:
All the parts falling off this car are of the very finest
British manufacture.
--~--~-~--~~~---~--~~
You received this message because you
Peter Melvyn said the following:
> I see - is there a way how to pass such URL via Google interface?
http://tinyurl.com ? :)
--
Collin Grady
If at first you don't succeed, you're doing about average.
-- Leo
Usage questions belong on the django-users list, not here - this list is for
discussion of the development of django itself :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django devel
hiwd said the following:
> 'index': self.db.queries.__len__()
Shouldn't that be len(self.db.queries) ? :)
--
Collin Grady
We are not anticipating any emergencies.
--~--~-~--~~~---~--~~
You received this message because you
/4102
The first three are the big ones I'd like to help finish, but 4102 would also
be
very nice :)
--
Collin Grady
"We came. We saw. We kicked its ass."
-- Bill Murray, _Ghostbusters_
--~--~-~--~~~---~--~~
You received thi
) configuration files ?
Usage questions like this belong on the django-users list :)
This list is for the development of django itself.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django d
Nathaniel Whiteinge said the following:
> Either way, this is a bike-shed issue.
In fact, he can simply do this:
from django.views.generic.simple import direct_to_template as render_response
and get the name he wants without patching anything :)
--
Collin Gr
[EMAIL PROTECTED] said the following:
> Yep, I just did it, how are you guys starting the python interpreter?
python
no manage.py, no ipython, nothing special, except my env has
DJANGO_SETTINGS_MODULE set right
--
Collin Grady
I had the rare misfortune of being one of the first people
Trevor Caira said the following:
> Are you sure you're importing both Template and Context? I get the
> same error as OP.
I don't have to import Context to trip this, only Template
--
Collin Grady
Since a politician never believes what he says, he is surprised
when ot
file loader.py is parsed - so if you import Template and Context, they
don't
work, yet the moment you import loader, they do - is this an intentional
decision, or a valid issue?
--
Collin Grady
...[Linux's] capacity to talk via any medium except smoke signals.
-
Usage questions belong on django-users - this list is for the development of
django itself.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this g
Usage questions such as this should go to the django-users mailing list. The
django-developers list is for the development of django itself, not just for
developers who use django.
--
Collin Grady
Some people live life in the fast lane. You're in oncoming tr
bedros said the following:
> are you guys aware of any document based database open source
> implementation in Python such as strokeDB for Ruby
This question does not belong on this list - this list is for the discussion of
the development of django itself, not for other questions.
--
on would fit better on django-users - the django-developers list is
for development of django itself, not general topics regarding developing with
django.
--
Collin Grady
And ever has it been known that love knows not its own depth until the
hour of separation.
-- K
select in order to get distinct
is absolutely idiotic, so why even suggest it?
.distinct() maps to DISTINCT, and even if in some way its identical, there's no
harm leaving it for the ease of use.
--
Collin Grady
"If you don't want your dog to have bad breath, do what I do: Pour a
David Cramer said the following:
> If that is the case, then annotate would replace GROUP BY, and should
> also be able to replace distinct().
Why would replacing distinct() ever make any sense?
--
Collin Grady
--~--~-~--~~~---~--~~
You received this m
SmileyChris said the following:
> You were using a new feature (albeit the wrong one) so that's not
> really a backwards incompatible issue, is it?
The old ObjectPaginator class is going away though, isn't it? That sounds
like backwards incompatible to me ;)
--
Collin
o my inbox so that they're threaded in.
--
Collin Grady
Measure with a micrometer. Mark with chalk. Cut with an axe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To
Steve Holden said the following:
> If you want considered opinions you would do well to wait longer than 51
> minutes!
You should check the date as well as the time; he sent the first email
*two days* before the second.
--
Collin Grady
BOFH excuse #244:
Your cat tried to eat the
"
may break your code, especially if you're using undocumented internals.
--
Collin Grady
A professor is one who talks in someone else's sleep.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
ed with qsrf, so when it merged, all the new docs were
merged in also, just mixed in with the normal db-api and model-api pages, among
others.
--
Collin Grady
Give a man a fish, and you feed him for a day. Teach a man to fish,
and he'll invite himself over for dinner.
Simon Litchfield said the following:
> Tad ugly though, don't you think? Most platforms/languages/frameworks
> handle the MDY/DMY situation relatively elegantly using some kind of
> setting.
Well I wasn't pitching it as the best solution, just *a* solution :p
--
Collin Gra
_format string, kinda like input_formats.
I haven't tried to use it, but couldn't a DateTimeInput widget with those
fields
solve the problem? It accepts a format arg which is how it will render its data
- combined with the right input_formats in the field, it stands to reason that
would
t.user}}} and is completely separate.
Except request.user is loaded by using a user id stuffed in session, so they
are
definitely tied together right now :)
--
Collin Grady
The reward of a thing well done is to have done it.
-- Emerson
--~--~-~--~~~---
same action, just one being a
variable and the other a string.
--
Collin Grady
Albrecht's Law:
Social innovations tend to the level of minimum tolerable well-being.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
lls - you need to stop trying to use things with double meanings :)
--
Collin Grady
War is peace. Freedom is slavery. Ketchup is a vegetable.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers&qu
vcc said the following:
> How about: {{ foo.__bar__ }} ?
Except you can't use _ as the first character in a template lookup like that,
and the __foo__ naming method is already taken by existing things like __get__,
__contains__, and other such methods/attributes :)
--
Collin Grady
N
Dj Gilcrease said the following:
> On Tue, Mar 4, 2008 at 10:59 AM, James Bennett <[EMAIL PROTECTED]> wrote:
>> Thoughts?
>
> he cant do something like http://dpaste.com/38006/ ?
Should probably be field.label instead of field.label_tag, no? :)
--
Collin Grady
&qu
a variable bar as, say, 3,
and
have a way to do foo.bar where it's really doing foo.3
Hence the filter looking it up by the value of the variable, not as a string.
--
Collin Grady
"Fantasies are free."
"NO!! NO!! It's the thought police"
--~--
Collin Grady said the following:
> The ticket is still "Closed: wontfix" which looks ignored to me :)
It's been pointed out to me that the tone of my messages could come
off a bit rude - I did not intend that, and I apologize if that is the
case.
--
Collin Grady
The r
Malcolm Tredinnick said the following:
> It's hardly been ignored. There was quite a spirited thread last time it
> came up.
The ticket is still "Closed: wontfix" which looks ignored to me :)
--
Collin Grady
Just remember, wherever you go, there you are.
s are open, but we're only focusing on it because it's been
ignored, and it's wasting far more time for the users who constantly hit
the issue due to the poor default setting.
[1] http://code.djangoproject.com/ticket/2891
--
Collin Grady
Matter will be damaged in
this nature should be directed to the django-users list.
This list is for the discussion of the development of django itself, not
on how to do things using it :)
--
Collin Grady
BOFH excuse #101:
Collapsed Backbone
--~--~-~--~~~---~--~~
You received this m
rective...>
>
>
>
> {{ item[0] }} -- {{ item[1] }} -- {{ item[2] }}
> {{ item[3] }}
> {{ item[4] }}
>
These can already be done, just loop over the form, or use the manual
items like {{ form.fieldname }}, {{ form.fieldname.label_tag }},
{{ form.fieldname.errors }}
don't see that this is a backwards incompatible change, myself.
--
Collin Grady
All celebrity voices impersonated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To po
>> to talk to about getting it done?
>
> http://freenode.net/group_registration.shtml
Monthly bump ;)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" gro
rict
allowed characters, but you can't really go the other direction :)
--
Collin Grady
Pause for storage relocation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post
a 'name' field, but nothing works.
[1]http://groups.google.com/group/django-developers/browse_thread/thread/8774da1fd5b77eb1
--
Collin Grady
Anyone can make an omelet with eggs. The trick is to make one with none.
--~--~-~--~~~---~--~~
You recei
wanted to bring it to mind so
maybe it could be dealt with in the new year if someone has some spare
time :)
--
Collin Grady
"If anything can go wrong, it will."
-- Edsel Murphy
--~--~-~--~~~---~--~~
You received this message because
syntax used.
However, with svn, you can inline the login_required right in urls.py;
from django.views.generic import simple
#...
(r'^foo/$', login_required(simple.direct_to_template), info_dict),
--
Collin Grady
Hearts will never be practical until they can be made unbreakable.
---+
| 0 |
+--------+
1 row in set (0.00 sec)
--
Collin Grady
(1) Never draw what you can copy.
(2) Never copy what you can trace.
(3) Never trace what you can cut out and paste down.
--~--~-~--~~~-
AmanKow said the following:
> Any mysql gurus out there with some advice as to how to turn off this
> behavior?
The mysql docs and several things I've found online (including code from
Rails) indicates that simply "SET SQL_AUTO_IS_NULL=0" should work,
unless they broke it
efault
settings.py template that includes a value for ADMIN_MEDIA_PREFIX, I
think you're overestimating how many people would actually be impacted,
since I think most of them would be using a file based on that :)
--
Collin Grady
In space, no one can hear you fart.
--~--~-~--~~-
Mike Scott said the following:
> Is this an approach the bulk of the Django community are interested in
> taking or is it something that we should leave to the things that do it
> best, ie: Apache and the like.
-1 to handling media through Django, that's the job of the webserver
http://code.djangoproject.com/ticket/4102
--
Collin Grady
If condition persists, consult your physician.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this g
required.
Though admittedly, I don't know ModelForms very well yet, so I could be
missing something :)
--
Collin Grady
Earth is a beta site.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developer
Use/setup/etc questions should be directed to django-users, as
django-developers is for the discussion of the development of django
itself :)
--
Collin Grady
Paranoia is heightened awareness.
--~--~-~--~~~---~--~~
You received this message because you are
icit form where you tell it what to save, while the later ones
auto-detect modified fields.
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post t
Don Spaulding said the following:
> into the irc channel (#python on irc.freenode.net) to get the help
I think you mean #django on irc.freenode.net :)
--
Collin Grady
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
pens even when ipython
isn't present, so it should be parsing the normal stuff in that case, right?
--
Collin Grady
A robin redbreast in a cage
Puts all Heaven in a rage.
-- Blake
--~--~-~--~~~---~--~~
You received this message because you are subsc
Jeremy Dunck said the following:
> I feel OK about having to manually call post_save when I override
> Model.save, but adding it now just results in post_save being called
> twice.
Couldn't you just fire your own signal? :)
--
[EMAIL PROTECTED] said the following:
> Not sure why, but when I tried to submit a ticked for this it was
> rejected repeatedly as suspected spam.
If you register for a trac account it should avoid that issue.
--
Collin Grady
Academic politics is the most vicious and bitter form of po
ssage seems clear to me. ;)
It's not meant to do absolutely everything though - trying to hack it to
do something it doesn't is usually harder than writing a really simple
custom view :)
--
Collin Grady
If I had any humility I would be perfect.
-- Ted Turner
--~--~---
Dmitri Fedortchenko said the following:
> Still, the most logical course is to override the save method.
I'd say the more logical course is to stop using admin for this ;)
--
Collin Grady
QOTD:
"If I'm what I eat, I'm
table.
--
Collin Grady
Haste makes waste.
-- John Heywood
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@g
insert chunks of repeating code into their templates or
> write custom inclusion tags.
On the other hand, it's kind of an edge case, since if you're using the
same set of tags for every field, it quite limits the amount of
customized layout you can do :)
--
Collin Grady
--~--~
Please don't post questions to both django-users and django-dev.
Django-users is for general help questions such as this, while
django-dev is for discussion of the development of django itself, not
help questions :)
--
Collin Grady
--~--~-~--~~~---~--~
named URLs, which is already the solution for
multiple routes to the same view :)
--
Collin Grady
When a person goes on a diet, the first thing he loses is his temper.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
as "Item statuss"- is there a way, short
> of renaming my model class, to change how the model name appears in
> the admin?
This question is more suited for django-users - this list is for the
development of django itself, not gener
1 - 100 of 145 matches
Mail list logo