Re: DB API / administation as stand alone

2005-11-02 Thread David Pratt
sses. Regards, David On Wednesday, November 2, 2005, at 10:16 AM, Adrian Holovaty wrote: On 11/1/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi. I am developing a stand alone desktop application but I like what django can do as far as wrapping sql database interaction. Can someo

Re: DB API / administation as stand alone

2005-11-03 Thread David Pratt
side effects from this? So far it is doing what I expect. As far as the code in Django that will not be utilized by my app, I plan on writing a script to strip folders and files that do not have any to the to the db api (ie meta, db, settings etc) prior to bundling. Regards, David Hi David

Re: DB API / administation as stand alone

2005-11-03 Thread David Pratt
Many thanks Adrian. I am really please for what this will mean to simplify my SQL development. Thank you for a really nice api that is very dynamic. Regards, David On Thursday, November 3, 2005, at 01:52 PM, Adrian Holovaty wrote: On 11/3/05, David Pratt <[EMAIL PROTECTED]> wro

Couple of quick db api questions

2005-11-03 Thread David Pratt
write this code? 2. Is there a way to use a raw SQL statement within the api with a connection obtained through settings? Let's say I have some large ugly query with multiple related tables and I want to handle it within the api but in a raw form. Many thanks, David

Re: Couple of quick db api questions

2005-11-03 Thread David Pratt
On Thursday, November 3, 2005, at 04:42 PM, Adrian Holovaty wrote: On 11/3/05, David Pratt <[EMAIL PROTECTED]> wrote: 1. Is it possible to execute the sqlreset or sqlclear statement through django-admin (opposite of django-admin install) I haven't found a django-admin drop o

Re: Couple of quick db api questions

2005-11-03 Thread David Pratt
Hi. On Thursday, November 3, 2005, at 06:37 PM, Adrian Holovaty wrote: On 11/3/05, David Pratt <[EMAIL PROTECTED]> wrote: Anyway, let me know what you think so I can get started. django-admin sqlinit mymodel * new method django-admin init mymodel current - n

Re: Django and AJAX: Setting aside the conflict

2005-11-16 Thread David Ascher
On 11/16/05, Robert Wittams <[EMAIL PROTECTED]> wrote: Not to fan the flames, but I think my position has been a bit distinctfrom these:3. There are requirements for the bundled apps to make use of extensiveJS functionality. If we don't bundle an existing toolkit, we will end up inventing a new one

Re: Django and AJAX: Setting aside the conflict

2005-11-16 Thread David Ascher
On 11/16/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: > PS: There are some people in Dojo community, who work on form widget,> which supports some validation mechanism. It would be nice to see what> they do.They do have some stuff to validate input. I found this file in their repository:http://do

Re: Django and AJAX: Setting aside the conflict

2005-11-17 Thread David Ascher
;.I'm happy to see Django folks looking at Dojo (& others, of course), and happy to see Alex interested in figuring out Django.  I think the two groups have very compatible philosophies, from what I can tell so far. --david

Re: [Django] #830: Add AUTHORS file to distribution

2005-11-17 Thread David Ascher
ing contributors of significant IP. I have no concerns about the Journal-World, but I suspect that _if_ you had proper CLAs from contributors, the PSF would probably accept the IP (and thereby take on responsibility for defending it) if that was of interest to the Django community. --david

Re: A fix for all that futzing around with paths

2005-11-18 Thread David Ascher
change from dev to production by changing an env't variable (across all projects).Hope that's clearer.--david

Re: A fix for all that futzing around with paths

2005-11-18 Thread David Ascher
it would break under apache -- Apache would still require the same environment variable to be set.  But maybe I'm missing something?--david

Re: A fix for all that futzing around with paths

2005-11-18 Thread David Ascher
On 11/18/05, Sune Kirkeby <[EMAIL PROTECTED]> wrote: I guess all this just rubs me the wrong way, because it breaksthe Only One Way guideline.And it should thus be challenged, no argument here.It's very possible that the use case it supports (repeatedly switching b/w projects when invoking django-

Re: Proposal: models.py by default instead of "models" directory

2005-11-18 Thread David Ascher
Overall, anything that doesn't require packages but that accomodates both modules or packages depending on the complexity of the system, and defaults to modules, strikes me as pythonic.I'm pretty new to Django's "app" concept, though, and it seems you're slightly messing with it here, so I'll +0 on

