Re: Ability to migrate other applications

2015-09-08 Thread Andrew Godwin
till don't have an order relative to each other, so if we change the code in Django that does order resolution even slightly it could result in different operation orders or even different "final" rendered models. Andrew On Mon, Sep 7, 2015 at 5:16 PM, Shai Berger wrote: > O

Re: Optimizing before applying migrations?

2015-09-11 Thread Andrew Godwin
so on. There's nothing blocking it from what I know - it shouldn't be too hard to take the loaded operation set and run the optimiser on it before it's applied. Andrew On Fri, Sep 11, 2015 at 2:38 AM, Christian Hammond wrote: > Hi everyone, > > We're working on upgrading

Re: An issue with Django 1.8.6 support for south migrations

2015-11-07 Thread Andrew Godwin
I think if the fix is easy, we should continue to support them past 1.7, since we're retaining syncdb support. However, if it's crazy complicated, it's likely not worth it. Andrew On Wed, Nov 4, 2015 at 11:59 PM, David Filipovic wrote: > I have initially created

Re: An issue with Django 1.8.6 support for south migrations

2015-11-07 Thread Andrew Godwin
That's an excellent point, Shai - if there are migrations they might be essential to the app functioning. I think in that case we should not have them work on 1.7 and up, and encourage people to send PRs to the apps moving the directory name if it would work with syncdb. Andrew On Sat,

Re: why django 1.9 migrations are essential?

2015-11-11 Thread Andrew Godwin
; for correctness reasons, you really shouldn't be anyway. There was some work on adding a "MIGRATE" option to be stuck in the TEST key for databases, but it's not landed yet and wouldn't be till 1.10 anyway. Andrew On Wed, Nov 11, 2015 at 12:59 PM, Tim Graham wrote: > Hi, ha

Re: Non-atomic migrations in Django?

2015-11-24 Thread Andrew Godwin
I also agree this looks sensible - I think South even had an attribute like this on the migration class, it just never got ported over. +1 On Tue, Nov 24, 2015 at 8:19 AM, Marc Tamlyn wrote: > +1 to idea and API. I've wished I had this recently - even if it's just so > I can check up on the prog

Re: Migration "rebase", or just an "undo" that works with conflicts

2015-11-30 Thread Andrew Godwin
target migrations as well, potentially? Andrew On Mon, Nov 30, 2015 at 7:33 PM, Silvio wrote: > I've had this situation come up too. It would indeed be very useful. > > Django South had something vaguely related: > > http://south.readthedocs.org/en/latest/tutorial/part3.html

Re: Migration "rebase", or just an "undo" that works with conflicts

2015-12-02 Thread Andrew Godwin
e the twin-tip check on the migrate command if you're asking to reverse one of those tips; that should solve that issue. Andrew On Wed, Dec 2, 2015 at 2:48 PM, Shai Berger wrote: > On Tuesday 01 December 2015 08:40:34 Andrew Godwin wrote: > > You can undo a migration manually using

MOSS Award to Django

2015-12-11 Thread Andrew Godwin
ngo, as well as hopefully release a pluggable app version that will run on 1.8 and 1.9 - I have some plans around how to do that effectively, but they involve hitherto unforged paths around Django and how we package dependencies, so I can't say we'll get there 100%. Andrew -- You re

Re: MOSS Award to Django

2015-12-16 Thread Andrew Godwin
an at-most-once delivery style, which will work for operations that aren't critical, or if people build their own retry logic (but at that point, maybe use Celery). Andrew On 16 Dec 2015 07:32, "Shai Berger" wrote: > On Wednesday 16 December 2015 08:08:59 Markus Holtermann wrot

Re: MOSS Award to Django

2015-12-16 Thread Andrew Godwin
involved". > I don't agree; I think it's more "do you have enough workers to handle this". Channels makes all workers serve all requests, so if you're doing e.g. video encoding you can't segregate it from request handling. However, you could have multiple c

Re: MOSS Award to Django

