Re: start using less (and bootstrap!)

2012-02-02 Thread Alex Gaynor
On Thu, Feb 2, 2012 at 5:01 PM, Adrian Holovaty wrote: > On Thu, Feb 2, 2012 at 2:49 PM, Sean Brant wrote: > > Is this up somewhere public? I've been fighting the urge to do this as > > well. Using django-compressor with less on Heroku is a non-starter

Re: Why recommend to include project name in settings?

2012-02-10 Thread Alex Gaynor
On Fri, Feb 10, 2012 at 10:57 AM, Carl Meyer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 02/10/2012 08:47 AM, Adam "Cezar" Jenkins wrote: > > On Fri, Feb 10, 2012 at 9:50 AM, Carl Meyer > > wrote: > > > >

Re: Revisiting multiline tags

2012-02-24 Thread Alex Gaynor
On Fri, Feb 24, 2012 at 10:01 AM, Daniel Moisset wrote: > On Fri, Feb 24, 2012 at 6:01 AM, Stephan Jaensch wrote: > >> This thread contains 6 people expressing support for this change, and 2 > against (a BDFL, a core developer) -- and you can add me to

Re: Revisiting multiline tags

2012-02-24 Thread Alex Gaynor
FLs is to keep those decisions consistent. Glyph Lefkowitz's keynote from DjangoCon this year really drives this home. > > On Feb 24, 10:15 am, Daniel Moisset <dmois...@machinalis.com> wrote: > > On Fri, Feb 24, 2012 at 12:12 PM, Alex Gaynor <alex.gay...@gmail.com> &g

Re: call_command; add *.pyc and *.pyo files to commands list

2012-02-29 Thread Alex Gaynor
On Wed, Feb 29, 2012 at 6:56 PM, John Paulett wrote: > Related tickets are #14952 and #12206. #14952 includes a possible > patch, but marked as wontfix. > > However, I'm definitely +1 on adding support for pyc/pyo support for > management commands. I understand the arguments

Re: Tagging 1.4 django release in Subversion

2012-03-26 Thread Alex Gaynor
On Mon, Mar 26, 2012 at 9:00 PM, Łukasz Rekucki wrote: > On 27 March 2012 02:44, Reinout van Rees wrote: > > On 26-03-12 18:13, Florian Apolloner wrote: > >> > >> > >>I'm also intrigued how you have a release tarball before you have > >>tagged

Re: Dropping django.utils.simplejson

2012-03-29 Thread Alex Gaynor
On Thu, Mar 29, 2012 at 6:07 PM, Łukasz Rekucki wrote: > Alex's comment on ticket #18013 reminded me of this. Is there any > reason not to get rid of the Django's version of simplejson now that > Python 2.6 always has the json module? > > I see three options here: > > 1)

Re: Dropping django.utils.simplejson

2012-03-29 Thread Alex Gaynor
On Thu, Mar 29, 2012 at 10:06 PM, Alex Ogier wrote: > So in the process of removing simplejson I realized it's not strictly > true that we no longer need to bundle it: if someone uses 2.6+ but has > a 'json' module with a different interface sitting in front of the > system

Re: auth.user refactor: the profile aproach

2012-04-05 Thread Alex Gaynor
On Thu, Apr 5, 2012 at 1:02 PM, Adrian Holovaty wrote: > 2012/4/5 Ian Lewis : > > I'm curious though how the admin fits into your ideas. If you wanted to > use the > > admin, would you have to use a User model that has and or supports all > the > > cruft

Re: Proposed Field API additions

2012-06-07 Thread Alex Gaynor
On Thu, Jun 7, 2012 at 12:17 PM, Andrew Godwin wrote: > Hi everyone, > > As part of my planning for adding schema alteration/migrations into > Django proper, I need to make a few changes to Fields to allow for > better serialisation of model definitions (pretty much a

Re: Proposal: Add some extensibility / decoupling features to Django templates

2012-06-24 Thread Alex Gaynor
On Sun, Jun 24, 2012 at 2:50 PM, Jacob Kaplan-Moss wrote: > On Sat, Jun 23, 2012 at 7:17 PM, Yo-Yo Ma > wrote: > > Without changing any of the existing functionality or settings in Django, > > refactor the template system to use an ``Environment``

Re: I think adding a "first" method to the QuerySet be useful.

2012-07-02 Thread Alex Gaynor
On Mon, Jul 2, 2012 at 9:27 PM, Maxime Haineault wrote: > One of the common pitfall I come across way to often with novices is > something like this: > > def getFirstUser(): > return User.objects.all()[0] > > It looks innocuous and often wont raise any exceptions

Re: Python 3 - style question

2012-08-10 Thread Alex Gaynor
On Fri, Aug 10, 2012 at 3:45 PM, Simon Meers wrote: > > On 10 August 2012 18:56, Vinay Sajip wrote: > >> I think Option 2 is better, for the reasons you state. > > +1. And it's not too entangled to be easily stripped out if/when > Python 2 support is

Re: new syntax for management commands

2012-08-12 Thread Alex Gaynor
On Sun, Aug 12, 2012 at 4:51 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Sun, Aug 12, 2012 at 6:32 PM, Florian Apolloner > wrote: > > Hi, > > > > > > On Sunday, August 12, 2012 2:22:58 AM UTC+2, Russell Keith-Magee wrote: > >> > >> I'll agree that it

Re: Breaking out localflavor

2012-08-16 Thread Alex Gaynor
On Thu, Aug 16, 2012 at 9:38 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Fri, Aug 17, 2012 at 5:26 AM, Adrian Holovaty > wrote: > > I'd like to move all Django localflavor code into a separate package, > > distributed separately from Django the framework.

Re: Breaking out localflavor

2012-08-16 Thread Alex Gaynor
On Thu, Aug 16, 2012 at 9:42 PM, Jacob Kaplan-Moss wrote: > On Thu, Aug 16, 2012 at 3:38 PM, Adrian Holovaty > wrote: > > You mean like a magic import thing, right? > > Well, Python *does* have some namespace package support stuff. It's > something of a

Re: Streaming HttpResponse revisted. Any core devs, please take a look if you can :)

2012-08-20 Thread Alex Gaynor
On Mon, Aug 20, 2012 at 12:19 PM, Anssi Kääriäinen wrote: > > > On 20 elo, 18:39, Tai Lee wrote: > > I'd like to re-visit the discussion surrounding #7581 [1], a ticket about > > streaming responses that is getting quite long in the tooth now,

Re: ORM refactoring, part 2

2012-08-25 Thread Alex Gaynor
On Sat, Aug 25, 2012 at 12:35 PM, Anssi Kääriäinen wrote: > I have done some more ORM refactoring work. I thought it would be a > good idea to post a summary of what is going on. > > First, I haven't committed the utils.tree refactoring patch I was > planning to commit

Re: Auto-import support for models and other objects in shell

2012-08-28 Thread Alex Gaynor
On Tue, Aug 28, 2012 at 2:40 PM, Phill Tornroth wrote: > 'Ello. > > I'm gauging support for a tiny new feature, or at least a refactoring of > an internal API that will allow the feature to be developed without code > duplication. I'd like to stop typing import statements

Re: iPython behaves strangely only with Django shell

2012-08-29 Thread Alex Gaynor
On Wed, Aug 29, 2012 at 9:37 AM, Jacob Kaplan-Moss wrote: > This looks like some sort of error in your environment; I can't reproduce > it:: > > $ ./manage.py shell > In [1]: import decimal > > In [2]: class F(object): >...: d = decimal.Decimal('0') >

Re: Schema Alteration - Review needed!

2012-09-17 Thread Alex Gaynor
On Mon, Sep 17, 2012 at 3:59 PM, Andrew Godwin wrote: > Hi all, > > I have now, I believe, got a working, feature-complete schema alteration > branch ready to go. It has full support for PostgreSQL, MySQL, and SQLite, > and follows the rough design principles I emailed the

Re: ORM refactoring, part 2

2012-09-25 Thread Alex Gaynor
On Tue, Sep 25, 2012 at 7:25 AM, Jacob Kaplan-Moss wrote: > On Tue, Sep 25, 2012 at 3:23 AM, Anssi Kääriäinen > wrote: > > I'd like to postpone these to early next month so that I have more > > time to help in reviews and pushing some new features in.

Re: URL dispatcher slow?

2012-10-11 Thread Alex Gaynor
On Thu, Oct 11, 2012 at 6:52 AM, Daniel Sokolowski < daniel.sokolow...@klinsight.com> wrote: > I absolutely agree with: if we were looking for speed we wouldn't use > python at all (period). > > Speak for yourself. Alex -- "I disapprove of what you say, but I will defend to the death your

Re: save() method could return the object

2012-10-12 Thread Alex Gaynor
On Fri, Oct 12, 2012 at 6:36 AM, Yo-Yo Ma wrote: > +1 > > A lot of people are overriding ``save`` and not returning anything, but > this isn't going to hurt them (ideally, they should already be returning > the result of ``super(``, but nobody does). > > > On Friday,

Re: save() method could return the object