Re: Proposal: models.py by default instead of "models" directory

2005-11-18 Thread David Ascher
On 11/18/05, Jonathan Daugherty <[EMAIL PROTECTED]> wrote: # * Change Django so that it looks for models in a "models" package# (as it currently does) *or* in a file called models.py. Either the# models package or models.py should live directly within the package # pointed-to by INSTALLED_APPS.Do y

Re: Django and AJAX: Setting aside the conflict

2005-11-18 Thread David Ascher
On 11/18/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: I don't care how many layers we are going to have in implementation, I care for the final layer --- actual use of Ajax in templates. RPC is not a final layer for me, because I suspect that majority of user will need end user function

Committing delete with execute()

2005-11-19 Thread David Pratt
E FROM ... the rest of my query ..." cursor = db.cursor() cursor.execute(query) cursor.close() db.commit() Many thanks David

Re: Making Django easier to get started

2005-11-20 Thread David Ascher
kits would suck people in who do not yet understand the boundaries b/w the server world and the client world.  If you're trying to suck people in, you are going to have to deal w/ people who come in with all the wrong expectations about what they need.  There's plenty of time later to clear up their buzz-induced misunderstandings. I'm hoping to be able to contribute somewhat towards these goals, fwiw.--david

Re: Committing delete with execute()

2005-11-20 Thread David Pratt
Ok, super. Just thought I would verify this. Many thanks. Regards, David On Sunday, November 20, 2005, at 01:37 PM, Adrian Holovaty wrote: On 11/19/05, David Pratt <[EMAIL PROTECTED]> wrote: This seems to be fine for inserts but I found with delete statements, I must be explicit

Re: Making Django easier to get started

2005-11-24 Thread David Ascher
Is Google being inadvertently blocked?--david

Re: i18n for JavaScript

2005-11-28 Thread David Ascher
On 11/28/05, hugo <[EMAIL PROTECTED]> wrote: There are several ideas on how to solve this:All of which seem like they would apply beyond Django, no?My first instinct in this sort of case is to find out what others are doing, i.e. Dojo folks, RoR, TG, etc. --david

Re: Removing the magic

2005-12-06 Thread David Ascher
ee the specific criticisms being addressed on a case by case basis and Django becoming significant better as a result. I wish I understood better some of Aaron's comments, though.  --david

Re: Django Ajax Redux

2005-12-10 Thread David Ascher
) to assume JS, IE6+, FF1+, Safari. I worry that if fallback strategies are a strong requirement, then we can end this thread pretty quickly.--david

Programatic install

2005-12-15 Thread David Pratt
. Many thanks. David from django.core import management # Setup up an app management.init() management.install(my_app) # Admin install ??? management.createsuperuser(username='admin', email='[EMAIL PROTECTED]', password='apassword')

Re: Programatic install

2005-12-15 Thread David Pratt
Hi Adrian. Super :-) This did the trick. Many thanks! Regards David Adrian Holovaty wrote: On 12/15/05, David Pratt <[EMAIL PROTECTED]> wrote: Can someone fill in the blank. Many thanks. [...] from django.core import management # Setup up an app management.init() management.i

Running the small server in another thread

2005-12-18 Thread David Pratt
HI. I was wondering if anyone has advice on setting up the small web server to run in its own thread - something to see that it stays alive as well. Regards, David

HttpServer as a Windows Service

2005-12-18 Thread David Pratt
don't think it would require too much to provide this functionality. I think in light of the fact that most people are likely developing on windows boxes, it would be a plus. I looked at the httpserver code and I don't think it would much to fit this in. Regards, David From T

Re: HttpServer as a Windows Service

2005-12-19 Thread David Pratt
Hi Ian. Thanks for your reply. It does, however I was looking at this from the perspective of running the small httpserver as its own service when Django is installed on a Windows machine for development. Is there any interest in this? Regards, David Ian Holsman wrote: doesn't Apache

Re: HttpServer as a Windows Service

2005-12-19 Thread David Pratt
Thanks for this. I have been reading up quite a bit on threading and also windows services. I am not much of a windows user but sometimes you find yourself needing to do things with it. For me Mac is great and Unix of course. Regards, David PythonistL wrote: David, Check this http

Re: HttpServer as a Windows Service

