Re: Djangobook Revisions for 1.0 release

2008-09-07 Thread Adrian Holovaty
p today at DjangoCon during the "Future of Django" session, and the audience approved of the idea, but I'll need to explore the amount of work involved. Adrian -- Adrian Holovaty holovaty.com | everyblock.com | djangoproject.com --~--~-~--~~~---~--~-

Re: Anybody used Google app engine, and wanna share their experience?

2008-04-08 Thread Adrian Holovaty
> wsgi.multiprocess > wsgi.multithread > wsgi.run_once Here you go, Graham: 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': True, 'wsgi.url_scheme': 'http', 'wsgi.version

Re: Anybody used Google app engine, and wanna share their experience?

2008-04-07 Thread Adrian Holovaty
URLCONF='blog', ) handlers.CGIHandler().run(WSGIHandler()) if __name__ == "__main__": main() Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | everyblock.com --~--~-~--~~~---~--~-

Re: Best Practices to Make your Apps Portable

2007-07-25 Thread Adrian Holovaty
* a good method to use if you want to distribute your application, however. We need better documentation about best practices to make apps portable. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because

ANN: Upcoming backwards-incompatible changes to Django development version

2007-04-06 Thread Adrian Holovaty
goproject.com/wiki/BackwardsIncompatibleChanges This is, we hope, the final run of backwards-incompatible changes before version 1.0, at which point we'll be committed to compatibility. If you'd like to discuss these changes, feel free to post a message to the django-developers mailing list:

Re: development server

2007-03-29 Thread Adrian Holovaty
I use it almost every day. Are you on Windows? What are you doing when it crashes? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread Adrian Holovaty
d of time. If you're operating a site like feedvalidator.org whose main purpose is to retrieve Web pages dynamically and do some operations on them, you're stuck making the requests from within the view. Anyway, hope this helps. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com

Re: raw_id_admin and newforms

2007-03-29 Thread Adrian Holovaty
ion -- i.e., it is configuration for the Django admin site. As such, it doesn't have much to do with the newforms library. You can easily replicate its fundamental functionality using newforms, though -- just use a TextField rather than a ChoiceField. Adrian -- Adrian Holovaty holovaty.com

Re: Forms vs. Models: Redundant?

2007-03-27 Thread Adrian Holovaty
nd as > well? Patience, TaMeR, patience. :) The form_for_model and form_for_instance functions, which Tim Chase mentioned earlier in this thread, are not yet documented (or 100% complete). Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread Adrian Holovaty
code in memory at the production-server level far outweigh the convenience of being able to make changes without restarting. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Nested edit_inline?

2007-03-14 Thread Adrian Holovaty
uestion and Answer models, but of course, it didn't work. Hi Daniel, No, this isn't currently possible. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: new forms admin

2007-03-08 Thread Adrian Holovaty
/NewformsAdminBranch Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ 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@google

Re: newforms form_for_instance returning IntegerField for PhoneNumberFields

2007-02-20 Thread Adrian Holovaty
erField widget, however, I'd like to be able to use > form_for_instance(). Hey Matt, This should be fixed in revision [4556]. Thanks for pointing it out! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this mes

Re: Database changes

2007-02-19 Thread Adrian Holovaty
to a model, how do I update the database?" http://www.djangoproject.com/documentation/faq/#if-i-make-changes-to-a-model-how-do-i-update-the-database Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because yo

Re: Custom validator equivalent for newforms

2007-02-19 Thread Adrian Holovaty
s. The unit tests are linked-to from the newforms documentation. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Newforms, form_for_model, help_text and unicode.

2007-02-19 Thread Adrian Holovaty
..): > self.help_text = smart_unicode(help_text) Thanks, Sandro. I fixed the bug in changeset [4543]. Note that the patch wasn't exactly that, as it had to account for the case of empty help_text (help_text is None). Adrian -- Adrian Holova

Re: Preliminary or draft Django Book as PDF?

2007-02-13 Thread Adrian Holovaty
m the site. > > Do the authors have something of the sort somewhere? Not yet, but stay tuned. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Clone DjangoBook.com -- Open book platform beta release

2007-02-11 Thread Adrian Holovaty
cool. Thanks, Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ 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@googlegroups.com

Re: Using __str__ with DateField

2007-02-10 Thread Adrian Holovaty
) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ 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@googlegroups.com To un

Re: Forms inheritance

2007-02-05 Thread Adrian Holovaty
to do as Honza suggested, but in the long term, you'll be able to subclass forms and add fields declaratively. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: create_object(follow) what is parameter follow?

2007-02-05 Thread Adrian Holovaty
On 2/4/07, James Bennett <[EMAIL PROTECTED]> wrote: > Its existence has always been a bit of a hack, and I'm hoping newforms > will get rid of it once and for all. Yes, "follow" is going away, and good riddance. Adrian -- Adrian Holovaty holov

Re: Newforms usage and documentation

2007-02-05 Thread Adrian Holovaty
is here: http://www.djangoproject.com/documentation/newforms/ I can't vouch for any non-djangoproject.com documentation, or anything posted on our wiki (code.djangoproject.com). In those cases, the docs may or may not be correct. Adrian -- Adrian Holovaty holovaty.com

Re: New Forms + Validation

2007-02-01 Thread Adrian Holovaty
You can either implement a custom Field class *or* implement a clean_* method. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: fiter for week

2007-01-30 Thread Adrian Holovaty
On 1/30/07, Rob Slotboom <[EMAIL PROTECTED]> wrote: > Before re-inventing, I want to ask if there is some build-in for > getting objects for [a || this] week. > > Something like: > > objects.filter(pubdate__week=now.week) Hi Rob, That database lookup type doesn'

Re: Help with Last Seen (why doesn't this work???)

2007-01-29 Thread Adrian Holovaty
On 1/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > C'mon guys... anyone? Hey there, Please don't "bump" your threads like this -- it's unacceptable mailing-list behavior. Adrian -- Adrian Holovat

Re: OT: .pystartup

2007-01-28 Thread Adrian Holovaty
provide a patch, we'll integrate it into Django. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: Sites crashing after moving to 4431

2007-01-26 Thread Adrian Holovaty
with the changes made to the Django repository. This is always a risk when you make local changes to your copy of the Django framework. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subs

Re: dynamic form with newforms

2007-01-23 Thread Adrian Holovaty
the self.fields dictionary. Judging by what you said about your lack of Python experience, my advice would be for you to wait until we've got documentation on building forms dynamically. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~

Re: UnicodeDecodeError with labels of choices (for newforms.ChoiceField with RadioSelect widget)

2007-01-23 Thread Adrian Holovaty
ary expects Unicode strings. If this indeed is the problem, one solution would be to change django/newforms/fields.py to wrap every occurrence of gettext() in smart_unicode(), like so: smart_unicode(gettext(u'Some characters')) Would you be willing to test this out in you

Re: dot asp files in wiki

2007-01-22 Thread Adrian Holovaty
On 1/22/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > on this page of the wiki: > http://code.djangoproject.com/wiki/AJAX > > i see something that looks like asp and vb files ... do they belong > here? I've removed them. Thanks for the heads-up. Adrian -- Ad

Re: newforms: max_length or maxlength

2007-01-22 Thread Adrian Holovaty
th > too? Hi Michel, The newforms.CharField class intentionally uses max_length rather than maxlength. We'll eventually be changing the model field syntax to use max_length rather than maxlength, so this was a futureproofing decision. Adrian -- Adrian Holovaty holo

Re: SSL and Django ?

2007-01-21 Thread Adrian Holovaty
ages, except pages which are using render_to_response. > > Is it because of render_to_response ? Or some apache configuration ? It's because of Apache configuration. There's nothing in render_to_response that would have any effect on SSL. Adrian -- Adrian Holovat

Re: Stephane += Aspen 0.7 (Python webserver)

2007-01-19 Thread Adrian Holovaty
http://code.google.com/p/aspen-commons/wiki/Stephane Does this address the issue? Looks much better! Good work. :-) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: newforms validation

2007-01-17 Thread Adrian Holovaty
nt know about its' form so how does this help my Field.clean(self, value) validator? With respect, I think you should wait until the library is fully documented. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this me

Re: Stephane += Aspen 0.7 (Python webserver)

2007-01-17 Thread Adrian Holovaty
oduction, but it looks promising. However, it's super inelegant to require a Django project to be called "stephane" in order to use it with Stephane. Surely you could remove that requirement somehow? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~--

Re: newforms validation

2007-01-17 Thread Adrian Holovaty
e form library itself knows nothing about request objects. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: anyone got Django running on Redhat ES in production?

2007-01-17 Thread Adrian Holovaty
;m not sure whether they're still using ES for everything, but it certainly works well with Django, if that's what you're asking. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you ar

Re: subclassing in newforms

2007-01-17 Thread Adrian Holovaty
ields in the same way. But you're not the first person who's tried to do this, so there's something intuitive about just subclassing a form and specifying some more fields as class attributes... Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~--

Re: Initialize _big_ form

2007-01-16 Thread Adrian Holovaty
tions for improvement are welcome! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: CheckboxSelectMultiple widget

2007-01-16 Thread Adrian Holovaty
ode.djangoproject.com/ticket/3312 Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: Geocoding in contrib admin

2007-01-16 Thread Adrian Holovaty
when clicked, would do the geocoding server-side and populate the long/lat fields with the result. You can do this by hooking into the admin site with JavaScript (the "js" option to "class Admin") or by overriding the template for that particular admin page. Adrian -- Ad

Re: date format other than YYYY-MM-DD

2007-01-12 Thread Adrian Holovaty
On 1/12/07, Andres Luga <[EMAIL PROTECTED]> wrote: > Any idea if newforms simplifies this? Yes, newforms DateFields let you specify the input format(s). This has yet to be integrated into the Django admin, but it will be sooner rather than later. Adrian -- Adrian Holovaty hol

Re: The order of ""Add-on applications (contrib)" section

2007-01-11 Thread Adrian Holovaty
navigation. The Django Book, on the other hand, is meant to be a more linear way of learning the whole framework, so its "contrib" chapter (http://www.djangobook.com/en/beta/chapter15/) does indeed mention Sites before Flatpages. Adrian -- Adrian Holovaty holovaty.com | djangoproject

Re: Django i18n How

2007-01-10 Thread Adrian Holovaty
" I'll be adding a section to that chapter about how strategies for internationalizing data. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: dynamic newforms in a template

2007-01-08 Thread Adrian Holovaty
em in a template, rather than using something like {{ form.as_p }}. Pass the whole Form object to the template, not a list of Fields. Then use lookup syntax to access the field: {{ form.field_name }} Adrian -- Adrian Holovaty holovaty.com | d

Re: Removing SQL From Templates

2007-01-08 Thread Adrian Holovaty
attribute access in the template. The template system itself knows nothing about SQL. So, I'm not sure what you're proposing here... Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are

Re: newforms and umlaut

2007-01-08 Thread Adrian Holovaty
ant to display "Überschrift" instead of Überschrift", use "Überschrift" instead of Überschrift" for the label. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are

Re: License Terms

2007-01-06 Thread Adrian Holovaty
of BSD license. But what about thee code we have written? Can we sell it with our own license? Yes, you can sell it with your own license. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subs

Re: newforms & object save

2007-01-06 Thread Adrian Holovaty
currently naive about foreign-key values. We should improve it so that it handles foreign-key values properly. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Handling bad URLs

2007-01-05 Thread Adrian Holovaty
uldn't be a good thing. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: RFC newforms usage

2007-01-05 Thread Adrian Holovaty
atting) Here's the code: http://dpaste.com/hold/4382/ Also, delete_academic_year() should check request.method == 'POST'. As it stands, anybody who visits that page via GET will cause deletion. Deletion should only happen via POST. Adrian -- Adrian Holovaty holovaty.co

Re: RFC newforms usage

2007-01-05 Thread Adrian Holovaty
e/') else: context = {'form': form, 'error_msg': "Please correct the error(s) below"} else: context = {'form': AcademicYearForm()} return render_to_response('academic_year.html', context) Adrian -- Adrian Holovaty holovaty.

Re: Django on REDHAT ES

2007-01-04 Thread Adrian Holovaty
http://www.djangobook.com/en/beta/chapter14/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: django.core.handlers.modpython imported several times

2007-01-04 Thread Adrian Holovaty
sense or is wrong, no one seems to make an attempt to address it. Hi Graham, Could I trouble you to bring up those issues again? I did a quick search and assume you're talking about this comment of yours: http://www.djangoproject.com/documentation/modpython/#c2029 Adrian -- Adrian Holov

Re: FormGen Script

2007-01-04 Thread Adrian Holovaty
el and form_for_fields? They're intended to do these things in a dynamic way. See the unit tests in tests/modeltests/model_forms/models.py for examples. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message beca

Re: django.core.handlers.modpython imported several times

2007-01-03 Thread Adrian Holovaty
t's never caused any problems for me. :) With that said, I would be grateful if anybody could explain why that happens, and if we need to change something on Django's end so that, at the very least, people's logfiles won't get cluttered

Re: Newforms clean_data

2007-01-03 Thread Adrian Holovaty
d idea -- I agree it would help avoid confusion. In changeset [4284], I've changed the Form class so that Form.clean_data only exists if a Form is valid. Otherwise, you'll get an AttributeError if you try to access it. Thanks for the suggestion! Adrian -- Adrian Holovaty holovaty.com | d

Re: Newforms and composite widgets

2007-01-03 Thread Adrian Holovaty
cessary because the SelectDateWidget requires three values instead of one. Make sense? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Need a little push with Newforms

2006-12-31 Thread Adrian Holovaty
he form class before sending it to the template, like so: ProjectForm = forms.form_for_model(Project) f = ProjectForm() return render_to_response('crm/addproject.html', {'theform': f}) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~-

Re: What's the best way to learn newforms?

2006-12-31 Thread Adrian Holovaty
es are intended to be suggestions and corrections for the docs themselves -- not tech support questions. We delete anything that doesn't comment directly on the docs, so that the comments section remains helpful. The place to ask questions is on django-users, not in the doc comments. Adrian

Re: optional arg. 'description' for widget?

2006-12-30 Thread Adrian Holovaty
g. Of course, there's nothing stopping you from implementing it in your own Widget subclasses, as you've already done. BTW, future questions/proposals like this should go to the django-developers mailing list -- that's where we talk about changes and improvemen

Re: UnicodeDecodeError with labels of choices (for newforms.ChoiceField with RadioSelect widget)

2006-12-30 Thread Adrian Holovaty
ou don't have to hack around it. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: UnicodeDecodeError with labels of choices (for newforms.ChoiceField with RadioSelect widget)

2006-12-30 Thread Adrian Holovaty
dec can't decode byte 0xc3 in position 13: ordinal not in range(128) Hi Jannis, Could you please paste the whole traceback for that error? Looks like there's a place in the newforms library that doesn't convert bytestrings properly, but in order to find the bug, I'll need to s

Re: Forms With Dynamic Numbers of Items

2006-12-30 Thread Adrian Holovaty
You're best off waiting for the newforms library, for which we're firming up the code and documentation. The docs we have so far are here: http://www.djangoproject.com/documentation/newforms/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~

Re: newforms validation

2006-12-29 Thread Adrian Holovaty
s with custom validation. A Field *is* a validator. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Newforms clean_data

2006-12-29 Thread Adrian Holovaty
me you accessed form.clean_data? I'm trying to decide whether that would be convenient or too magic. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: What's the best way to learn newforms?

2006-12-28 Thread Adrian Holovaty
, but all of the form stuff is important to me. If you're wanting an "official" way of learning the newforms library, I'm afraid you'll have to wait until the APIs have solidified and the documentation is done. This should be happening sooner rather than later.

Re: Crazy idea!

2006-12-27 Thread Adrian Holovaty
something like SQLAlchemy? :) If you're willing to go to "crazy" lengths, you might as well run Django as CGI. Check this ticket out for more information: http://code.djangoproject.com/ticket/2407 Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~

Re: Complex Data Models.

2006-12-27 Thread Adrian Holovaty
d we'll show you how to do it. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: What does get_object_or_404 return?

2006-12-27 Thread Adrian Holovaty
you told it the variable would be called. This dictionary: {'object': wkreport} ...tells the template system to make available the object wkreport as the template variable called "object". Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~---

Re: OneToOne in Models

2006-12-27 Thread Adrian Holovaty
Glad we got that figured out. :) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: OneToOne in Models

2006-12-27 Thread Adrian Holovaty
x27;t directly answer your question about one-to-one relationships, but wouldn't Comment -> Entry be a many-to-one relationship? Or would your blog only allow a single comment for each entry? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~---

Re: ChoiceField and dynamic input?

2006-12-27 Thread Adrian Holovaty
ld. You're getting the validation error because the *Field* does validation, not the Widget, and a Field has to know what its valid choices are in order to do validation correctly. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~-

Re: Limiting some fields on admin based on username

2006-12-27 Thread Adrian Holovaty
n only choose between pets that are mammals. How could I do this with the admin interface? Hi rlazo, This isn't currently possible with the admin interface. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this mess

Re: Project and App Layout.

2006-12-27 Thread Adrian Holovaty
t framework for storing one-off pages like the about/contact pages. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Creating an empty queryset

2006-12-27 Thread Adrian Holovaty
m not aware of a way to get an empty QuerySet without hitting the database. Maybe we should add one? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Adrian Holovaty
pretty lax about releasing "official" releases, to be honest. The good stuff is always in the development version, and many people use it rather than the released versions. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You r

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Adrian Holovaty
f Django (such as from svn), but not with 0.95. There is an explanation in the comments there that tell how to fix it. FYI, that's not a bug -- rather, it's a new feature in the Django development version. Callable objects in URLconfs were added after 0.95 was released. Adr

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Adrian Holovaty
lowing error: Are you using the Django 0.95 release or the Django development version? The Django book code refers to the Django development version, not to Django 0.95. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You receive

Re: Please comment on this small newforms sample

2006-12-26 Thread Adrian Holovaty
even further, because the AddEditCustomerForm could be generated from the model. (Of course, you might not want to do that, depending on whether your model has fields that you don't want to edit via that form.) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---

Re: old plain db-api

2006-12-26 Thread Adrian Holovaty
st): conn = psycopg2.connect('dbname=foo') cursor = conn.cursor() cursor.execute('xxx') There is no magic to be aware of. It's just plain Python. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~-

Re: Newforms and composite widgets

2006-12-24 Thread Adrian Holovaty
plit into three HTML fields but combined into a single datetime.date object by the widget value_from_datadict() method. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Wrapping up new site - Django observations

2006-12-18 Thread Adrian Holovaty
we add "general tools for integrating arbitrary SQL with Django QuerySets" -- any ideas on syntax? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Django meetup in San Francisco this Thursday?

2006-12-18 Thread Adrian Holovaty
Hello to any Bay Area Django folks out there -- I'll be in San Francisco later this week. Anybody interested in having a Django meetup Thursday night? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this me

Re: Limiting select_related()

2006-12-18 Thread Adrian Holovaty
functionality but don't have time to code it myself; any takers? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Newforms and composite widgets

2006-12-17 Thread Adrian Holovaty
On 12/17/06, Brian Victor <[EMAIL PROTECTED]> wrote: > Adrian Holovaty wrote: > > On 12/9/06, Brian Victor <[EMAIL PROTECTED]> wrote: > >> One of the things I was hoping for in newforms but haven't found is a > >> way to do a composite form field that u

Re: Switching branches (was "Schema Evolution code")

2006-12-15 Thread Adrian Holovaty
A patch to the documentation would be welcome. :) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Looser date entry in admin...

2006-12-15 Thread Adrian Holovaty
a certain month, but whether that's a problem depends on your application. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Switching branches (was "Schema Evolution code")

2006-12-14 Thread Adrian Holovaty
ing /too/ much > damage. :) Hey Tim, I've added some more instructions to the "Using branches" part of our documentation. Let me know if this helps. http://www.djangoproject.com/documentation/contributing/#using-branches Adrian

Re: newforms: MultipleChoiceField with CheckboxSelectMultiple

2006-12-12 Thread Adrian Holovaty
On 12/10/06, Ceph <[EMAIL PROTECTED]> wrote: > Ah. I was hoping wrongly that newforms would be able to handle getting > passed POST instead of having the parse the data manually into a dict. This has been fixed as of [4196], thanks to a patch from Honza. Adrian -- Adrian Holovaty

Re: Property overrides

2006-12-12 Thread Adrian Holovaty
> self.post_date = datetime.datetime.now() > > posted = property(get_posted, set_posted) Ah, right, good catch! Thanks for pointing out my mistake. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received thi

Re: Property overrides

2006-12-11 Thread Adrian Holovaty
ll set_posted() behind the scenes. Like I said, though, I'm not sure whether that would work with the way models are currently implemented. (But if not, let's go ahead and fix that!) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~

Re: mysql MyISAM save woe

2006-12-11 Thread Adrian Holovaty
s on MyISAM tables, as opposed to the other MySQL table types?) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: How would I add a custom widget in the admin for a ManyToMany relationship?

2006-12-08 Thread Adrian Holovaty
On 12/8/06, naitsirhc <[EMAIL PROTECTED]> wrote: > I'm kind of surprised that I didn't find > mention of the 'raw_id_admin' in my previous searches - is it > relatively new? Nope, it's not new -- raw_id_admin has been around since before Django was op

Re: Auto generate url patterns

2006-12-08 Thread Adrian Holovaty
Flatpages application that comes with Django? http://www.djangoproject.com/documentation/flatpages/ Also, I think you may be thinking about URLs in the wrong way. The URLconf is intended to be a collection of *patterns*, not a collection of every single *literal* URL possible. (Does that make sens

Re: Where to start with the upcoming newforms module?

2006-12-08 Thread Adrian Holovaty
ortError: cannot import name newforms I suspect you have multiple versions of Django installed, and your Python was pointed at the wrong one when you ran that import statement. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You

Re: Where to start with the upcoming newforms module?

2006-12-08 Thread Adrian Holovaty
ent to use. I'd encourage you to take a look at those unit tests again, even though you said you looked at them. Feel free to use newforms in your own applications. Otherwise, just stay patient until we update the documentation. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~-

Re: Upgrading from .95 to Development Version

2006-12-07 Thread Adrian Holovaty
hich shows how the admin looks through Firefox... > > http://static.flickr.com/108/316578699_11591b364d_o.gif I have never seen anything like that. I suspect the images are corrupted somehow, and I have no idea how that might have happened. Did you try redownloading and reinstalling Django? Adr

Re: HTTP PUT and DELETE with Django?

2006-12-07 Thread Adrian Holovaty
est_response/#attributes Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ 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@googlegro

Re: Admin 404s on users

2006-12-07 Thread Adrian Holovaty
from django.contrib.contenttypes.management import create_contenttypes from django.db.models import get_apps for app in get_apps(): create_contenttypes(app, created_models=None, verbosity=2) """ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~---

  1   2   3   4   5   6   7   8   9   >