2015-12-17 Thread Andrew Godwin
approaches (I've been prototyping bits of this for years); this approach ended up being the nicest design and the one I have the most confidence in that we can scale and shard to large work volumes. Andrew On Thu, Dec 17, 2015 at 10:30 AM, Samuel Bishop wrote: > I'm uncertain how po

Channels integration plan, first draft

2015-12-17 Thread Andrew Godwin
asing part of it as a separate codebase, though still under the Django umbrella. Andrew -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from

Re: Channels integration plan, first draft

2015-12-17 Thread Andrew Godwin
was basically unused by anyone these days, but hey, happy to be proved wrong. Do we have any usage numbers on it to know if we'd need it for a new standalone server to implement? It's really not hard to add it into the request format, just thought it was one of those CGI remnants we m

Re: Channels integration plan, first draft

2015-12-17 Thread Andrew Godwin
wrote: > On 12/17/2015 11:50 AM, Andrew Godwin wrote: > > - I thought SCRIPT_NAME was basically unused by anyone these days, but > > hey, happy to be proved wrong. Do we have any usage numbers on it to > > know if we'd need it for a new standalone server to implemen

Re: Channels integration plan, first draft

2015-12-17 Thread Andrew Godwin
over is slightly less verbose than normal HTTP and needs less work to use, but it's not a big saving) Andrew On Thu, Dec 17, 2015 at 9:01 PM, Anssi Kääriäinen wrote: > Is the idea a large site using classic request-response architecture would > get the requests at interface servers,

Re: Channels integration plan, first draft

2015-12-17 Thread Andrew Godwin
m to the client). It does mean going a bit beyond the normal dictionary interface for a message to allow a way to stream the contents of a key rather than just read it, but I think that would be easy-ish to do. Andrew On Thu, Dec 17, 2015 at 11:13 PM, Sam Willis wrote: > Hi, > > To s

Re: Channels integration plan, first draft

2015-12-18 Thread Andrew Godwin
sts. I think Django absolutely has to adapt to the modern web environment and move away from just rendering templates when browsers request them, and this to me is part of that. If there are other solutions to the same problems I think we should consider them as well; I've just not run across any

Re: Channels integration plan, first draft

2015-12-18 Thread Andrew Godwin
eople will want to turn on, and that provides a lot of value in exchange for a slight round-trip performance hit - my goal is sub-5ms, and preferably sub-3. If it starts being 10/20/30 milliseconds of cost, then we'll have to change our approach until it's acceptable. If you don't want

Re: Channels integration plan, first draft

2015-12-18 Thread Andrew Godwin
ct handling are basically indistinguishable from the outside. I'll work on another draft that more clearly highlights WSGI and direct request handling in the "keeping Django the same part" - hopefully that will help make things clearer. > > Andrew, I thank you for your patience

Re: Channels integration plan, first draft

2015-12-18 Thread Andrew Godwin
On Fri, Dec 18, 2015 at 5:28 PM, Anssi Kääriäinen wrote: > On Friday, December 18, 2015, Andrew Godwin wrote: > >> >> >> On Fri, Dec 18, 2015 at 3:44 PM, Mark Lavin wrote: >> >>> > You seem to be assuming I'm here to foist a brand new middle layer

Re: Channels integration plan, first draft

2015-12-18 Thread Andrew Godwin
ven channel in both the redis and database backends, which is a good rough metric, though in systems like this I do prefer to know queue time (i.e. how long are items on the queue before consumption) - that's a lot harder though. Might be a good idea to carve out a channel_length() API on backe

Re: MOSS Award to Django

2015-12-21 Thread Andrew Godwin
On Mon, Dec 21, 2015 at 6:05 AM, Samuel Bishop wrote: > Hi Andrew, > > Thanks for the detailed response. I'm glad to hear you have tried a few > different ways to implement this, and having read through your reply, and > the channels docs again, I have more questions :-)

Re: MOSS Award to Django

2015-12-27 Thread Andrew Godwin
documentation and so forth. Any radical change that might end up happening would have to happen in slow steps over many releases, and only with the buy-in of the community - I don't even fully have that yet, and I don't expect to get it until Channels can show that it works, is backwards-compa

Re: Error email flooding on high traffic production sites

2010-09-30 Thread Andrew Wilkinson
email for each distinct one. It's definitely better than the current situation though. It also relies on you having a cache backend set up. Unfortunately I never did get time to write unittests for it, and unittesting something like this is quite hard because of the timeout involved. Hope this i

Re: #6735 -- Class based generic views: call for comment

2010-10-01 Thread Andrew Godwin
ing Django shipping a base view which just calls a request method, and then another base view which inherits from that and does method-based dispatch - we shouldn't add too many classes, else it'll be a documentation nightmare, but that seems a sensible split. Andrew -- You received

