Re: RFC: django.template refactoring (#7806)

2008-09-19 Thread Andreas
What really annoys me is all the talk about how important it is that its designed for non-programmers but if i recall corectly jacob said on djangocon that they never aimed for making django a general purpose webframework, they just made something that fit their needs. With that said, how many dja

Re: Proposal: New transaction API with multiple databases

2009-04-06 Thread Andreas
I dont know if this has been covered in some of the mentioned previous multi db support threads but how is it supposed to work with admin? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: Proposal: New transaction API with multiple databases

2009-04-06 Thread Andreas
I guess this just proves there's too many multi db threads and that we are many who're happy Adrian is making it happening. :) On Apr 6, 11:04 pm, Alex Gaynor wrote: > On Mon, Apr 6, 2009 at 5:04 PM, Alex Gaynor wrote: > > > On Mon, Apr 6, 2009 at 5:00 PM, Andreas wrote:

Re: Schema Evolution

2009-04-16 Thread Andreas
I know everyone is fed up with discussions about schema evolution and multi db support but when it comes to schema evolution I think it's time to have a discussion about it again. I think we all can agree that picking a schema evolution app for a django project isnt one of those things everybody

Re: Schema Evolution

2009-04-27 Thread andreas
My point wasnt to pick a solution, in this case South and just throw it into django. What I mean is, there is no winner nor any loser. I was more looking for taking it, and changing it in a way making most the core devs happy, and hopefully a majority of the community happy. Just to fork any of al

Re: Schema Evolution

2009-04-28 Thread andreas
On Apr 27, 10:49 pm, Malcolm Tredinnick wrote: > > Permit me to correct that impression: you are mistaken. Good! That's what I want'ed to be. > > That's also not a really valid assumption. There are still significant > differences and different limitations and advantages with each approach >

Re: Proposal: JS library in admin and tools

2009-08-19 Thread Andreas
By the way, rails is going agnostic in 3.0... Says it all. On Aug 18, 4:06 pm, diogobaeder wrote: > Hi there, > > After reading this > posthttp://groups.google.com/group/django-developers/browse_thread/thread... > I decided to ask you guys about your opinions in choosing an official > JavaScrip

Re: admin code is really really "not best practice"

2005-09-19 Thread Andreas
? I don't think this is just an issue for those planning to edit the admin-view code. Andreas

Debugging Django

2005-09-22 Thread Andreas
I'd love to help with the Django development. If I encounter a Traceback in the admin interface, how would you recommend I start debugging? Running the webserver in Komodo's debug mode fails since multi-thread debugging is not supported. Is there a way to "simulate" a request for a page like http:

Re: Proposal: Better HTML4 support

2009-09-28 Thread Andreas
html4 is derecated. xhtml is deprecated. With google chrome frame out there theres absolutly no reason to not begin with html5 already. The longer we wait, the longer it will take before html5 becomes "the it". On Sep 27, 1:46 pm, Simon Willison wrote: > On Sep 27, 10:49 am, veena wrote: >

Django Run in Aptana

2011-02-19 Thread Andreas Rudischhauser
Hello, i'm trying to get Django running in Aptana Studio. I've got PyDev installed and can create a new project. The point that's missing is the "run as". Does anybody know how to setup a run configuration. (Im running it on mac, if that's important to know). Or is there a better dev environme

Re: Attach a technincal html response to email on server error

2011-11-10 Thread Andreas Pelme
jango 1.3 with the logging framework and AdminEmailHandler: https://docs.djangoproject.com/en/dev/topics/logging/#django.utils.log.AdminEmailHandler -Andreas -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, sen

Test reordering and TransactionTestCase cleanup

2012-05-03 Thread Andreas Pelme
thing that might break with such a change? Are there any specific reasons it works the way it does? I will be happy to create a ticket and patch for this, I would get to input in case I miss something obvious. Cheers Andreas -- You received this message because you are subscribed to the Goo

Re: Test reordering and TransactionTestCase cleanup

2012-05-03 Thread Andreas Pelme
On Thursday 3 May 2012 at 21:17, Karen Tracey wrote: > On Thu, May 3, 2012 at 12:29 PM, Andreas Pelme (mailto:andr...@pelme.se)> wrote: > > > > Djangos default testrunner reorders the test suite to run all TestCase > > tests before TransactionTestCases, which avoids thi

Re: Test reordering and TransactionTestCase cleanup

2012-05-04 Thread Andreas Pelme
On Thursday 3 May 2012 at 22:14, Ramiro Morales wrote: > On Thu, May 3, 2012 at 1:29 PM, Andreas Pelme (mailto:andr...@pelme.se)> wrote: > > I am trying to run my Django test suite with an alternative test runner > > (py.test), and found some issues w