2005-12-19 Thread David Pratt
until I understand everything a bit more clearly. Regards, David Adrian Holovaty wrote: On 12/19/05, David Pratt <[EMAIL PROTECTED]> wrote: Hi Ian. Thanks for your reply. It does, however I was looking at this from the perspective of running the small httpserver as its own service when

Re: HttpServer as a Windows Service

2005-12-20 Thread David Pratt
from the middleware all the way through to the server without trouble. Further, if cherrypy wsgiserver is used, the cgi for windows service has already been written and get Django a bit futher along for some sort of packaging as been suggested for Windows. Regards, David Adrian Holovaty wrote

Re: HttpServer as a Windows Service

2005-12-20 Thread David Pratt
License is BSD so all is well in that regard. There is still an issue with the app that gets passed to the server to deliver the request properly. It would be great is there is someone interested in helping that understands this aspect of Django well that could lend a hand. Regards, David

CherryPy as Django Server (was HttpServer as a Windows Service)

2005-12-23 Thread David Pratt
since the use of the server creates a dependency upon CherryPy. There would be a need to integrate a development/production server configuration and modify management for the command line tool. Regards, David License is BSD so all is well in that regard. There is still an issue with the app

Plan for No Magic

2006-01-06 Thread David Pratt
Hi there. What kind of time anticipated time line for no magic branch to be tagged as a release? I am accumulating a fair amount of code and am getting nervous about the number of changes that I will need to make once this is stable. Many thanks David

Re: Proposal: custom admin field templates

2006-02-13 Thread David Pratt
Hi. I have a situation where I store a pickle in a field that I'd like to unpickle for an update form and on save pickle again. What would be the best approach for this scenario given the current or future possibilities of admin customization. Regards, David Jacob Kaplan-Moss wrote:

Re: DoJo Integration & JSON methods

2006-02-16 Thread David Pratt
Can someone advise whether there is a grid type widget for dojo that could work with model data. Many thanks. David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

Re: DoJo Integration & JSON methods

2006-02-17 Thread David Pratt
Thanks Ian. Is there a plan for the development of this sort of widget as part of dojo in general that you are aware of that could fit into django? Regards, David Ian Holsman wrote: > http://turboajax.com/turbowidgets/ might be of interestest. > > BTW. they are about $200 for comme

Re: Unbundling the ORM

2006-03-12 Thread David Pratt
tween some very excellent open source initiatives. Regards, David Armin Ronacher wrote: > The django ORM is the best out there. The only problem is that it's > only working from inside django. > > There is a ticket for that: http://code.djangoproject.com/ticket/1321 > and

dojo implementation

2006-03-24 Thread David S .
would greatly inform how I proceed, so that refactoring to the Django way might be easier when the time comes. Thanks, David S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: dojo implementation

2006-03-24 Thread David S .
David S. <[EMAIL PROTECTED]> writes: > [snip] I am wondering if it is still planned to release some Dojo > integration soon and if there is any idea what that will look like. I have > not > found any hint of if in the magic-removal branch. Terribly sorry. I meant to p

Re: dojo implementation

2006-03-24 Thread David S .
would not work very well. Anyhow, looking forward to testing. Best, David S. --~--~-~--~~~---~--~~ 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

Firebird support

2006-04-28 Thread David Elias
Hi there, Is anyone working on this? I already found some problems for the firebird adapter, or not :) For example the LIMIT OFFSET clause, firebird uses SELECT FIRST SKIP and the sql construction in django implies that the limit offset is always appended with the backed.get_limit_offset_sql()

Re: Firebird support

2006-05-03 Thread David Elias
> Hi David, Hi, thanks for the response. > I don't know of any work being done on a Firebird adapter. Would you > like to volunteer? :) Shure :) at work we are building a portal that will work as bridge between the our software (similar to SAP) and it uses Firebird, so it's

Re: Multi-DB support within transaction middleware

2011-11-14 Thread David Winterbottom
further. On Sun, Nov 13, 2011 at 7:05 PM, Yo-Yo Ma wrote: > Before voting for more magic to the transaction middleware, I'd vote > to remove it altogether. Explicit is surely better than implicit in > this case. The admin already uses commit_on_success, etc. > > On Oct 18,

Queries about CSRF design following penetration test

2011-12-01 Thread David Winterbottom
ir examples, they are hand-crafting the HTTP request to spoof this but I guess that is not representative of what can be done via a browser-based CSRF attack. How much of a security issue is this? I'm happy to share the relevant pages of the report if anyone's interested. All thoughts a