Re: #6735 -- Class based generic views: call for comment

2010-10-01 Thread Andrew Godwin
#x27;t do that unless someone thought to pass those variables in initially in the method signature. Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com

Re: #6735 -- Class based generic views: call for comment

2010-10-04 Thread Andrew Godwin
e people here seen to want to have that kind of purity at the expense of usability - dammit, Jim, I'm an engineer, not a mathematician. Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send emai

Re: #6735 -- Class based generic views: call for comment

2010-10-04 Thread Andrew Godwin
t anything actually sensitive in there). (There's also the issue of whether you apply context processors to the JSON replies, and so forth, but that's going even further down the rabbit hole) Andrew -- You received this message because you are subscribed to the Google Group

Re: Ticket #5416 -- assertNumQueries

2010-10-11 Thread Andrew Godwin
ded code; as that gist demonstrates, we can use their functionality now, just without the syntactic sugar that "with:" provides, and then when we eliminate 2.4 support, move over to using them internally as well; in the meantime, we bring potential joy and happiness to the significant number

Re: Smart extends

2010-10-15 Thread Andrew Godwin
e on the ModelAdmin class to point to a different template which itself inherits from admin/change_list.html, rather than having two with the same name, which could be potentially confusing. Andrew -- You received this message because you are subscribed to the Google Groups "Django develop

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Andrew Godwin
and I think it's a mature enough implementation that we're better off landing it and getting feedback than putting it in a special corner and bikeshedding a bit more. I'd rather get feedback from the userbase at large, which I think is where we'll really learn what needs cha

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-20 Thread Andrew Godwin
, ' %} ', 'endfoo ', ''] (the key here is asserting the even number of quote marks, something a regular language is capable of expressing) It's a bit early in the morning for in-depth regexes, but that seems to show that it is _probably_ possible. Wheth

Re: #13772 design decision needed

2010-10-24 Thread Andrew Godwin
d we don't change current behaviour. Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+uns

Re: Function views to CBV refactor adventure.

2010-10-24 Thread Andrew Godwin
the current way as well). As for the naming problem, I always, always name my views in the URLconf - I find that using the class name is just fragile, since you can't easily rearrange views into a package. The docs are already encouraging this approach, but perhaps we should make it clearer in

Re: prepopulated_fields javascript error since r14123

2010-10-27 Thread Andrew Godwin
.X backport, or the main trunk version? Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to d

Re: prepopulated_fields javascript error since r14123

2010-10-29 Thread Andrew Godwin
On 27/10/10 12:15, Simon Meers wrote: > On 27 October 2010 19:40, Andrew Godwin <mailto:and...@aeracode.org>> wrote: > > On 27/10/10 07:01, Simon Meers wrote: > > Has anyone else found that using prepopulated_fields in > admin.ModelAdmin since r

Re: Settings for a pure Oracle multi-db Django test suite setup

2010-11-08 Thread Andrew Kurinnyi
': { 'ENGINE': 'django.db.backends.oracle', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'XE', # Or path to database file if usi

Charfields and Admin and None, oh my.

2010-11-10 Thread Andrew Godwin
#x27;s an excessively ugly thing to add one more option/subclass, especially when the resulting error is quite user-unfriendly ("This value must be unique" error beside a non-required, blank textbox). Thoughts? Andrew -- You received this message because you are subscribed to the Goog

Re: Django POST Broken

2010-11-10 Thread Andrew W
I just ran into this same issue, but it wasn't Django, the answer lived in nginx.conf try checking the client_max_body_size M; in your server{ On Nov 10, 9:42 am, john <185...@gmail.com> wrote: > Hello, > > I'm working on a Django project. I'm running on cloudservers hosting, > with nginx/uwsgi a

Re: Charfields and Admin and None, oh my.

2010-11-11 Thread Andrew Godwin
uot;" for empty strings since the start, which can be a divisive issue amongst the developers I know. Something to chalk up for the fabled Django 2, perhaps. Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post

Re: RFC: Add a "needinfo" state to triaging

2010-11-14 Thread Andrew Godwin
7;t even cause more work for responders as they have to change the state back - it just does. I'm +1 on adding this, but that's definitely biased by the fact that it makes the two Tracs I use on a regular basis more similar. Andrew -- You received this message because you are subsc

Re: RFC: Add a "needinfo" state to triaging

2010-11-17 Thread Andrew Godwin
On 15/11/10 01:35, Russell Keith-Magee wrote: On Sun, Nov 14, 2010 at 5:22 PM, Andrew Godwin wrote: On 13/11/10 16:52, Daniel Moisset wrote: Hi, while working on the sprint today doing triaging we noticed that a lot of tickets were in the "Unreviewed" state becaus

Re: Deprecating ADMIN_MEDIA_PREFIX

2010-11-21 Thread Andrew Godwin
ADMIN_MEDIA_PREFIX setting > will be removed, and the admin media will be assumed to be served at > STATIC_URL/admin. > > Any objections to this plan before I put it into action? > > Carl > +1 from me; sounds like a good plan. The whole admin-media-special-case-thing has been

Raising more than just 404

2010-12-03 Thread Andrew Godwin
personal projects, and I figured it was better to ask people while the idea was fresh in my mind. (Also note the above implementation plan is very rough. Criticism of it is very welcome.) Andrew -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Raising more than just 404

2010-12-04 Thread Andrew Godwin
wanted to see what people's initial reactions were (namely, "class based views makes this a more real issue"). Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develo

Re: Raising more than just 404

2010-12-04 Thread Andrew Godwin
ame. We could always just call them Http409 or something, but I see that as less readable (not everyone immediately knows 409 is a conflict, for example). Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this gr

Re: Feedback required: #14799 -- Problem with setting up test databases

2010-12-04 Thread Andrew Godwin
hat's something I'm happy to look at when I start doing the migration-ish merging early next year - it may not need that many changes at all, as opposed to this, so I'm firmly +1 with (4) as the "it's an extra setting, but literally nobody will use it" option. And

Re: django.contrib.admin and null=True

2010-12-08 Thread Andrew Godwin
ikely to occur. My suggested workaround is to add a pre_save hook that manually fixes the fields up. Someone I know has one that runs against all saves on all models, and auto-corrects any "" values in nullable fields to None before saving them. Andrew -- You received this message

Re: Django support added to BuiltWith!

2010-12-20 Thread Andrew Ingram
rks gradually move towards best practices it'll become increasingly difficult to tell them apart. This is definitely a good thing, I am generally rather pleased if I can deploy something without someone knowing what server side tools are in use. - Andrew Ingram -- You received this me

Paginating ListViews in CBV

2011-01-04 Thread Andrew Godwin
sistent? I can't see that really breaking any code written in the past few weeks, as people will be looking for the page object anyway. For reference, the offending lines: if paginator.num_pages > 1: ... return (paginator, page, page.object_list, True) else: return (None, None,

Re: CBV FormView get_form_kwargs() doesn't.... when request.method == "GET"

2011-01-12 Thread Andrew Godwin
se class, and get the functionality on the views you want. I'm -1 on the generic views accepting GET for form submissions, for the GET-modifying-data-is-bad reasons above. That doesn't, however, stop you from using it as a mixin, and if you find any design issues with mixing in new behavio

Ticket #15124: BooleanField should not use False as default (unless provided)

2011-01-19 Thread Andrew Badr
Models with a BooleanField are instantiated with that field's value set to False if no default or initial value is provided. Instead, like most other fields, the field's initial value should be set to None. This None should be left uncoerced when attempting to save the instance, so attempting to sa

Re: Ticket #15124: BooleanField should not use False as default (unless provided)

2011-01-22 Thread Andrew Badr
e desired behavior. We just don't know whether they serve hot dogs. I've been there once but it was a long time ago. #6755 seems unrelated to this issue ("Model Inheritance doesn't work in the admin"). Haven't tested on other databases. Andrew -- You received this me

Re: Composite primary keys

2011-03-15 Thread Andrew Godwin
mpt this you'll need to have a decent knowledge of SQL, the various database backends, and at least the usage of the Django model layer - this is an area where several have tried and not got very far, so it takes a little bit of determination and a willingness to delve into some of the more

Summer of Code 2011: students wanted!

2011-03-21 Thread Andrew Godwin
k English as a first language. *That's* not a problem; we're not going to be grading you! However, we need to see that you can communicate clearly, and so basic proofreading is a must. Next steps -- If you've read all that -- and congratulations, by the

Re: [GSoC Proposal] Customizable Serialization

2011-03-22 Thread Andrew Godwin
just want to customise how the serialiser outputs DateTimeFields, or tell it how to serialise my new, shiny, custom field - does your proposal have any way to override things on a field type basis? Those are my initial reactions on the first reading of the proposal with your change to authenticat