Re: Test reordering and TransactionTestCase cleanup

2012-05-04 Thread Andreas Pelme
On Thursday 3 May 2012 at 19:23, Anssi Kääriäinen wrote: > On May 3, 7:29 pm, Andreas Pelme http://pelme.se)> wrote: > > I am trying to run my Django test suite with an alternative test runner > > (py.test), and found some issues with test isolation. > > > > Tran

Re: Test reordering and TransactionTestCase cleanup

2012-05-04 Thread Andreas Pelme
_fixture_teardown (which could be considered private?). Unless that is done, I cannot see how tests can be affected by this, but there can certainly be something I am missing here! I guess we need someone who wrote the initial TransactionTestCase or knows why it is the way it is to give his/hers

Re: Test reordering and TransactionTestCase cleanup

2012-05-05 Thread Andreas Pelme
On Friday 4 May 2012 at 13:30, Karen Tracey wrote: > On Fri, May 4, 2012 at 4:46 AM, Andreas Pelme (mailto:andr...@pelme.se)> wrote: > > > > That's a good question. Anyone who wrote to original > > TransactionTestCase/reordering implementation that wants to chime

Re: Test reordering and TransactionTestCase cleanup

2012-05-05 Thread Andreas Pelme
spective). I guess it boils down to where to draw the line for backward compatibility here. :-) I personally think it is acceptable since we can offer a very easy fix for the existing (already broken) tests out there. Andreas -- You received this message because you are subscribed to the Goog

Re: App-loading reloaded - running code at startup

2013-12-30 Thread Andreas Pelme
itialised state would be very very useful in situations like this, and would have saved us many hours of confusion. -- Andreas Pelme -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop recei

Re: Feature request: post/pre commit/rollback signals

2014-01-10 Thread Andreas Pelme
can take care of making the issue + pull-request. > > Greetings. > Jesus. Hi, This is a tricky issue that has been discussed earlier, you will probably want to check out ticket #14051: https://code.djangoproject.com/ticket/14051 — Andreas Pelme -- You received this message becaus

Re: [GSOC] Shifting to Py.Test and Improving the Test Suite

