Re: Django Continuous Integration

2009-01-14 Thread Adam V.
> Revision Control: How do you layout your development repository? I'm > using Subversion for my setup but would be interested in hearing what > else others are using (Mercurial, Bazaar, Git, etc) We're using Subversion. We have one big repository, but we treat it like two top-level repository,

Re: Django book says MSSQL works with 1.0...?

2008-10-09 Thread Adam V.
I'm the django-mssql maintainer; please do post in bugs or weirdness you run into to http://code.google.com/p/django-mssql/ and I'll try to get the fixed. Thanks, -Adam V. (For what it's worth, at work we're using Apache + mod_python for our internal development; haven'

Re: Django book says MSSQL works with 1.0...?

2008-10-10 Thread Adam V.
> OT: I respect your position but, why you use mssql? Our IT systems at work are already Windows / SQL Server based, so it made sense to do our new web development against the same database. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: : msiexec and Python 2.6.1 on Windows

2009-03-12 Thread Adam V.
There is a bug in Python 2.6.1 (introduced in that version, it wasn't there in 2.6) which is that the CRT manifests aren't set up correctly. This prevents, for instance, compiling and using mod_python 2.6.1 against Apache without giving httpd.exe a manifest file. http://bugs.python.org/issue4566

Re: Using pluralize with floats?

2009-06-23 Thread Adam V.
Float is an inexact numeric type, so this sort of thing gets problematic. For a "number of bathrooms" field, why not use a CharField with a limited set of choices or custom validation? On Jun 23, 12:19 pm, Peter Schroeder wrote: > Hello, > > Has anyone tried to use pluralize template tag with a

Re: Customzing form fields in Admin in list_editable mode?

2009-08-06 Thread Adam V.
Bug entered w/ patch: http://code.djangoproject.com/ticket/11651 On Jun 18, 1:24 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 3:21 PM, Adam V. wrote: > > > Alex, thanks; that's what I was afraid of. > > If no one else has, I'd be willing to take a stab at a pa

Re: Pagination in the admin , where is?

2009-08-06 Thread Adam V.
ModelAdmin.list_per_page will let you control how many items appear on a particular admin list: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_per_page On Aug 6, 7:50 pm, Asinox wrote: > Well, i cant find any about it, i want to know if the paginatio

Re: What's the most scalable Django deployment out there currently?

2009-03-24 Thread Adam V.
Curse (http://www.curse.com/) manages to stay up on WoW patch day, so that's a pretty good sign. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users

Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
When enabling bulk edit mode for an Admin list view, is it possible to control the widgets used? For the normal editor you can of course specify a custom form, but I'm not seeing a way to customize the fields in the list view. Basically, I want to specify that some text fields fields in the list

Re: Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
Alex, thanks; that's what I was afraid of. If no one else has, I'd be willing to take a stab at a patch for 1.2. On Jun 18, 12:40 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 2:38 PM, Adam V. wrote: > > > When enabling bulk edit mode for an Admin list view, is it p

Re: Can I tell IE not to cache data?

2009-09-17 Thread Adam V.
This is via an AJAX request, I assume? For IE, you'll want to throw a bogus querystring on the end of the URL, to make it different, so that IE won't cache it: client side Javascript: url = whatever the url is normally. var sep = (-1 < url.indexOf("?")) ? "&" : "?" url = url + sep + "__=" + encod

Re: Cannot build psycopg2 in x86_64

2009-09-28 Thread Adam V.
If I remember correctly (and I might not be, and my 10.5 box is at work), the Python that comes with 10.5 does not have 64-bit support baked in, which basically means that extensions compiled against it won't either. You'll either need to build a custom Python w/ 64-bit support, or force the buil

Re: do we need MEDIA_ROOT and MEDIA_URL anymore?

2010-11-17 Thread Adam V.
On Nov 17, 2:07 am, MiratCanBayrak wrote: > Hi, > > I understood that in new version of django we are using > STATICFILES_ROOT and STATICFILES_URL instead OF MEDIA_ROOT and > MEDIA_URL. > > But when i look at settings.py i see both of them. When do we use > MEDIA? when do we use STATICFILES ? >

Re: mac No module named _md5 error

2010-11-18 Thread Adam V.
How did you install 2.6.6, and what does "which python" give you? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+uns

Re: Django - Alternative to using NULLs? (for integer and FK fields).

2010-11-29 Thread Adam V.
A "phone number" is actually a character string, not an integer; so use CharField for these as well. For optional foreign keys, the standard (only?) database way to handle these is indeed with a NULL value. On Nov 29, 5:28 pm, Victor Hooi wrote: > Hi, > > I'm wondering what the community's stance

Re: Django with SQL Server

2008-03-25 Thread Adam V.
Not only is Django's pack-in MS Sql backend broken, but the last set of updates to adodbapi-2.1 to add IronPython support actually broke standard Win32/COM support in some areas. There are some now externally maintained SQL Server backends for (trunk) Django: * http://code.google.com/p/django-mss

Re: Django with SQL Server

2008-03-25 Thread Adam V.
> Should I go ahead and swap the backend code out for of these backends? The fact that I created a separate project basically speaks to my suggestion (swap out.) [I would kind of prefer if MS SQL support was dropped entirely from django-svn (unless the upcoming foundation is going to spend some

Re: microsoft sql server 2005

2008-05-19 Thread Adam V.
It's possible to use Django (trunk, best against 7540 or better to get the most recent security fixes) against SS2005 with the caveat that there is no core support for doing this. I'm maintaining an external database backend here: http://code.google.com/p/django-mssql/ That backend works well e

Re: connection.queries - show improper SQL?

2008-07-08 Thread Adam V.
>From the source for QuerySet.__str__: Returns the query as a string of SQL with the parameter values substituted in. Parameter values won't necessarily be quoted correctly, since that is done by the database interface at execution time. The __str__ method just does a naive Python % operation,