GSoC Student and Mentor Applications Open

2011-03-29 Thread Andrew Godwin
rejected. Mentors, make sure you're also entered at the top of the wiki page (you also have longer to sign up - until April 22nd, when we'll need to have assigned all successful projects mentors): http://code.djangoproject.com/wiki/SummerOfCode2011 Andrew -- You received this message b

Re: HBase backend support

2011-03-30 Thread Andrew Godwin
se issues, I look forward to seeing a GSoC proposal. Don't expect it to get through without some serious debate, however. Andrew [1]: http://code.djangoproject.com/browser/django/branches/soc2010/query-refactor -- You received this message because you are subscribed to the Google Groups

GSoC 2011: Only two days left until the student proposal deadline!

2011-04-06 Thread Andrew Godwin
11am on the West Coast, so don't think you've got all Friday! There's been some good discussion already this year, and we're looking forward to your proposals! Andrew -- You received this message because you are subscribed to the Google Groups "Django dev

GSoC 2011: Less than 24 hours to submit your proposal on Melange

2011-04-07 Thread Andrew Godwin
t; you're allowed to update the submitted proposal right up until the deadline, so it doesn't need to be perfect on the initial submission. If you don't submit your proposal in time, you'll be unable to take part in this year's GSoC. Happy proposal-writing. Andrew

Accepted GSoC Projects Announced

2011-04-25 Thread Andrew Godwin
me then; we'll hopefully have weekly updates from each student, so you know how they're getting on. It looks to be another good summer for Django! Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

MultipleObjectMixin and Pagination

2011-06-30 Thread Andrew Ingram
take advantage of it for free. This is only one use case, but I'm sure there are more. I'm happy to try and come up with a patch if there's some agreement on this. The FormSet views I've developed can be seen here: https://github.com/AndrewIngram/django-extra-views/blob/maste

Re: MultipleObjectMixin and Pagination

2011-07-01 Thread Andrew Ingram
trying to think of a more straightforward test case that isn't tied to my ModelFormSetView. - Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/djan

Re: Decision for ticket #6362 - Remove blank spaces with strip when validating the data

2011-07-09 Thread Andrew Ingram
On 9 Jul 2011, at 10:44, Sam Lai wrote: > I concur. The consensus seems to be shifting towards a 'strip' flag > though (defaulting to false), and I'm +1 on that. That would make it > explicit, minimise repetitive boilerplate code and also make it less > likely to accidentally forget to strip a fie

Re: Splitting out admin functionality

2011-10-10 Thread Andrew Ingram
this ticket: https://code.djangoproject.com/ticket/16432), but it's fairly feature-complete and could be a good starting point. - Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to d

Ability to get values using HTTP GET in admin changelist_view

2011-10-14 Thread Andrew Martin
Hello, It would be of great help to me if the ability to pass variables through HTTP GET were possible within the admin changelist view. For example, I use Django admin tools to manage security advisories that come from various sources. I need the ability to create a "meeting view," which essent

django-updates group broken?

2008-06-06 Thread Andrew Durdin
often run into errors that result in a failed import of a view module, and the tracebacks don't show the original fault without this patch. Cheers, Andrew. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Django releases