2014-04-07 Thread Andreas Pelme
s what the output from a similar test with pytest would result in: (Screenshot at http://pelme.se/~andreas/private/pytest_assertion.png to give the correct colors/formatting.) $ py.test test_foo.py = test session starts ===

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
uple class for "easy" notation within the settings.py might be an option, but after server startup all of those should be immutable. So for the sake of logic, take tuples, please. Andreas -- You received this message because you are subscribed to the Google Groups "Django deve

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
> > > On Monday, January 19, 2015 at 12:35:10 PM UTC+1, Andreas Kahnert wrote: >> >> I'm strongly against lists. Lists are mutable objects, their components >> can be changed in place. The settings are initialized at server start and >> after that changes on

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
eing a tuple is making it > necessarily more safe than a list - is the above code really much different > to: > > from django.conf import settings > settings.TEMPLATE_DIRS.append('foo') > > On 19 January 2015 at 14:45, Andreas Kahnert > wrote: > >> I'm

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
sequence in the pattern: A = ( 1, 2, ) which is perfectly PEP-conformant and makes reodering elements manually also more easy because you can cut'n'paste whole lines. Am Montag, 19. Januar 2015 17:35:44 UTC+1 schrieb Florian Apolloner: > > On Monday, January 19, 2015 at 3:45:18

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
PS: python should be able to access tuple members faster, because it can be implemented as array instead of double-linked-structs which are necessary mutable lists. But as far as I know it doesn't. -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
rting, which minimizes the risk of accidently assigning to it. Am Montag, 19. Januar 2015 18:53:26 UTC+1 schrieb Loïc Bistuer: > > Hi Andreas, > > As Florian pointed out, you can't mutate a tuple, but you can mutate the > settings object, so using a tuple or a froz

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
Interesting, ... so excuse me. The next point also clearifys my PS from above, lists are over-allocated dynamic sized arrays. (this explains why python is such an memory eater as well as why I experienced performance loss when using the mutability of lists extensivly) Am Montag, 19. Januar 201

Re: Settings: lists or tuples?

2015-01-19 Thread Andreas Kahnert
I advertise that strongly against lists, because we actually had that kind of issue in our company. One colleague created a list with phrases for some verbose logging in the settings.py. In the view function he promoted this list together with the actual data, also a list which is used for stori

Re: Settings: lists or tuples?

2015-01-20 Thread Andreas Kahnert
Just for completness: accidential assignment to the settings object itself could be easily prevented with a __setattr__ method on its class, since django yields on various other places about configuration problems it could not be wrong if the programmer gets noted about an illegal assignment. If

Re: Settings: lists or tuples?

2015-01-22 Thread Andreas Kahnert
Hi again, Well, I can acknoledge that your reasons for list (beginner friendly) are as good as my reasons for tuples (seems to be more logical choice for things that are static). To say it in other words, my idea was simply: Use tuples and the programmer will know that these arn't ment to be alt

Re: Allow deferral of ModelSignal callback invocation until after transaction commit

2015-05-01 Thread Andreas Pelme
. Let me know what you think and I’ll be happy to continue working on a proper patch to get it into a merge-able state. Cheers, Andreas -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To un

Re: Allow deferral of ModelSignal callback invocation until after transaction commit

2015-05-03 Thread Andreas Pelme
open questions would be very welcome and helpful! Cheers, Andreas -- 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 it, send an email to

RegexURLResolver.resolver can fall through and return None

2008-06-26 Thread Andreas Klöckner
response 73. callback, callback_args, callback_kwargs = resolver.resolve(request.path) Exception Type: TypeError at Exception Value: unpack non-sequence -------- Andreas signature.asc Description: This is a digitally signed message part.

Re: RegexURLResolver.resolver can fall through and return None

2008-06-26 Thread Andreas Klöckner
On Donnerstag 26 Juni 2008, [EMAIL PROTECTED] wrote: > To avoid spam detection sign up. Well, then the web site should hint at this fact, too. I was fairly close to just abandoning the effort of trying to tell you about the issue I encountered. Andreas signature.asc Description: This i

Re: RegexURLResolver.resolver can fall through and return None

2008-06-26 Thread Andreas Klöckner
On Donnerstag 26 Juni 2008, Collin Grady wrote: > Andreas Klöckner said the following: > > Well, then the web site should hint at this fact, too. I was fairly close > > to just abandoning the effort of trying to tell you about the issue I > > encountered. > > It does.

Re: RegexURLResolver.resolver can fall through and return None

2008-06-26 Thread Andreas Klöckner
This, with more elaborate explanation, is now issue 7550, at http://code.djangoproject.com/ticket/7550. Andreas On Donnerstag 26 Juni 2008, Andreas Klöckner wrote: > Hey there, > > I tried to submit this bug, but it wouldn't let me--it thought I'm a > spammer. You shou

Model fields in localflavor

2008-10-04 Thread Andreas Pelme
[This messages is related to http://groups.google.com/group/django-developers/browse_thread/thread/64e4d42590145347 ] On Jul 27, 11:39 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-07-27 at 16:39 +0200, Andreas Pelme wrote: > > Hello > > > I have sta

Swedish localflavor

2009-02-01 Thread Andreas Pelme
without any issues. Is there any chance we could get this into 1.1? What is currently keeping it from not being committed to trunk? If there is something I can do to help getting it into trunk, please let me know. Best regards Andreas Pelme [1] http://code.djangoproject.com/ticket/9289 [2] http

Django Book enhancement

2007-02-10 Thread Andreas Eigenmann
legacy databases should be enhanced by a section about extendig a consisting django application. A web application isn't static and changes in the schema from time to time are inevitable. Thanks Andreas --~--~-~--~~~---~--~~ You received this message because yo

RESTful web services for Django

2007-05-07 Thread Andreas Stuhlmüller
he two weeks before the SoC midterm evaluations on July 9 I am writing eight exams and therefore I don't expect to get much coding done. I'll make a bit of an early start to make up for this. Andreas [1] www.aiplayground.org/artikel/improving-django/ --~--~-~--~~~-

GSoC 2007 Status Update: Django REST interface

2007-06-01 Thread Andreas Stuhlmüller
_and_files and the inclusion of resource urls in serialized output until next Friday. Regards, Andreas [1] Like this: http://django-rest-interface.googlecode.com/svn/trunk/django_restapi_tests/urls.py --~--~-~--~~~---~--~~ You received this message because you are

Re: GSoC 2007 Status Update: Django REST interface

2007-06-01 Thread Andreas Stuhlmüller
:1 to models on the other hand. I will take a closer look at the tickets you opened when I get to the second half of my proposal, but note that what I am working on is not XMLRPC or SOAP. Regards, Andreas On 6/2/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > On 6/1/07, Andreas Stu

GSoC 2007 Status Update II: Django REST interface

2007-06-09 Thread Andreas Stuhlmüller
uch a REST API or if you have specific comments on the code, please let me know. Regards, Andreas [1] http://code.google.com/p/django-rest-interface/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django develop

GSoC 2007 Status Update III: Django REST interface

2007-06-16 Thread Andreas Stuhlmüller
k for next week is to think about the relationship between the REST interface and authentication. It should be possible to have different levels of access for authenticated and unauthenticated users. Criticism, ideas and suggestions are welcome! Regards, Andreas [1] http://code.google.com/p/d

GSoC 2007 Status Update IV: Django REST interface

2007-06-23 Thread Andreas Stuhlmüller
it testing framework. Another issue that needs to be resolved next week is that authentication should allow different levels of access to the same resource for authenticated and unauthenticated users. As always, criticism, ideas and suggestions are welcome! Regards, Andreas [1] http://code.go

GSoC 2007 Status Update V: Django REST interface

2007-07-02 Thread Andreas Stuhlmüller
very REST app in some way or the other and that we can take care of? Expect the next update around July 20th. Regards, Andreas Stuhlmüller [1] http://code.google.com/p/django-rest-interface/ --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: GSoC 2007 Status Update V: Django REST interface

2007-07-03 Thread Andreas Stuhlmüller
d b) which insights we gain from the work on the non-model-based part of the project. I will remember your point when I write the documentation on how to use the API. Regards, Andreas [1] http://code.google.com/p/django-rest-interface/ --~--~-~--~~~---~--~~ You receiv

Re: GSoC 2007 Status Update V: Django REST interface

2007-07-08 Thread Andreas Stuhlmüller
ry URL pattern. Note that in the the above example we might replace the url() call with an api_url() call that saves us from repetitive definitions. Regards, Andreas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: GSoC 2007 Status Update IV: Django REST interface

2007-08-03 Thread Andreas Stuhlmüller
lete" button to the template example and verified that it works if you add HttpMethodsMiddleware to your middleware classes. Thanks for your comments! Regards, Andreas [4] http://www.djangosnippets.org/snippets/174/ --~--~-~--~~~---~--~~ You received this mess

GSoC 2007 Status Update VI: Django REST interface

2007-08-05 Thread Andreas Stuhlmüller
chapter on best practices for REST-oriented architectures with short notes on where the REST interface still needs improvement. If you feel that there are important issues I am missing, please write me or just open a ticket [4]. Regards, Andreas Stuhlmüller [1] http://code.google.com/p/django-res

Re: GSoC 2007 Status Update VI: Django REST interface

2007-08-10 Thread Andreas Stuhlmüller
you can, wait at least until Fri, August 24th before using the REST interface in any kind of production environment. By then I hope to have done more thorough testing. If you stumble upon a bug, please let me know. Thanks for your feedback. Regards, Andreas Stuhlmüller [1] http://django

Re: GSoC 2007 Status Update VI: Django REST interface

2007-08-12 Thread Andreas Stuhlmüller
t you end up with is "work on your own, supported by your mentor" (which, admittedly, works quite well). Regards, Andreas Stuhlmüller --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django d

GSoC 2007 Status Update VII: Django REST interface

2007-08-13 Thread Andreas Stuhlmüller
l [2] that describes how to provide an API for an existing Django application using the REST interface. If you have any questions, ideas, can't get the interface to work or want to contribute bugfixes and other enhancements, please go ahead. Regards, Andreas Stuhlmüller [1] http://code.goog

Re: GSoC 2007 Status Update VII: Django REST interface

2007-08-19 Thread Andreas Stuhlmüller
ld be interesting to use the given > form_class instead. You're right, it might be nice to be able to change the validation and data cleanup behavior of resources. Check out the latest revision and tell me if this is along the lines you were thinking. Regards, Andreas --~--~-

GSoC 2007 Status Update VIII: Django REST interface

2007-08-20 Thread Andreas Stuhlmüller
tions or suggested features and, of course, to the community of Django developers in general. I hope you like and use the Django REST interface. Cheers, Andreas Stuhlmüller [1] http://code.google.com/p/django-rest-interface/ [2] http://www.aiplayground.org/artikel/improving-django/ [3] http://djang

Re: Discussion related to ticket #26822 (new migrations, --keepdb and --parallel option)

2016-07-04 Thread Andreas Pelme
rwise everything is fast. You don’t have to remember any special command line options. Cheers, Andreas -- 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 receivi

Re: PEP 484 type hinting in Django

2018-04-11 Thread Andreas Galazis
To me one approach would be to put a cut off for any merged code /PR start inlining type hints/annotations for all new code. This seems to simple to be a solution but at the end of the day as code gets updated even bigger part of the codebase will have type hints. The question is whether parti

Re: PEP 484 type hinting in Django

2018-04-11 Thread Andreas Galazis
I agree with you, but at some point, we could combine solid annotated core with a cut off for non annotated code? Otherwise, this will end up being a loop. On Wednesday, 11 April 2018 17:16:21 UTC+3, dmoisset wrote: > > > > On 11 April 2018 at 11:21, Andreas Galazis > wrote:

Pluggable secret key backend

2018-11-10 Thread Andreas Pelme
it be designed in som other way? I could not find any previous discussion/tickets on this and thought it would be a good idea to discuss it here before opening a ticket or making an attempt at a PR. :) Cheers, Andreas -- You received this message because you are subscribed to the Google Groups