Re: Proposal: drop Python 2.5 support in Django 1.5

2011-12-23 Thread David Malcolm
On Mon, 2011-12-12 at 00:46 -0600, Joseph Tennies wrote: > While I agree it should be dropped, I was discussing this with the > Twisted guys. They pointed out that it will actually receive security > updates through 2013. This is thanks to Ubuntu 8.10 LTS. I'm sure > Canonical could tap into someon

Re: Proposal: drop Python 2.5 support in Django 1.5

2011-12-23 Thread David Malcolm
On Fri, 2011-12-23 at 08:36 -0800, Vinay Sajip wrote: > On Dec 23, 3:23 pm, Jannis Leidel wrote: > > > > I would argue that Jaunty being a non-LTS release shouldn't be considered > > as a target platform we want to support. OTOH the LTS release Ubuntu Lucid > > (10.04) ships Python 2.6.5, so we'

Re: Speeding up tests

2012-01-19 Thread David Cramer
So a few things we've done to take our test suite from 45 minutes to 12: 1. Implement global fixtures These get loaded after syncing just like initial data. Obviously this is a massive speed up as you only reload them in between transaction test cases. 2. Don't inherit from TestCase if you aren'

unblocking #17277

2012-02-10 Thread David Lowe
rapping a broad exception class with a narrower subclass, to make it easier to catch). The ticket is currently in 'Design decision needed' (has been for several months). What's next? Thanks! David Lowe -- You received this message because you are subscribed to the Google Groups "D

Case-insensitive collations and ModelMultipleChoiceField?

2012-03-10 Thread David Lindquist
I may have found a bug in Django but wanted to run it by the core developers before I filed a ticket. It concerns validation of a ModelMultipleChoiceField when using a case-insensitive database collation (in our case, a MySQL database with collation set to 'utf8_general_ci'). First some background

Re: auth.User refactor: reboot

2012-03-16 Thread David Danier
ll steps may be enough to get to a nearly perfect solution here. David -- 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 unsubscribe from this group, send e

Re: ModelForms and the Rails input handling vulnerability

2012-06-13 Thread David Danier
ly makes things more ugly. David -- 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 unsubscribe from this group, send email to django-developers+unsubscr

Re: save() method could return the object

2012-10-12 Thread David Winterbottom
's more important to have clearly purposed methods than saving a line of code. David On 12 October 2012 14:25, Chris Wilson wrote: > Hi all, > > If the save() method returned the object itself, then we could chain it > like this: > > old_status = Status(last_co

Re: Update on localflavor move

2012-10-16 Thread David Winterbottom
To post to this group, send email to django-developers@googlegroups.com. >> To unsubscribe from this group, send email to >> django-developers+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-developers?hl=en. >>

Re: Django 1.1 is not installable

2012-12-13 Thread David Fischer
The exact versions of Django available on Pypi are here: http://pypi.python.org/simple/Django/ Nobody recommends installing this old version of Django for production, but you can install 1.1.4 like so: pip install django==1.1.4 On Wednesday, December 12, 2012 11:37:58 AM UTC-8, Will Van Wazer wr

Re: managements.commands and namespace packages

2013-02-12 Thread David Reynolds
nd turn your snippet above into a proper patch -- the most > important part of which will be test cases. Management command discovery etc > are all tested features, but namespace packages aren't currently tested. Even > if your import modification *isn't* the right solution

Re: Database pooling vs. persistent connections

2013-02-28 Thread David Cramer
Can we please change this so it defaults to off, and just document how to turn it on and in what situations you should turn it on? In my opinion this default-on feature caters to a very specific audience, and will cause a lot of unexpected behavior with other users. Here is the tl;dr of an argu

Re: Database pooling vs. persistent connections

2013-02-28 Thread David Cramer
urrent connection is very different than a single operation. On Thursday, February 28, 2013 at 1:40 PM, Michael wrote: > On Thu, Feb 28, 2013 at 4:10 PM, Christophe Pettus (mailto:x...@thebuild.com)> wrote: > > > > On Feb 28, 2013, at 11:09 AM, David Cramer wrote: >

Re: URL dispatcher fallthrough?

2013-03-28 Thread David Danier
. But you need a central storage to accomplish that. (Drupal works this way.) Anyway, I don't think throwing UrlNotMatched is the right solution here. David -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this

Re: URL dispatcher fallthrough?

2013-04-02 Thread David Danier
> David: The slugs wouldn't be overlapping if they inherited from some > sort of "Organization" model with unique slug. The user could also add > validation code to prevent company and schools having same slugs. If you have a common base model this sounds like some p

Re: delegating our static file serving

2014-12-01 Thread David Evans
It's worth flagging up that part of what makes WhiteNoise good for serving static files in production also makes it not quite as good for using in development. Most file servers work by taking the requested URL, constructing a local path from it, and then checking whether a file exists at that

Re: delegating our static file serving

2014-12-05 Thread David Evans
+1 to this: I'm all in favour of supporting production-adequate static file handling in core. A couple of small points: We already have the views, api, and logic around for finding and serving > the correct files. One question that needs to be thought through is the role of `collectstatic` and

Re: Django documentation doesn't show correctly in any browser

2015-01-13 Thread David Graves
Doesn't look that way to me in Fedora or Chrome on Linux On Tue, Jan 13, 2015 at 1:48 PM, patrick91 wrote: > On Tuesday, January 13, 2015 at 8:15:40 PM UTC+1, Some Developer wrote: >> >> I know this isn't strictly speaking a Django dev topic but since the >> developers are the ones who changed t

Improving Test Speed for Projects that use django.contrib.postgres

2015-05-04 Thread David Muller
Hi everybody, Recently I've begun to use the PostgreSQL specific fields introduced in Django 1.8. My codebase actually uses the special fields (HStoreField and ArrayField mostly) frequently enough such that I cannot run my test suite on an in memory SQLite database -- I have to run on a Postgr

Re: Improving Test Speed for Projects that use django.contrib.postgres

2015-05-04 Thread David Muller
or the section I'm working on well I > then rely on the CI to deliver my final answers > I feel the same way and constantly target particular subsets of my tests, but it's always tempting to see if everything can run a little quicker! Thanks again for the response and advice. -

Re: delegating our static file serving

2015-06-20 Thread David Evans
On Friday, 5 December 2014 19:14:29 UTC, Carl Meyer wrote: > > On 12/04/2014 10:33 PM, Collin Anderson wrote: > > Hi All, > > > > I'm pretty interested in getting secure and _somewhat_ efficient static > > file serving in Django. > > > > Quick history: > > 2005 - Jacob commits #428: a "stati

Contributing to a module that does not seem to be covered by tests extensively (djanog.db.models.expressions)

2015-10-15 Thread David Filipovic
new classes/methods/functions? I couldn't find anything on this. Thank you so much. I hope I can contribute and help make django better! Best regards, David Filipovic -- You received this message because you are subscribed to the Google Groups "Django developers (Contribution

Re: Contributing to a module that does not seem to be covered by tests extensively (djanog.db.models.expressions)

2015-10-16 Thread David Filipovic
utput_field type (at least in some cases? e.g (DateField - DateField) --> DurationField) , as opposed to having to use an ExpressionWrapper, which makes the interface slightly more complicated? What do you think, Josh? Best regards, David Filipovic On Thursday, October 15, 2015 at 11:

Re: should manage.py test run system checks?

2015-10-19 Thread David Filipovic
How about making them opt-out instead of opt-in (for instance with a --skip-checks flag)? That way anybody who is aware of the fact that checks are being run every time tests are run and is seeking an increase in performance can choose to opt-out, whereas anybody not aware (or at least not full

Re: Contributing to a module that does not seem to be covered by tests extensively (djanog.db.models.expressions)

2015-10-19 Thread David Filipovic
cases? e.g (DateField - DateField) > --> DurationField) > > If you can find an appropriate place for this logic to live then I'm all > for it. ExpressionWrapper is cumbersome, but it's also necessary for user > based combinations where the base F/Combinable/Expressi

Re: should manage.py test run system checks?

2015-10-19 Thread David Filipovic
flag to their settings file and still use their old workflows. On Tuesday, October 20, 2015 at 1:02:12 AM UTC-4, David Filipovic wrote: > > How about making them opt-out instead of opt-in (for instance with a > --skip-checks flag)? That way anybody who is aware of the fact that chec

An issue with Django 1.8.6 support for south migrations