2012-10-12 Thread Alex Gaynor
On Fri, Oct 12, 2012 at 6:40 AM, Chris Wilson wrote: > On Fri, 12 Oct 2012, Marijonas Petrauskas wrote: > > There already exists create method that does exactly what you need:obj = >> SomeModel.objects.create(name=**'foo', age=42) >> > > OK, thanks, that appears to be

Re: Add a "split" field to a model causes problems

2012-10-23 Thread Alex Gaynor
On Tue, Oct 23, 2012 at 5:11 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > > On Tue, Oct 23, 2012 at 6:52 PM, Andrew Ingram wrote: > >> Hi all, >> >> This one stung me today. Basically as part of an event (calendar) app, I >> have functionality for splitting

Re: Call for use cases of metrics in django core

2012-11-01 Thread Alex Gaynor
On Wed, Oct 31, 2012 at 9:52 PM, Eric Holscher wrote: > A couple obvious places: > > Latency to backend systems. So, any time that I call out to my cache > backend or database, keep track of round trip latency of those. > > Full system latency. So, From the time a request

Re: proposal: post-collectstatic signal

2012-11-10 Thread Alex Gaynor
What's the use case? Alex On Sat, Nov 10, 2012 at 8:48 PM, Justin Holmes wrote: > Currently, our only built-in management signal is post-syncdb. > > I propose (and, notwithstanding objection, will build) > post-collectstatic. > > Is this reasonable? Is there another,

Re: GitHub migration

2012-11-25 Thread Alex Gaynor
One major improvement I've seen is that when there's a small issue in a commit (such a typo) a contributor often leaves an inline comment and it can get fixed directly. This is a great workflow for simple issues. Alex On Sun, Nov 25, 2012 at 3:46 PM, Aymeric Augustin <

Re: Proposal: Composite Foreign Keys

2012-11-29 Thread Alex Gaynor
No, there is no such solution in the codebase. Are you aware of a patch we should be reviewing on this issue? Alex On Thu, Nov 29, 2012 at 2:43 PM, Ron Smith wrote: > So here we are 4 years later, version 1.5 is about to be released and we > still don't have a solution

Re: First request - Modify django.core.management.color with settings option

2012-12-19 Thread Alex Gaynor
I too think a setting is inappropriate for this, I'm also a little skeptical of an env var, is this not a bug with PyCharm? Alex On Wed, Dec 19, 2012 at 1:08 PM, Florian Apolloner wrote: > I dislike a setting for this, an optional environment variable would make > more

Re: Relative path support for TEMPLATE_DIRS and others in settings.py (django ticket 694)

2013-01-01 Thread Alex Gaynor
I would like to *strongly* object to adding any notion of root path (and relative paths with it) to Django. This would be furthering the notion that a django project is a thing. It's not. You don't hear twisted people talking about the twisted project root, or any other python package. The notion

Re: Database pooling vs. persistent connections

2013-02-18 Thread Alex Gaynor
As far as I know, the MySQL timeout time is configurable, and the default is 8 hours. Alex On Mon, Feb 18, 2013 at 2:30 PM, Karen Tracey wrote: > Just a couple of random quick thoughts: > > Will persistent connections be able to ensure that "bad connections" (e.g. > those

Re: clarification of API backwards-compatibility policy

2013-02-19 Thread Alex Gaynor
I agree, backwards compatibility for an API should be opt-in (via documenting), not opt-out (via naming). Alex On Tue, Feb 19, 2013 at 1:56 PM, Carl Meyer wrote: > Hi, > > I was just about to tell someone on IRC that Django's > backwards-compatibility policy only applies to

Re: Database pooling vs. persistent connections

2013-02-19 Thread Alex Gaynor
I don't really see what point such an option would serve. This is *not a connection pool*. Currently Django uses one open connection per thread, this simple keeps them open between requests. That means before: you needed O(concurrent threads) connections, now you need O(total active threads)

Re: Switch to database-level autocommit

2013-03-01 Thread Alex Gaynor
+1 from me. Here's a patch to add autocommit to MySQL: https://github.com/django/django/pull/857 FWIW: any sort of scheme where a transaction is kept open all request (including a transaction that only ever reads), will cause you serious pain if you're trying to do migrations on MySQL with

Re: Proposal: deprecate and remove django.contrib.comments

2013-03-07 Thread Alex Gaynor
Jumpin' on the +1 train. Choo, choo! Alex On Thu, Mar 7, 2013 at 9:04 AM, Donald Stufft wrote: > On Mar 7, 2013, at 11:48 AM, Jacob Kaplan-Moss wrote: > > > Hi folks -- > > > > This one's simple: I'd like to deprecate `django.contrib.comments`, > >

Re: Proposal: deprecate and remove django.contrib.comments

2013-03-07 Thread Alex Gaynor
It's not like /dev/null'ing it erases it from the annals of history. I don't see what the point of creating an un-maintained repo is, if someone decides they want to maintain it at some later point it's pretty trivial to resurrect from VCS history. Alex On Thu, Mar 7, 2013 at 4:29 PM, Michael

Re: Using EXISTS instead of IN for subqueries

2013-03-25 Thread Alex Gaynor
I have no idea how EXISTS performs on MySQL, however I can say that IN + subqueries on MySQL are so atrocious that we outright banned that where I work, so I don't see how it could be worse :) Alex On Mon, Mar 25, 2013 at 8:37 AM, Anssi Kääriäinen wrote: > On 25

Re: Using EXISTS instead of IN for subqueries

2013-03-26 Thread Alex Gaynor
For what it's worth, SQL2011 does define OFFSET, finally. Alex On Tue, Mar 26, 2013 at 5:00 PM, Petite Abeille wrote: > > On Mar 26, 2013, at 4:19 PM, Michael Manfre wrote: > > > Maybe someday the non-standard LIMIT/OFFSET keywords will get added

Re: django.utils.simplejson + stdlib json

2013-04-11 Thread Alex Gaynor
I basically agree with what Bob said on the ticket, it's unclear to me from your email how this manifests, other than trying to use something from the standard library with simplejson, which is obviously wrong. Alex On Thu, Apr 11, 2013 at 5:51 PM, Jeremy Dunck wrote: > I've

Re: django.utils.simplejson + stdlib json

2013-04-11 Thread Alex Gaynor
When doing what? What do I need to do to trigger this? Alex On Apr 11, 2013 6:16 PM, "Jeremy Dunck" <jdu...@gmail.com> wrote: > If a user of django has simplejson installed, django itself will use both > the stdlib and simplejson. > > On Apr 11, 2013, at 5:

Re: Changing deferred model attribute behavior

2013-04-25 Thread Alex Gaynor
This sounds like a reasonable request, I don't yet have an opinion on API or anything. One tiny thing I'd like to note though, "change DeferredAttribute to find all *other* DeferredAttributes". I don't think `finding` is the right way to think about it, a `DeferredAttribute` with loadall semantics

Re: Changing deferred model attribute behavior

2013-04-25 Thread Alex Gaynor
Sorry, I misunderstood the original request. Yes, you're right Anssi and Adrian, finding them on demand is reasonable. Alex On Thu, Apr 25, 2013 at 4:59 PM, Anssi Kääriäinen <anssi.kaariai...@thl.fi>wrote: > On 25 huhti, 20:08, Alex Gaynor <alex.gay...@gmail.com> wrote: >

Re:

2013-05-02 Thread Alex Gaynor
I'll also second that, in addition to the methodological flaws I see, they don't do any testing of running Django under PyPy, which has seen significant speed boosts in the wild. Alex On Thu, May 2, 2013 at 10:50 AM, Jacob Kaplan-Moss wrote: > On Thu, May 2, 2013 at 1:34

Re: first() and last(), earliest() and latest()

2013-05-16 Thread Alex Gaynor
Querysets definitely support indexing. Alex On Thu, May 16, 2013 at 2:51 PM, Alex Ogier wrote: > QuerySets don't support indexing. I'm not entirely sure why, but I > think the reason is to encourage more efficient database usage, since > naive usage of indexing would

Re: Cursor closing or reuse: am I missing something?

2013-05-17 Thread Alex Gaynor
Right now Django absolutely does not close all cursors, if you look at django/db/models/sql/compiler.py def execute_sql (sorry, going from memory here) you'll see this. It'd be good if it did. There used to be some crazy stuff around reading chunks and emitting those, now that I believe Anssi has

Re: Migrations, commands and syncdb

2013-05-30 Thread Alex Gaynor
I'm broadly +1 on deprecating syncbd, it's possibly the most inaccurately named thing in all of Django (hint: it doesn't sync anything). Alex On Thu, May 30, 2013 at 11:03 AM, Andrew Godwin wrote: > Hi everyone, > > I'm starting to plan out the commands for the new

Re: Hybrid Property request

2013-07-16 Thread Alex Gaynor
I'm going to suggest that a virtual field and a materialized field are slightly different concepts, and porblaly have different internals. The former requires some hooks in the ORM, the latter is really just some nice wrapping around existing hooks. In any event there's probably some overal with

Re: Posting to the wrong list (was: Re: Need Django Developer urgent)

2009-05-08 Thread Alex Gaynor
On Fri, May 8, 2009 at 1:49 PM, Ned Batchelder wrote: > Add the word "core" to make the first sentence, "Discussion group for > Django core developers". > > Not that that will make them read the description, but... > > --Ned. > > Jacob Kaplan-Moss wrote: > > On Fri, May

[GSOC] Multi-DB Status Update

2009-05-08 Thread Alex Gaynor
Hello All, I've spent the past week at EuroDjangocon, and as such I've had the opportunity to discuss multi-db stuff with a bunch of very smart people. Simon and I resolved the issue of DSNs vs. dicts (as long as Simon can dynamically add a new DB he's happy). Otherwise nothing has changed.

[GSOC] Multi-DB Status Update - Week 0

2009-05-16 Thread Alex Gaynor
Hi all, I officially began work this week (for some value of officially that doesn't include the official GSOC project starting :) ). I've had good success in getting a lot of the ground work laid, specifically I got the connections object in, updated a bunch of management commands for a

Re: Site object in django.contrib.contenttypes.views.shortcut

2009-05-16 Thread Alex Gaynor
On Sat, May 16, 2009 at 6:18 PM, Sergey Belov wrote: > > Hello! > > We must not try to select Site object from DB in > django.contrib.contenttypes.views.shortcut if no Site model is > installed. > Can somebody pay some attention to this ticket, review and may be > commit

Re: DjangoAdmin - Permission in custom modules

2009-05-20 Thread Alex Gaynor
On Wed, May 20, 2009 at 9:40 AM, Júlio Cesar wrote: > > Hello Guys! > Firstly, sorry for the English errors than came in. English is not my > home language. > > I have a simple problem here: On my custom AdminModules, there's > permissions at level-group to view the my

Re: BaseForm deepcopy() leaving datastructures linked to old objects?

2009-05-21 Thread Alex Gaynor
On Thu, May 21, 2009 at 12:35 AM, Margie wrote: > > In the process of doing some debugging into the django source, I've > come across something in the source that maybe someone can explain. > I think this may be a subtle source bug, or at least something that > may

Re: BaseForm deepcopy() leaving datastructures linked to old objects?

2009-05-21 Thread Alex Gaynor
ng here ... not sure if this is the intention or if > the way I am using it has issues. > > I'll try fixing up the reference to point to the newly copied > ModelChoiceField in my area and see what that does. > > Margie > > > > > On May 21, 6:01 am, Alex Gaynor <alex.g

[GSOC] Multi-DB Week 0 Update

2009-05-22 Thread Alex Gaynor
Hey all, GSOC is officially scheduled to start tomorrow (my time), however I've take the liberty of getting quite a jump on my work (as I described last week). During this week I got the save using parameter and using queryset method, these are fairly untested however. The reason for this was

Re: [GSOC] Multi-DB Week 0 Update

2009-05-22 Thread Alex Gaynor
And I didn't actually finish writing before sending grand... So the issue is one of the remaining 1.1 tickets, http://code.djangoproject.com/ticket/9964 , has patches that rewrite basically all of the transaction handling code. Can anyone comment on whether those patches are likely to be

Re: FK Autocomplete Widget [GSoC '09 Admin UI Improvements]

2009-05-26 Thread Alex Gaynor
On Tue, May 26, 2009 at 7:05 PM, Ulrich Petri wrote: > > > > > I don't know - maybe my needs are unusual. It's definitely not your > > standard blog app ... so if I am too much on the outskirts for this to > > be something that we consider in the development community, I can > >

[GSOC] Multi-DB Status Update - Week 1

2009-06-01 Thread Alex Gaynor
Hey All, Sorry about the delayed updated, I got busy on Friday and then I had the dash through the weekend. During the last week I implemented multiple database support for transactions (which was necessary to solve the postgres DDL problems I mentioned last week). I got this ton and have

Re: New JSON-RPC Handler

2009-06-03 Thread Alex Gaynor
On Wed, Jun 3, 2009 at 12:07 PM, BenW wrote: > > I just posted a JSON-RPC handler I've been working with on the wiki: > > http://code.djangoproject.com/wiki/Jsonrpc > > I'd be interested in feedback from anyone doing async javascript with > Django over RPC. > > Thanks! > >

[GSOC] Multi-DB Status Update - Week 2

2009-06-05 Thread Alex Gaynor
Hey all, This has been a productive week for multiple database support in Django. Firstly I got all my original work into Django's SVN repository, in more-or-less atomic commits (they weren't perfect, but unfortunately most of the early work was anything but linear). Secondly all tests are now

Re: Session framework improvements - ticket 3304

2009-06-09 Thread Alex Gaynor
On Tue, Jun 9, 2009 at 10:52 AM, Michael Radziej wrote: > > On Tue, Jun 09, Russell Keith-Magee wrote: > > > > > On Tue, Jun 9, 2009 at 8:56 PM, Rodolfo wrote: > > > > > > About session in Django: >

Re: Session framework improvements - ticket 3304

2009-06-10 Thread Alex Gaynor
gt; warnings.warn('httponly is supported in python > 2.6') > > If is a good idea, i submit a new patch. > > > Rodolfo > > > On 6/9/09, Michael Radziej <m...@noris.de> wrote: > > > > On Tue, Jun 09, Alex Gaynor wrote: > > > >> A patch that on

Re: Accessing dictionaries in templates in a sorted manner

2009-06-11 Thread Alex Gaynor
On Thu, Jun 11, 2009 at 4:09 AM, Tom Evans wrote: > > On Wed, 2009-06-10 at 06:54 -0700, Adrian Rogers wrote: > > On Jun 9, 11:09 am, Tom Evans wrote: > > > Hi all > > > > > > I was struggling to turn a typical template dictionary iteration

[GSOC] Multi-DB Update

2009-06-15 Thread Alex Gaynor
Hey all, Sorry about the delayed update, wanted to touch base with my mentor on a few small issues before firing this off. I spent last week augmenting ManyToManyFields to use a full Model internally, so we can remove some hard coded SQL. I've been doing this on a separate branch since it's a

Re: Django Developer -- Job in Washington, DC -- Urgent Need

2009-06-16 Thread Alex Gaynor
On Tue, Jun 16, 2009 at 4:32 PM, Christy wrote: > > I have a Django/Python/Perl Developer position that I'm working on and > have had a heck of a time finding anyone who is familiar with Django. > Any help would be appreciated and if you know of anyone who is using >

Re: Additional Function to Admin

2009-06-19 Thread Alex Gaynor
On Fri, Jun 19, 2009 at 8:43 AM, John D Giotta wrote: > > My first django application is a very basic tool for modifying data. I > have no need to a public interface since its all administration stuff. > > The application will allow the user to create/edit/save data into a >

[GSOC] Multi-DB Status Update

2009-06-20 Thread Alex Gaynor
Hey all, This past week I mostly finished off the m2m-refactoring work this week as well as fixing a few bugs Russ spotted in the multi-db code. For this next week I think I'm going to be working almost exclusively on docs, as Russ's wife just had a baby so I think spamming him with source code

Re: Question: how to output Image in html-page

2009-06-21 Thread Alex Gaynor
On Sun, Jun 21, 2009 at 4:05 PM, Vlad(L) wrote: > > But I unfortunately cannot still make. > My problem: that in the Template the picture was displayed > For example, I load in Django Admin article, I write title, anonce, > body and I load Image... It is necessary For me,

Re: Submitting a new django.contrib.localflavor

2009-06-22 Thread Alex Gaynor
On Mon, Jun 22, 2009 at 10:17 AM, Yuval Adam wrote: > > I created a new local flavor (ticket: > http://code.djangoproject.com/ticket/11350) > and attached the forms.py file > > How do I get this submitted now? > > Thanks, > - Yuvak > > > > Hi, First, thanks for your work.

Re: Submitting a new django.contrib.localflavor

2009-06-22 Thread Alex Gaynor
this? Can you > point me to an existing test for a local flavor so I have a reference > to work with? > > Cheers, > - Yuval > > On Jun 22, 7:27 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > > On Mon, Jun 22, 2009 at 10:17 AM, Yuval Adam <uvd...@gmail.com> w

Re: custom filter on join

2009-06-23 Thread Alex Gaynor
On Tue, Jun 23, 2009 at 3:11 AM, nevvkid wrote: > > Hello together, > i wonder if it's possible to add a custom filter to a join "ON". E.g. > a query: > > SELECT * FROM `table` INNER JOIN `table_attribute` ON (`table`.`id` = > `table_attribute`.`lamp_id` AND foo=bar); > >

Re: Django Test Suite - Result Set Ordering

2009-06-26 Thread Alex Gaynor
On Fri, Jun 26, 2009 at 2:17 PM, Nathan Auch [Sybase] wrote: > > I'm working on getting the SQL Anywhere backend to pass the test suite > for the current Django development branch. I've run into a number of > tests that are failing intermittently due to the order in which

Re: [gsoc2009-testing] Windmill Runners Kicking it up a Notch

2009-06-27 Thread Alex Gaynor
On Sat, Jun 27, 2009 at 1:22 AM, Kevin Kubasik wrote: > So, up until now, most of the work on windmill hasn't exactly been 'tester > ready' in that, if you didn't you my exact incantation of settings, luck, > module versions and love, you didn't get very far. While I still

Re: [gsoc2009-testing] Windmill Runners Kicking it up a Notch

2009-06-29 Thread Alex Gaynor
On Mon, Jun 29, 2009 at 11:20 AM, Russell Keith-Magee < freakboy3...@gmail.com> wrote: > > On Sat, Jun 27, 2009 at 2:22 PM, Kevin Kubasik wrote: > > Should windmill tests default to non-isolated/non-transactional DB > behavior? > > Basically, we are providing the means for

[GSOC] Multi-DB Update

2009-06-29 Thread Alex Gaynor
Hey all, This past week unfortunately wasn't super eventful. I did some final dead code elimination on my m2m-refactor branch, I was able to kill about 150 additional lines of code that no longer needed, there are a few small changes I need to make to remove some quadratic behavior that occurs

Re: Global custom tags

2009-07-02 Thread Alex Gaynor
On Thu, Jul 2, 2009 at 1:03 PM, Diogo Baeder wrote: > Hi there, > > Is there a way to create a custom tag that can be used in different > applications at the same time, so that I could make the call on the > "base.html" template? The custom tag, here, is a blog subjects

[GSOC] Multi-DB Status Update

2009-07-04 Thread Alex Gaynor
Hey all, This week was fairly productive. I got a lot of good docs done this week, as well as implementing the using option in the inner Meta class. For this next week I'm writing up a detailed account of the last API changes that multi-db will need. Specifically with resepect to

Re: wondering if this is a bug, wanted to ask here before i file it... quotes around datetime in sql

2009-07-13 Thread Alex Gaynor
On Mon, Jul 13, 2009 at 11:00 AM, stuff4ash wrote: > > using mysql. > > model: only the times are relevant. > > class Time(models.Model): >start = models.DateTimeField("zeitbeginn") >end= models.DateTimeField("zeitende", > blank=True,null=True) >user

Re: wondering if this is a bug, wanted to ask here before i file it... quotes around datetime in sql

2009-07-13 Thread Alex Gaynor
On Mon, Jul 13, 2009 at 11:25 AM, ashwoods <ashwo...@gmail.com> wrote: > > but django does call this sql, or does it call something else? > how can i use or see what django really calls? > > so there is no need to report this as i understand it? :) > > thx, ash > >

[GSOC] Mutli-db Status Update

2009-07-14 Thread Alex Gaynor
Hey all, Sorry for the slightly delayed update. This past week I worked on completing the work on my m2m-refactor branch. Specifically I worked though the review notes from my mentor, as well as ensuring all changes are completely backwards compatibly. In addition I put together a backwards

[GSOC] Multi-DB Update

2009-07-19 Thread Alex Gaynor
Hey all, This week I made the final major API changes, updating the get_db_prep_* methods to recieve connection, and work in a backwards compatible method. I also fixed the bug with using __in=queryset.using('other_db'), right now it raises an exception, but in the future I'll update it to just

[GSOC] Multi-DB Status Update

2009-07-24 Thread Alex Gaynor
Hey all, I didn't get a ton of code written this week, however I have a very clearly laid out plan for how to handle custom Query classes now. It's my goal to get the code written and done this weekend while I'm at PyOhio (if you're in the Columbus area please come on out, it promises to be a

Re: Filter on is-a test

2009-07-26 Thread Alex Gaynor
On Sun, Jul 26, 2009 at 8:05 PM, Russell Keith-Magee wrote: > > On Sun, Jul 26, 2009 at 10:22 PM, Forest Bond > wrote: >> Hi, >> >> I have a simple implementation that allows filtering based on whether or not >> a >> particular row represents

Re: IDE for Django and Ext JS

2009-07-28 Thread Alex Gaynor
The django-developers mailing list is for the development of django itself. Please use the django-users mailig list. Alex On Jul 28, 2009 1:18 PM, "Amir Habibi" wrote: Hi All, What development environment do you suggest for Django and Ext JS based large projects? Is

[GSOC] Altering the signature of Field.db_type and Field.get_db_prep_*

2009-07-29 Thread Alex Gaynor
Hey all, In the process of my work on adding multi-db support to Django it has become necessary to alter the signatures of Field.db_type and Field.get_db_prep_(save, value, lookup). These methods are both documented in the custom-fields documentation, so I believe we should strive to maintain

Re: NASA using Django for NEBULA

2009-07-30 Thread Alex Gaynor
On Thu, Jul 30, 2009 at 10:53 AM, mhanb...@teksystems.com wrote: > > Hello Django devs! > > We're supporting NASA on their NEBULA project and they're looking for > Python / Django experts to join their team here in Mountain View, CA. > > If you're interested, let me know

Re: [GSOC] Altering the signature of Field.db_type and Field.get_db_prep_*

2009-07-30 Thread Alex Gaynor
On Thu, Jul 30, 2009 at 8:58 AM, Dj Gilcrease wrote: > > On Thu, Jul 30, 2009 at 5:55 AM, Russell > Keith-Magee wrote: >> Of course, Alex and I may have missed an obvious alternative solution >> - or a use case that isn't solved by either approach.

Re: [GSOC] Altering the signature of Field.db_type and Field.get_db_prep_*

2009-07-30 Thread Alex Gaynor
On Thu, Jul 30, 2009 at 6:05 PM, TiNo<tin...@gmail.com> wrote: > On Fri, Jul 31, 2009 at 01:01, Alex Gaynor <alex.gay...@gmail.com> wrote: >> >> Russ:  My primary concern with adding a new method is that it will >> signficantly complicate the impleme

Re: [GSOC] Altering the signature of Field.db_type and Field.get_db_prep_*

2009-07-30 Thread Alex Gaynor
On Thu, Jul 30, 2009 at 7:16 PM, Russell Keith-Magee<freakboy3...@gmail.com> wrote: > > On Fri, Jul 31, 2009 at 7:01 AM, Alex Gaynor<alex.gay...@gmail.com> wrote: >> >> On Thu, Jul 30, 2009 at 8:58 AM, Dj Gilcrease<digitalx...@gmail.com> wrote: >>>

Re: [GSOC] Altering the signature of Field.db_type and Field.get_db_prep_*

2009-08-01 Thread Alex Gaynor
On Sat, Aug 1, 2009 at 12:10 AM, Russell Keith-Magee wrote: > > On Fri, Jul 31, 2009 at 8:34 AM, Jacob Kaplan-Moss wrote: >> >> Hi Alex, Russ -- >> >> I see some good pros and cons of each your suggestions. Just to throw >> some more fuel on the fire,

Re: Long-term direction for shortcuts

2009-08-02 Thread Alex Gaynor
On Sun, Aug 2, 2009 at 8:05 PM, Brent Hagany wrote: > > Hello Django devs, > > The issue of making shortcuts better (and decreasing the number of > imports in views.py files) was brought up at DjangoCon, and now that > 1.1 is out the door, I would like to spark some

Re: Feeds as views.

2009-08-03 Thread Alex Gaynor
On Mon, Aug 3, 2009 at 8:40 AM, Russell Keith-Magee wrote: > > On Mon, Aug 3, 2009 at 8:37 PM, zellyn wrote: >> >> [Hi folks. This is a re-post, now that 1.1 has been released.] >> >> Django's contrib.syndication app feels different from normal views, >>

Re: IntegrityError is not more an attribute of model?

2009-08-03 Thread Alex Gaynor
On Mon, Aug 3, 2009 at 9:02 AM, dnedbaylo wrote: > > Hey All, > > I have a model with unique field. Here is what i get when i try to > save record with not-unique field value: > from psdj.ksel import models try: > ...   m = models.Keyword(phrase='insurance') >

Re: Long-term direction for shortcuts

2009-08-04 Thread Alex Gaynor
On Tue, Aug 4, 2009 at 4:52 AM, Simon Willison wrote: > > On Aug 3, 3:53 am, chairface wrote: >> Also, it is only a single video, but that video >> is a pretty good resource for the topic of Django's future.  It was >> the topic of the entire

[GSOC] Multi-DB Update

2009-08-04 Thread Alex Gaynor
Hey all, This week I implemented the metaclass based solution for backwards compatibility in the Field API that Jacob suggested last week. Then I implemented by first stab at a solution to the Oracle/backend with custom query object problem. However, I don't have access to any of the the DBs

Re: Multi-DB Update

2009-08-05 Thread Alex Gaynor
it out in an env with both Oracle and >>another DB that would be most appreciated > > I have access to Oracle database (one of my Django projects uses > Oracle backend). > > Send testing instructions, plz. > > Roman Vorushin > /// > > On Aug 4, 10:09 pm, Ale

Re: Template Caching

2009-08-06 Thread Alex Gaynor
On Thu, Aug 6, 2009 at 8:15 AM, Jacob Kaplan-Moss wrote: > > Hi Mike -- > > Ah, it looks like my strategy of "wait for someone else to reply and > hope that he sums up my feelings so that I don't have to bother" has > worked perfectly. Thanks, Russ! > > [IOW: I agree

Re: App Engine support

2009-08-10 Thread Alex Gaynor
On Mon, Aug 10, 2009 at 7:19 AM, Waldemar Kornewald wrote: > > Hi, > now that 1.1 is out we can finally discuss App Engine support. Is > anyone planning to work on this feature or working on it for real or > are there just announcements that someone might consider doing it?

  1   2   3   4   5   6   >