2008-06-08 Thread Andrew Durdin
rted from trunk. I'm really looking forward to moving to 1.0 when it's released (possibly even when there's a release candidate), particularly for QSRF and the full unicode support throughout. Speaking of sprints, are there any plans

Re: Proposal: user-friendly API for multi-database support

2008-09-10 Thread Andrew Godwin
This way, most people will be satisfied by the shipped functions (which are somewhat analogous to generic views, in a very very roundabout way) and people who Love Control™ can roll their own. Just my two cents. I'll scuttle back to migrations libraries now. Andrew --~--~-~--~~--

Denormalisation, magic, and is it really that useful?

2008-09-22 Thread Andrew Godwin
o-extensions (which involves keeping the horrid hacks in there), into a separate app but with patches to core to make it less hackish (i.e. more signals), or add it as my 1.1 pony with the proviso that I'm happy to write all the code. Andrew --~--~-~--~~~---~--~--

Re: Denormalisation, magic, and is it really that useful?

2008-09-23 Thread Andrew Godwin
ggregate denormalisation will work with any future extended aggregate support, but if the field just takes a normal QuerySet, that might Just Work™. Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django deve

Re: Denormalisation, magic, and is it really that useful?

2008-09-23 Thread Andrew Godwin
ually end up with the best of both worlds, and get people using more efficient schemas first, which they can then easily bake into triggers when they come along, and if their DB supports them. Andrew Steve Holden wrote: > This appears to be a proposal to re-implement triggers inside Djang

Re: Denormalisation, magic, and is it really that useful?

2008-09-25 Thread Andrew Godwin
to change the field names, too, CopiedField especially is a little clunky. Andrew --~--~-~--~~~---~--~~ 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@

Denormalisation Magic, Round Two

2008-10-26 Thread Andrew Godwin
, and return a result - when you use these, though, you have to also specify the column type of the resulting column. Docs for all this will be written in time. So, what does everyone think? Useful, or just too much of an edge case? Reasonable patch, or badly implemented? Andrew [1]: As an examp

Re: Denormalisation Magic, Round Two

2008-10-27 Thread Andrew Godwin
since detecting these is far more efficient. I'd love to see any proposal for how Aggregates should look, as my current incarnation really isn't too django-ish. I personally like MirrorFields (now on their third name, more welcomed) as I have them now, but then I would, since I invented t

Re: Problem with object values in Django 1.0

2008-10-31 Thread Andrew Cetnarskyj
thanks Dan I had used tabs instead of spaces, I will subscribe to django-users for future problems Andy On 31 Oct 2008, at 14:46, Dan Fairs wrote: > > Sorry - should also have mentioned that this should be on django- > users. > > On 31 Oct 2008, at 14:28, Opel wrote: > >> >> I have been fol

Re: Denormalisation Magic, Round Two

2008-11-10 Thread Andrew Godwin
;count") i.e. the same call, but different syntax. I might just go open a ticket for this soon anyway to get it recorded properly, and at the very least release the code as a standalone module - it's written so it can work like that anyway. Andrew --~--~-~--~~~-

Re: Denormalisation Magic, Round Two

2008-11-13 Thread Andrew Godwin
#x27; thing, though. However, I like the filter()-style syntax, I'll need to see if that's easy enough to roll in so it still makes sense... Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Denormalisation Magic, Round Two

2008-11-23 Thread Andrew Godwin
model needs updating (for example, if you know that the field "planet" on the just-saved object is a foreign key to your model). Still, I certainly like the idea of having a decorator syntax; I'm going to go away and see if I can persuade my AggregateField to turn inside-out like that

Re: Denormalisation Magic, Round Two

2008-11-25 Thread Andrew Godwin
and more, especially as we can then just build 'AggregateFields' on top of them. Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email

Re: Denormalisation Magic, Round Two

2008-11-28 Thread Andrew Godwin
e for my denorm code I'd be happy to port over (it has the wonderful set of tricks you need to unit test with a whole fake app, while still keeping database settings) if you want. Andrew Christian Schilling wrote: > i spend some time implementing my idea above (still just a proof of > co

Re: Denormalisation Magic, Round Two

2008-11-29 Thread Andrew Godwin
est 'suite' is hardly finished yet (one test...), but it does at least do a pretty thorough use check of some of the more basic scenarios. ./manage.py test denorm does indeed test and come out OK, though - it even brought up an infinite recursion bug I also had in my code, which I've

Re: Denormalisation Magic, Round Two

2008-11-30 Thread Andrew Godwin
up a trac instance somewhere... I have a Trac setup around on my server for South, so if you want I'll kick that slightly and install the Git plugin... Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: Django Migrations

2009-01-03 Thread Andrew Godwin
of the migration's .py file), but we never followed it through; I'm beginning to think it might be worth it, since many people know and sometimes even love the good old ORM. Also, Russ, #7835 would be very welcome, and reduce the need for my (somewhat hackish) unit test suite that does inde

Re: GSoC - denormalization model field proposal

2009-03-21 Thread Andrew Godwin
y more than that, but it > doesn't look like there's enough work here for a GSOC project. There was a more promising solution than mine, as well - http://github.com/initcrash/django-denorm/tree/master - where you just write a function and stick a decorator around it to make it w

Re: Schema Evolution

2009-04-27 Thread Andrew Godwin
common problem, and we could easily come up with a neutral page to point people at all their options, rather than leaving them to find that wiki page on their own. Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Django 1.0 and Django SVN side by side?

2009-04-29 Thread Andrew Smith
Hello Sorry, this is probably a silly question but I'm fairly new to python/django. Is it possible to have django 1.0.x and the svn version installed side by side and if so, how do I achieve this? The reason I ask is that I'm developing production code against 1.0.x. I've found a bug in that vers

Re: Django 1.0 and Django SVN side by side?

2009-04-29 Thread Andrew Smith
Thanks, and sorry for posting to the wrong list! 2009/4/29 Alex Gaynor > > > On Wed, Apr 29, 2009 at 6:23 PM, Alex Gaynor wrote: > >> >> >> On Wed, Apr 29, 2009 at 6:08 PM, Andrew Smith wrote: >> >>> Hello >>> >>> Sorry, this is pr

Tests for TestCase

2009-07-20 Thread Andrew Fong
ven't been able to locate them. Any pointers on where I can find these? Or do they not exist? Much thanks! -- Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

Re: Tests for TestCase

2009-07-20 Thread Andrew Fong
True, but since I need to write a test anyway to make sure things are working, I might as well include it. Just wanted to make sure there wasn't already a pre-determined spot to insert it. On Jul 20, 7:57 pm, Russell Keith-Magee wrote: > On Mon, Jul 20, 2009 at 9:45 PM, Andrew Fo

Re: 1.2 Proposal: Extra template tags and filters

2009-08-11 Thread Andrew Gwozdziewycz
On Tue, Aug 11, 2009 at 10:50 AM, Richard Davies wrote: > > Hi all, > > With 1.1 out of the door (great!), here's a thought for 1.2... > > I often end up writing the same couple of template tags and filters. I > think some of these are general enough and useful enough that they > should be conside

Re: Anyone have ideas on #16550 - custom SQL before/after syncdb?

2013-05-20 Thread Andrew Godwin
onald linked would be a lot easier to emulate, so I'm not that against it. Andrew On Sat, May 18, 2013 at 7:15 PM, Donald Stufft wrote: > There's already a patch on the ticket tracker for a pre_syncdb signal, and > yesterday I started updating it and modifying it a bit as I

Migrations, commands and syncdb

2013-05-30 Thread Andrew Godwin
uot;migrate" in its default configuration, and would do exactly what you would expect (whereas with South now, and with option 2, syncdb doesn't do enough). Andrew -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubs

Re: Migrations, commands and syncdb

2013-05-30 Thread Andrew Godwin
e present for an app, it will always create new databases by running through them from the very first migration to the latest one. The proposed "squash" feature helps stop any potential long setup times (from hundreds of migrations) by allowing you to replace 100 old ones with a few new

Re: Digest for django-developers@googlegroups.com - 17 Messages in 3 Topics

2013-05-31 Thread Andrew Godwin
d to a non-migrated app, but not vice-versa. Andrew On Fri, May 31, 2013 at 8:22 AM, Anssi Kääriäinen wrote: > On 05/31/2013 09:55 AM, Mantas wrote: > >> Quoting >> django-developers@**googlegroups.com(2013-05-31 >> 07:39:24) >> >>> From: Andrew God

Re: Migrations, commands and syncdb

2013-05-31 Thread Andrew Godwin
igrations for tests - as I believe we should be making people do this as a general case - and if you want, having the data migration operations have an option you can pass where they no-op during tests, something like: operations = [ Python( """ for author

Re: Migrations, commands and syncdb

2013-05-31 Thread Andrew Godwin
o be useful and how fast the migration optimiser/compressor that runs on the squashes will be. Andrew On Fri, May 31, 2013 at 1:38 PM, Marc Tamlyn wrote: > I have generally not kept my migrations so they always work from scratch > for similar reasons Luke said - Data migrations are often de

selected admin actions for a user, who is owner of one of the tenants in a multi tenant django crm app

2013-06-19 Thread Andrew Stewart
Hi Group, could someone please help me with - http://stackoverflow.com/questions/17184386/providing-admin-actions-to-group-members-in-a-multi-tenant-django-crm-applicatio Thanks! -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubs

Merging Schema Alteration branch

2013-08-09 Thread Andrew Godwin
to merge it now as merging changes back in from master is becoming trickier and trickier. You can see the pull request here: https://github.com/django/django/pull/376 I'd be aiming to merge this early next week, dependent on feedback. Andrew -- You received this message because you a

<    1   2   3   4   5   6   7   >