2015-11-04 Thread David Filipovic
I have initially created the ticket https://code.djangoproject.com/ticket/25618 which addressed the bug that would occur if south migrations somehow ended up being still present in the migrations module. According to a report in: https://code.djangoproject.com/ticket/25618#comment:7, this seem

Re: delegating our static file serving

2015-12-29 Thread David Evans
> * django/contrib/staticfiles/views.py > * django/contrib/staticfiles/management/commands/runserver.py > * django/contrib/staticfiles/handlers.py > * django/views/static.py > > Any objections to doing further investigation in this area? > > On Saturday, June 20, 2015 at 8

ModelForm possible validation bug

2010-09-07 Thread David Reynolds
it up. This is then tested for in Model._perform_unique_checks and the uniqueness checks are executed if it is set to True which it always is after calling ModelForm.save() Is this a bug? Surely it can't be that unusal to want to call Model.full_clean() before each save? -- David Reyno

Re: ModelForm possible validation bug

2010-09-08 Thread David Reynolds
On 7 Sep 2010, at 16:48, David Reynolds wrote: > Hi folks, > > I am running into a validation problem with ModelForms - here is a quick > summary of what is happening I have opened a ticket to track this [http://code.djangoproject.com/ticket/14234]. I'd be happy to work

Re: ModelForm possible validation bug

2010-09-16 Thread David Reynolds
Hi, I would really appreciate some feedback on this. Thanks, David On 8 Sep 2010, at 09:39, David Reynolds wrote: > > On 7 Sep 2010, at 16:48, David Reynolds wrote: > >> Hi folks, >> >> I am running into a validation problem with ModelForms - here is a q

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

2010-10-01 Thread David Larlet
equired to make this happen: * Documentation. It looks like David Larlet has made a start on this already, but there's lots more required. Yes, only a start but I'm working on it, any help is really appreciated. * Conversion of the github project into a patch on trunk. Do you see

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

2010-10-05 Thread David Larlet
o.shortcuts.redirect does Done, no more post_save_redirect argument but View.redirect_to() #13842: XViewMiddleware fails with class-based views Must be fixed before class-based views merge. I hope I didn't forget one, it's really hard to search with Trac... Best, David -- You re

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

2010-10-19 Thread David Gouldin
As client-side templates become more popular, it is increasingly likely that django's template language will not be the only one present in a template. (jQuery's new template language makes frequent use of curly braces in its syntax.) At the same time, the assumption that all template syntax shou

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

2010-10-19 Thread David Gouldin
Given 2 +1s, I've added a ticket: http://code.djangoproject.com/ticket/14502 On Oct 19, 6:49 pm, Jacob Kaplan-Moss wrote: > On Tue, Oct 19, 2010 at 12:24 PM, David Gouldin wrote: > > Thoughts/opinions? > > Looks like a good idea to me. I've certainly used ssi as a h

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

2010-10-20 Thread David Danier
%}{% cache ... %} this will be cached content: FOOBAR {{ some_var }} this will not be cached content: {% verbatim %}{{ user }}{% verbatim %} {% endcache %}{% endrender %} I could even provide some code for a {% render %}-tag, as I use something like this in production. David -- You receive

CSV serializer?

2010-10-26 Thread David Lindquist
I was wondering what the prospect was of getting a CSV serializer added to Django. It seems like it would be useful for many use cases, especially for bulk editing of objects by non-technical users. We have this requirement where I work, so I wrote a CSV serializer: http://djangosnippets.org/snippe

Re: CSV serializer?

2010-10-26 Thread David Lindquist
On Oct 26, 8:05 am, Russell Keith-Magee wrote: > On Tue, Oct 26, 2010 at 12:01 PM, David Lindquist > > wrote: > > I was wondering what the prospect was of getting a CSV serializer > > added to Django. It seems like it would be useful for many use cases, > > esp

Re: CSV serializer?

2010-10-26 Thread David Lindquist
For what it's worth, here are some of the decisions that I made in the serializer I linked to above. - m2m values are serialized as comma separated values surrounded by brackets, like Python lists: "[1, 2, 3]" - The Python contstants True, False, and None are serialized as the strings "True", "Fal

Re: Ticket #7817: Extending "with" and "include" tags.

2010-10-27 Thread David Danier
ld become: {% blocktrans count var1=foo var2=bar %} David -- 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

Changing settings per test

2010-11-04 Thread David Cramer
A common behavior I seem to have is the need to tweak the settings object for certain test cases. The other case is that in many cases we were (are?) relying on settings being configured a certain way for the Django tests to even work. I brought this up in #django-dev a while back, but wanted to op

Re: Changing settings per test

2010-11-04 Thread David Cramer
With a decorator approach here's what I whipped up: (This is dry code) def with_settings(**overrides): """Allows you to define settings that are required for this function to work""" NotDefined = object() def wrapped(func): @wraps(func) def _with_settings(*args, **kwar

Re: Changing settings per test

2010-11-04 Thread David Cramer
in _orig.iteritems(): if v is NotDefined: delattr(settings, k) else: setattr(settings, k, v) return _with_settings return wrapped -- David Cramer http://www.davidcramer.net On Thu, Nov 4, 2010 at 2:26

Re: Changing settings per test

2010-11-05 Thread David Cramer
I was going to propose the same thing Santiago. Signals seem like the ideal candidate to solve that problem. -- David Cramer http://www.davidcramer.net On Fri, Nov 5, 2010 at 4:57 AM, Santiago Perez wrote: >>  * Settings that are internally cached. For example, anything that >&

Disqus API 3.0

2010-11-11 Thread David Cramer
We have been working on a new version of the API these past couple of months, and we're nearing a public release. I wanted to take this opportunity to see if any of the heavy API users (specific needs, etc) would like to chime in with what they want to see, and possible give our docs/api testing to

Re: Namspace packages in Django

2011-01-05 Thread David Reynolds
each using the pkgutil.extend_path() trick. However only the first one on the path will be searched for management commands. Hopefully Nils' patch will fix this situation too -- David Reynolds da...@reynoldsfamily.org.uk -- You received this message because you are s

Re: contrib 's FormWizard needs a lot of work

2011-01-06 Thread David Durham
If I'm reading this code correctly: https://github.com/stephrdev/django-formwizard/blob/master/formwizard/forms.py I think this implementation misses the core point I was trying to address with #9200, that you should not have to POST in order to navigate to a step/form in the wizard. My implem

Re: contrib 's FormWizard needs a lot of work

2011-01-06 Thread David Durham
On Thu, Jan 6, 2011 at 4:22 PM, Stephan Jäkel wrote: > Hi David, > > you should take a look at the NamedUrlFormWizard. In this second approach, > after successful posting a form, a redirect is done to get the user to the > next step. Is this the point you meant? > > Using t

Re: One Django instance, hundreds of websites

2011-01-26 Thread David Danier
ble to have different urlconfs or templates or ... David -- 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 unsubscribe from this group, send email

Pluggable models

2011-01-31 Thread David Greisen
models. There are other internals that will need to be modified, besides these three methods, in order to eliminate the occasional errors I'm getting in syncdb; I'm still figuring out what those are. Your feedback is appreciated. David Greisen -- You received this message because you are s

Backwards Incompatible API Changes

2011-02-10 Thread David Cramer
We're going to be deploying a backwards incompatible change to all "since" values in the API. Any endpoint which accepts this parameter to use as a form of range pagination will now include the value sent, as well as values before or after it (depending on the order). For example, in the original

Re: Backwards Incompatible API Changes

2011-02-10 Thread David Cramer
I have no idea how I've done this, twice. On Feb 10, 2:16 pm, Alex Gaynor wrote: > On Thu, Feb 10, 2011 at 5:14 PM, David Cramer wrote: > > We're going to be deploying a backwards incompatible change to all > > "since" values in the API. Any endpoint which acc

Re: Default project layout / directory structure

2011-03-14 Thread David Cramer
Check out django-startproject from lincolnloop.com https://github.com/lincolnloop/django-startproject Kill off all the server configs (though some of it might be cool, like Fabric integration), and I think it'd make for a pretty good base to work from if this were to go into core. On Mar 13, 9:1

Re: Expensive queryset cloning

2011-03-15 Thread David Cramer
In our profiling we've also noticed the cloning to be one of the slowest parts of the app (that and instantiation of model objects). We haven't yet, but had been planning on exploring a way to mutate the existing class in most circumstances, but haven't dug into it too much yet. On Mar 14, 11:16 

Re: Django urls in JavaScript

2011-03-24 Thread David Danier
e idea of using some kind of context processors for JS-context is what this email is about. ;-) David -- 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

<    1   2   3   4   5   6   7   8   9   >