Hi Dmitry,
I think we could have combination of "validators" + "processors":
they will return either exception or cleaned value.
For example,
SomeField(cleaners=[clean_and_validate_email()])
Did you mean exactly this or rather separated SomeField(validators=[...],
processors=[...]) ?
On Mon, Ju
Could we summarize in few words?
| DEBUG (development) | not DEBUG (production)
TEMPLATE_DEBUG | raise TemplateSyntaxError | ?
not TEMPLATE_DEBUG| ? | ?
On Sat, Jul 9, 2011 at 12:53 PM, Tai Lee wrote:
>
>
> On Jul 9, 12:24 pm, Kar
d).
> - They also use C-speed attribute lookup using property() and itemgetter()
>
> I don’t really think that speed of collection (which is built into python
> 2.6+) is much slower than dicts etc.
>
>
> On Jul 4, 2011, at 7:41 AM, burc...@gmail.com wrote:
>
>> Hi P
Hi Paul,
Is it correct that nametuple construction is much slower than for
normal ones or is this true only in older python versions?
On Mon, Jul 4, 2011 at 1:47 AM, paulpmillr wrote:
> Hello.
>
> I've added an implementation for named tuples query set, see
> https://code.djangoproject.com/ticke
Hi Cal,
Why not just put your helper to django snippets?
On Fri, Jun 17, 2011 at 12:25 AM, Cal Leeming [Simplicity Media Ltd]
wrote:
> Okay, fair enough.
> At the very least, would you accept a documentation patch which would guide
> other users who come up against this same problem? Maybe it's
Hi Russell,
and what do you say about showing call stack properly?
The problem is not ViewDoesNotExist itself, but throwing away useful traceback.
If we do instead:
import sys
try:
self._callback = get_callable(self._callback_str)
except ImportError, e:
mod_name, _ =
Hi Mateusz,
I think, adding a link at top, getting you to the end of traceback
would be suitable and would work 96% of times.
e.g, top line with exception type and URL could be a link moving you
to the end of traceback, where the exception happened.
What do you think?
Smart (colored) traceback
On Sat, Apr 2, 2011 at 10:45 PM, Russell Keith-Magee
wrote:
> Secondly, it may be possible to play a trick on the template compiler.
> Jonas Obrist suggested this trick to me at Djangocon (US) last year;
> however, I haven't had a chance to dig into it any more.
>
> The trick goes something like t
Hi Daniel,
I'm not core developer, but I think
http://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces
should be used.
you can use reverse("yournamespace:someview"), and it's also cool to
do things like this in settings.py:
reverse_lazy = lazy(reverse, str)
LOGIN_REDIRECT_
Hi Russell,
On Wed, Dec 1, 2010 at 4:03 PM, Russell Keith-Magee
wrote:
> On Wed, Dec 1, 2010 at 3:55 PM, Mikhail Korobov
> wrote:
>> Just for the record: I'm with Ivan here and think that
>>
>> from django.template.response import TemplateResponse
>> def my_view(request):
>> return TemplateR
Hi Carl, Russell,
I think any settings.py option will help us a lot,
but doesn't the overall solution mean that one would still need to
have the Site model installed even if we use our custom callable?
I'd also like if someone could explain correct interfaces and if we're
going to change them.
Is
Hi Sam,
On Fri, Nov 12, 2010 at 2:45 PM, Sam Lai wrote:
> On 12 November 2010 19:14, burc...@gmail.com wrote:
>> Ah, sorry, tl;dr happened to me in previous message.
>>
>> I used to do the following:
>>
>> alternatives = {'html': '/'
ch requires no changes to existing urls.py
But you have to update all django 3rd party libraries to realize every
url pattern they use can have get_possibilities !
And you now can't pass secondary pattern into django libs that are not
aware of your feature.
So, many-to-many relation between url
Hi Sam,
what's the problem with regexp = '^newitems'+SUFFIX+'$' where
SUFFIX='(/|\.xml|\.json)' ?
And if you need more shortcuts, there are surlex (
http://codysoyland.com/2009/sep/6/introduction-surlex/ ) and
alternatives.
On Fri, Nov 12, 2010 at 11:25 AM, Sam Lai wrote:
> [First timer partici
On Wed, Nov 3, 2010 at 5:18 PM, Jannis Leidel wrote:
> On 03.11.2010, at 12:01, burc...@gmail.com wrote:
>
>> Hi Jannis,
>>
>> On Wed, Nov 3, 2010 at 3:03 PM, Jannis Leidel wrote:
>>> On 27.10.2010, at 09:46, SmileyChris wrote:
>>>
>>>> On
Hi Jannis,
On Wed, Nov 3, 2010 at 3:03 PM, Jannis Leidel wrote:
> On 27.10.2010, at 09:46, SmileyChris wrote:
>
>> On Oct 27, 5:35 am, Łukasz Rekucki wrote:
>>> I would like to bring this up again, because this is something that
>>> would really improve readability of my templates. I'm mainly
>>
Hi Waldemar,
So, we agreed, it's not a problem with django, it's problem with those
3rd-party apps.
Perhaps, you can write emails to their authors now explaining your position?
Actually, it's not a problem that 70% of those apps are broken -- in
other areas, the percent of "wrong" solutions can b
Hi Waldemar,
> A standard for a problem related to Django: How can we have reusable
> apps that come with media files? How is that possible if everyone uses
> a different asset manager?
Ok, this is a problem related to Django, but it shouldn't be solved
with scope of Django because nothing in Djan
Hi Waldemar,
On Fri, Oct 29, 2010 at 4:19 PM, Waldemar Kornewald
wrote:
> Hi Yuri,
>
> On Fri, Oct 29, 2010 at 10:37 AM, burc...@gmail.com wrote:
>> Hi Waldemar,
>>
>> On Fri, Oct 29, 2010 at 2:05 PM, Waldemar Kornewald
>> wrote:
>>> Hi Carl,
>>
Hi Waldemar,
On Fri, Oct 29, 2010 at 2:05 PM, Waldemar Kornewald
wrote:
> Hi Carl,
>
>> As I read it, your option 4 means putting URLs into CSS files that
>> will not resolve correctly if static files are served directly,
>> unmodified, from their source locations (after being collected from
>> a
ns, or
just not covering every possible choice.
I presumed that with making css/main.css you're just copying that
image over to your new location like staticfiles does (or symlinking
images folder).
On Thu, Oct 28, 2010 at 1:29 PM, Waldemar Kornewald
wrote:
> Hi Yuri,
>
> On Thu, Oct 2
Hi Waldemar,
On Wed, Oct 27, 2010 at 9:05 PM, Waldemar Kornewald
wrote:
> 2010/10/27 Mikhail Korobov :
>> Why isn't it fine to have different URL rewriting schemes for
>> different assets bundlers?
>
> OK, sorry for not having explained it well. What I mean is this:
> Imagine this code snippet in
ble with current
> implementation
>
> 4. beautifully API to admin change list customization - as I can see
> it is the only benefit here
>
> Am I correct and the goal is only to change list_display syntax?
Yes, I don't see any other goal either, so I have controversial
feelings
Hi Alex,
Patch is looking good, except few small things.
Wiki docs are also very good, but they are quite incomplete.
Replied to the ticket.
On Tue, Oct 26, 2010 at 11:23 PM, Alex Kamedov wrote:
> Can anybody rewiew the patch?
>
> On Wed, Oct 13, 2010 at 6:35 PM, Alex Kamedov wrote:
>>
>> Hi Al
Hi Gabriel,
looking good!
On Mon, Oct 4, 2010 at 2:59 PM, Gabriel Hurley wrote:
> There is now a ticket and a patch for this, which includes the utility
> method and a rollup of fixes for the aforementioned tickets as
> appropriate. Tests and docs included. Details are in the ticket
> descriptio
Hi everyone,
Anyway, I'd like to see notes from core devs regarding adding such
feature to Admin interface (so please don't say -1 if you think it's
just not mature enough!).
Or maybe all interested parties should work on some kind of
django-admin-extensions instead of improving admin itself.
Ac
Hi Russell,
Few more questions I haven't seen answers yet.
How should urls() work for such views? Should they?
How can self.redirect_to() get current app, namespace and function
name to work if one should use reverse() ?
How should request should be passed for self.render()? Implicitly or explici
Hi Gabriel, everyone,
I'd also like if such function can support option "developer provides
function that knows the current site based on the request".
That means, "get my site" function ultimately needs a backend connector!
I think this might be fixed in the way we did with urlconf:
http://docs.
Hi Tyrion,
Multicomplete have no add item button with popup.
This is usually the hardest thing to implement with such control,
because it's rendered *after* the control.
Was it that hard to subclass widgets as Admin*AutocompleteWidget and
add required css media from jquery.ui to them?
Lots of ot
On Thu, Sep 30, 2010 at 10:27 PM, subs...@gmail.com wrote:
> At that point its not really raw_id_fields, is it? =)
After all, what's the purpose of these fields?
--
Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov,
MSN: bu...@live.com
--
You received this message because you
Hi Subsume,
why not just replace them with some proper implementation of ajax completion ?
http://djangopackages.com/grids/g/auto-complete/
On Thu, Sep 30, 2010 at 12:34 PM, subs...@gmail.com wrote:
> Hello all,
>
> I was browsing the tickets and saw a few of them nagging about some
> restricti
it enough?
Ok, version 3.
settings.py (in version control):
-->8
if DEBUG:
KEY1 = 'value1'
KEY2 = 'value2'
else:
KEY3 = 'value3'
Is that now what you want?
> On Sep 24, 11:09 am, "burc...@gmail.com"
On Sat, Sep 25, 2010 at 12:46 AM, Chuck Harmston
wrote:
> their project (with the help of a programming language). That is powerful.
...But is not very practical for 90% of django users, who have to
invent their own bikes.
> However, that flexibility isn't solely restricted to the method of defin
How it's better from both of the following:
1)
try:
from dev_settings import *
except ImportError:
pass
2)
if DEBUG:
from dev_settings import *
Because to have "project.is_dev" you'll have to write it somewhere already!
It's bootstrapping problem.
On Sat, Sep 25, 2010 at 12:01 AM, Y
Hi everyone,
I think thumbnailing functionality is much closer to django core
rather than to django.contrib, and that is the most important reason
for inclusion.
Django provides ImageField out of the box, but why it doesn't provide
ThumbnailImageField out of the box?
Django provides {% lorem %}
Hi Javier,
after GSoC 2010, we have
http://socghop.appspot.com/gsoc/student_project/show/google/gsoc2010/django/t127230758002
feature at
http://code.djangoproject.com/browser/django/branches/soc2010/app-loading
Not that good syntax, but this solution can help you!
P.S. The more testers we have,
Hi Patryk,
This was done to make Django faster, so it doesn't create connection
to database every time new SQL is executed.
Do you mean you wanted to set up timeouts for idle database connections?
I guess, nobody asked this before.
On Mon, Sep 6, 2010 at 5:20 PM, Patryk Zawadzki wrote:
> On Mon,
On Thu, Sep 2, 2010 at 6:27 PM, Russell Keith-Magee
wrote:
> On Thu, Sep 2, 2010 at 5:04 PM, burc...@gmail.com wrote:
>> Russell,
>>
>> Sorry, we didn't understand each other,
>>
>> You're talking about additional problems for templates with variable
ntax coloring feature,
since I wanted to improve template errors display as well.
On Thu, Sep 2, 2010 at 1:41 PM, Russell Keith-Magee
wrote:
> On Thu, Sep 2, 2010 at 2:30 PM, burc...@gmail.com wrote:
>> Hi Russell,
>>
>> I'd define
>>> {% for templ in template_li
n widget chrome
problems (i.e. different parts of the page might include jquery in
headers).
On Thu, Sep 2, 2010 at 1:00 PM, Russell Keith-Magee
wrote:
> On Thu, Sep 2, 2010 at 1:42 PM, burc...@gmail.com wrote:
>> Hi George,
>>
>> I believe this is a bug since any other erro
Hi George,
I believe this is a bug since any other errors in admin (not related
to inlines) don't pass silently.
Silencing errors should always be documented, especially if error is
silenced when DEBUG is turned on.
So it's either documentation or implementation bug.
By the way, does it show 50
On Sat, Aug 28, 2010 at 10:47 PM, Gabriele Fantini
wrote:
> Hi,
>
> I've just joined this group. The reason is that I've recently
> developed a new django template system (and I'm still working on it)
> and I'm currently using it for my new sites.
> I hope this is the right place to discuss of suc
Hi Arthur,
thanks for your work!
Is any syntax of setting keywords for app instances in INSTALLED_APPS
or somewhere in settings supported now?
On Mon, Aug 23, 2010 at 2:06 AM, Arthur Koziel wrote:
> Hey there,
>
> the GSOC is over and I wanted to give you all a final status report.
>
> The AppC
Hi Thomas,
On Mon, Aug 16, 2010 at 8:12 PM, Thomas Guettler wrote:
> Hi buriy,
>
> http://code.djangoproject.com/ticket/11834
>
> it would be nice, if the CSS could be customized. But how
> to do that?
>
> I think the debug html output should be self contained.
> It should not reference a CSS fil
Hi Falridge,
Russell just said in another thread (
http://http://groups.google.com/group/django-developers/browse_thread/thread/41ef180b93410cd2/cb0510692d8270b5
), that you need to put ticket into RFC if you feel the ticket is
looking good, is working and other prerequisites have been met.
>From
Hi Russell,
Thanks for clarifications of the process, but it seems I explained
some things wrong.
I see some issues have the following problems:
1) second core developer review takes a year,
2) reviewers like me who are not core developers don't know if they
will be able to say something new a ti
Hi Jeremy,
On Sun, Aug 15, 2010 at 11:09 PM, Jeremy Dunck wrote:
> On Sun, Aug 15, 2010 at 2:03 AM, burc...@gmail.com wrote:
>> Hi Russell,
>>
>> On Sat, Aug 14, 2010 at 2:03 PM, Russell Keith-Magee
>> wrote:
>>> On Sat, Aug 14, 2010 at 1:39 PM, burc...@g
Hi Russell,
On Sat, Aug 14, 2010 at 2:03 PM, Russell Keith-Magee
wrote:
> On Sat, Aug 14, 2010 at 1:39 PM, burc...@gmail.com wrote:
>> I had few useful thoughts about changing the way Django development
>> contributions gets accepted and committed -- but all I get from this
>&
Hi Russell,
> However, it does need to have it's UX issues sorted out. The most
> recent substantive comment on the ticket [1] indicates that the patch
> isn't ready for checkin. It also suggests that there are broader
> improvements that may need consideration. To the best of my knowledge,
> nobo
On Fri, Aug 13, 2010 at 7:38 PM, Thomas Guettler wrote:
> burc...@gmail.com wrote:
>> Hi,
>>
>> On Thu, Aug 12, 2010 at 9:54 PM, Thomas Guettler wrote:
>>> Hi,
>>>
>>> a colorized debug page helps a lot. More than 99% of errors
>>> are in
Hi,
On Thu, Aug 12, 2010 at 9:54 PM, Thomas Guettler wrote:
> Hi,
>
> a colorized debug page helps a lot. More than 99% of errors
> are in my code, and not in django's. This patch gives "own" code
> a different color.
>
> It is assigned to "buriy" since 6 months.
>
> http://code.djangoproject.co
Hi Mark,
> For 'polymorphic.polymorphic_model' it would be 'polymorphic'.
Is that correct this didn't work at all (or didn't work properly)
before your patch, and now works properly, so one can put
"polymorphic.polymorphic_model" into their INSTALLED_APPS and
everything would work?
Should one impo
Hi guys,
To support http://code.djangoproject.com/ticket/13476 ,
it'd be great if someone converted current prints to use self.stdout
and self.stderr.
Alternative suggestions are welcome...
On Fri, Jul 16, 2010 at 6:38 AM, Russell Keith-Magee
wrote:
> On Fri, Jul 16, 2010 at 5:39 AM, Gregor Mü
Hi Chris,
you're not 100% correct with this statement:
370 When ``use_natural_keys=True`` is specified, the primary key is
no longer
371 provided in the serialized data of this object since it can be
calculated
372 during deserialization::
since in other old fi
Tom,
HTTP_HOST and other don't solve the multiple-host deployment, and it
is a solution you can do by yourself if you need.
I'd like to see better solution: ability to make reverse work for such URLs.
I think, currently the problem is in the binding time:
The load order is typically the followin
demonstrated with the snippet below) is also possible to support.
>>
>> {% if label %}
>> {{ label }}
>> {% else %}
>>
>> You can just pass in an empty string, like one of the following three
>> examples:
>>
>>
I'd suggest to change both include and with/blocktrans syntax into
more programmer-friendly style:
{% include "part.html" title=obj.title|capfirst main_class="large" %}
This is both more dense, and from quick grasp you can see where are
the delimiters ("as" is not so good for this).
Also I think
On Mon, Jun 7, 2010 at 4:39 PM, Tom Evans wrote:
> Are you proposing to determine the host name and then dynamically
> import settings from that named configuration file? What a kludge -
> that would require having every configuration file for all your sites
> checked out in the same place.
I'm no
Hi Marco,
Please also get a look at http://github.com/buriy/django-containers
Which implements exactly the same, but allows larger chunks:
{% part left%}{% trans "arbitrary contents" %}{% endpart %}.
On Mon, Jun 7, 2010 at 5:03 PM, Marco Louro wrote:
> Hi all,
>
> I'd like to propose adding a ta
On Sat, Jun 5, 2010 at 5:07 PM, Tom Evans wrote:
Hi Tom,
> I'm not going to reply again, Russell has quite clearly ruled this out
> but to reply to these points:
>
> As the project manager, you can already use automatic configuration -
> its python, you can do whatever the heck you like. Your scop
On Sat, Jun 5, 2010 at 3:53 PM, Vinay Sajip wrote:
>
> On Jun 5, 8:08 am, Russell Keith-Magee
> wrote:
>> in which a user will be using your app. Every single time in my life I
>> have made the statement "Nobody will ever want/need to..." I have been
>> proven wrong. Consider it a corollary of Ru
On Sat, Jun 5, 2010 at 2:08 PM, Russell Keith-Magee
wrote:
> On Sat, Jun 5, 2010 at 2:53 PM, burc...@gmail.com wrote:
>> On Sat, Jun 5, 2010 at 9:43 AM, Russell Keith-Magee
>> wrote:
>>> On Fri, Jun 4, 2010 at 11:54 PM, burc...@gmail.com
>>> wrote:
>
On Sat, Jun 5, 2010 at 9:43 AM, Russell Keith-Magee
wrote:
> On Fri, Jun 4, 2010 at 11:54 PM, burc...@gmail.com wrote:
>> Hi Russell,
>>
>> I strongly disagree with your and Adrian vision of whether conventions
>> are good or not.
>> But I won't comment that
s.
They need to install their database into DATABASES and their router
into DATABASE_ROUTERS.
How would you do that?
On Fri, Jun 4, 2010 at 7:57 PM, Russell Keith-Magee
wrote:
> On Fri, Jun 4, 2010 at 3:30 PM, burc...@gmail.com wrote:
>> Hi Russell,
>>
>> My writing style s
On Fri, Jun 4, 2010 at 7:04 AM, Russell Keith-Magee
wrote:
> On Thu, Jun 3, 2010 at 11:19 PM, burc...@gmail.com wrote:
>> Hi all,
>>
>> I've written a prototype, and put it on
>> http://github.com/buriy/django-configurator.
>> It has few good design decis
If you don't want to change anything in settings.py, you can do
autodiscover(), update_options() and update_back_settings() manually
in any moment of time.
Exceptions, raised in configuration modules, are isolated. If one of
your conf files failed to load, console message will appear, or,
Hi Dj Gilcrease,
I've almost implemented kinda similar proposal (draft here:
http://groups.google.com/group/django-developers/browse_thread/thread/b7339d8577567d95
),
and what worries me, is that in current Django you just can't do
autodiscover of django contribs in settings.py because of circula
Hi all,
> - a media files path resolver -- following a similar directory structure as
> the app templates loader (/media/ vs. /templates/)
> - build_static -- a mangement command that'll collect media files from apps
> from various locations using the media files path resolver and uses a file
>
Hi everybody,
Everyone loves the way templates are discovered in django.
No one loves settings.py that much.
This is proposal on how to improve situation significantly.
Configuration facility is suggested in addition to django.conf.settings.
Configuration is going to be put into conf/ directory
I bet context['page'] is different each time, but the tag
initialization is called only once.
So it's probably your programming error, not a bug in django.
On Tue, May 11, 2010 at 1:29 AM, patrick91 wrote:
> I've this problem too
>
> I created a custom template tag that renders info about a model
Hi Apreche,
I don't want to be rude, but you probably wanted to send this to
django-users, it is the place full of users of django framework who
should be aware of your problem and this point of confusion (hm, or
should it be blog post so everyone can google on their problem and
find your message?
Hi Russell, Jacob,
What do you think, is it good idea to write django-based bug tracker
as a trac replacement?
As we all know, Django would be a perfect fit for such project!
Current Trac templates & layouts can be used for prototyping the project.
On Sun, Apr 25, 2010 at 6:15 PM, Russell Keith-
Hi Jeremy,
And what about information on the page if the patch commits cleanly,
and if all tests pass after applying patch?
Not just sending email to the patch author, but making it visible to everyone.
On Fri, Apr 23, 2010 at 10:04 AM, Jeremy Dunck wrote:
> Commiters and triagers,
> I've gone
Hi Waldemar, Alex,
why you didn't do different threads for the different issues? :\
Regarding getting .filter() to work, I suggest we will use explicit
and implicit indexes, something like this:
class User(models.Model):
username = models.CharField(max_length=200, db_index=True) #
db_index=Tr
Hi Nick,
I don't like your application creation syntax (why using dict-based
DSL instead of class-based?), but
I like how you approach the overall problem.
More than that, you have shown you do understand all the problems
you're going to solve, and that you have design skills required for
solution
On Thu, Apr 8, 2010 at 3:27 PM, Dagvadorj Galbadrakh
wrote:
> Thanks for review.
>
> On Thu, Apr 8, 2010 at 3:15 PM, burc...@gmail.com wrote:
>>
>> May I have few questions.
>> 1) And what if foo.gsoc has taiwan submodule already?
>
> There will be certain conv
On Thu, Apr 8, 2010 at 2:56 PM, Dagvadorj Galbadrakh
wrote:
> Good idea. Let INSTALLED_APPS be iterable, and let Django deployment
> do its job based on the configuration. Little to say though:
>
> INSTALLED_APPS = (
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.cont
Hi all,
On Thu, Apr 8, 2010 at 12:55 AM, Waldemar Kornewald
wrote:
> On Wed, Apr 7, 2010 at 5:22 PM, Alex Gaynor wrote:
>>> Other issues that spring to mind:
[...]
> Well, you might be able to quickly adapt the MongoDB backend to GAE
> (within GSoC time constraints) due to their similarity. Anyw
Hi Yuvi Panda,
As far I can remember, Django GSoC goal is to make Django itself stronger.
Not to make just one more external project.
And, actually, I don't see a point of ripping out Django ORM.
I see a point in ripping out templates or forms, so they don't need to
use settings.py...
but ORM is
79 matches
Mail list logo