Re: Pluggable secret key backend

2018-11-10 Thread Andreas Pelme
aware of multiple keys. Everything that is already using django.core.signing such as signed cookies, sessions and password reset tokens would need *not* need to change. Cheers, Andreas -- You received this message because you are subscribed to the Google Groups "Django developers (Contri

Re: Pluggable secret key backend

2018-11-10 Thread Andreas Pelme
On 10 Nov 2018, at 13:29, Adam Johnson wrote: > > Hi Andreas > > I like your proposal, moving to a backend is an elegant way of solving both > the immediate problem and opening up the other possibilities you mentioned. Thanks Adam, I am glad you like the proposal. :) > I t

Re: PEP 484 type hinting in Django

2018-12-26 Thread Andreas Galazis
Just stumbled on this blog post: https://www.willmcgugan.com/blog/tech/post/adding-type-hints-to-the-django-orm/. An interesting but too theoretical suggestion: We could even get rid of field/ field configuration. But I guess that's far ahead of what we are trying to achieve xD. On Wednesday,

Re: django.utils.dateparse

2019-02-04 Thread Andreas Pelme
3 -m timeit -s "import sys, os; sys.path.append(os.getcwd()); from datetime_heuristic_parser import datetime_heuristic_parser” "datetime_heuristic_parser('04/12/2018 09:7:4Z’)" Cheers, Andreas -- You received this message because you are subscribed to the Google Groups

Re: SITE's -- an idea to make them transparent/easier to use

2005-12-02 Thread Andreas Stuhlmüller
t(online__exact=False) >>> articles.Klass._meta.where_constraints = original_constraints But is this safe or will it eventually cause problems? Andreas

Re: Magic - removal branch .. is the API stable yet?

2006-01-23 Thread Andreas Stuhlmüller
plementation for magic removal, the sooner the better. If there is anything I can do to help just drop me a note. Andreas

Re: magic-removal: where_constraints

2006-02-14 Thread Andreas Stuhlmüller
efault query sets. See http://code.djangoproject.com/wiki/RemovingTheMagic#YoucanoverridedefaultQuerySets. Using python parameters instead of SQL is a nice improvement over the where_constraints method. Andreas

Re: Permissions

2006-04-27 Thread Andreas Neumeier
ssions into the auth_* tables. nothing happened. how does it differ from the default branch? Thanks for the hint Andreas -- http://andreas.neumeier.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

RequestContext not working?

2006-05-16 Thread Andreas Neumeier
, rev 2917. Regards, Andreas http://lovebox.ath.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubsc

Re: RequestContext not working?

2006-05-16 Thread Andreas Neumeier
apper), which looks that it works perfectly. rev 2917 on Breezy seams to fail for some reason i cannot describe. Where could I have a deeper look? Does django depend on certain mod_python versions? Adrian Holovaty schrieb: > Hi Andreas, > > RequestContext is working perfectly for me. If

Re: RequestContext not working?

2006-05-16 Thread Andreas Neumeier
Adrian Holovaty schrieb: > Does the problem happen on both the Django development server and mod_python? Actually, this didn't come to my mind before, but I tried it just now and the development server is working What could be the issue there? -- Andreas lovebo

Re: RequestContext not working?

2006-05-17 Thread Andreas Neumeier
[EMAIL PROTECTED] schrieb: > Isn't this just a mysql libs in php vs libs in mysqldb issue? > Died silently with a blank page until i switched to postgresql. > Or recompile php correctly yourself. I'm not quite sure about the meaning here: why should I compile php _at_al

Re: RequestContext not working?

2006-05-26 Thread Andreas Neumeier
is quite hard since there are no errormessages at any point :( I would be glad, if anyone could point out to any possible issue here -- Andreas Neumeier lovebox.ath.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &