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: 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: 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: 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: 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: 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: 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: 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: 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: 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: request object out of a view (I need to access session['data'])

2007-04-04 Thread Adrian Ribao
Ok Thank you very much both of you, and sorry about missunderstanding what James said. I understand it now. I'll try it as soon as I arrive home. Thank you. 2007/4/3, Karen Tracey <[EMAIL PROTECTED]>: > > I'll try to elaborate what James said. (Did you consult the documentation > links he pointed

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:

Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-03 Thread Adrian R.
filter()- function with raw sql. Is it possible without rewriting/copy and modify half of the Django sourcecode?;) -- Regards Adrian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Using raw SQL with filter-support (or: speeding up MySQL views)

2007-12-04 Thread Adrian R.
7;t get you a QuerySet but does get you model objects. Under the > hood, this is how QuerySet spits back objects when you ask for them. That works so far but it would be great to use the select_related() and other methods. Is there nothing like a QuerySet/model which takes custom queries

Re: Djangonauts at the hack day?

2006-09-27 Thread Adrian Holovaty
On 9/26/06, Sandro <[EMAIL PROTECTED]> wrote: > Any fellow djangonauts going to be at the hackday? I'm going, hope to > see some of you there! I was wanting to go, but I've got a previous engagement for that weekend. Have a good time, and make us proud! Adrian -- Adrian

Re: Djangonauts at the hack day?

2006-09-28 Thread Adrian Holovaty
as much as possible with this > thing on! Sweet. :) 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 gr

Re: "slice" xhtml content and keep it valid xhtml?

2006-09-28 Thread Adrian Holovaty
forge.net/ . It will fix invalid (X)HTML, and there's a nice Python wrapper for it. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Why I'm giving up on Django

2006-09-28 Thread Adrian Holovaty
in after a while. Have fun with the PHP! 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

Re: HTTPS protocol

2006-09-29 Thread Adrian Holovaty
ango Web framework. It's really up to you how you get a certificate and hook it into your server. If you'll be using Django with Apache, you'll want to follow Apache's guidelines for registering certificates with Apache. Adrian -- Adrian Hol

Re: Need help understanding Custom Views

2006-09-29 Thread Adrian Holovaty
. Hey Adam, A view is just a Python function. This may come off as sounding abrupt (which is not my intention), but what part of it don't you understand? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received thi

Re: contrib comment system

2006-10-03 Thread Adrian Holovaty
On 10/3/06, Onno Timmerman <[EMAIL PROTECTED]> wrote: > Is there somewhere some docs on the comment system in the contrib. Hi Onno, The comment system is undocumented at this point. As such, that means there's no guarantee it will stay in its current form. Adrian -- A

Re: Support for static content?

2006-10-05 Thread Adrian Holovaty
There is no reason you'd have to store your text in a database, except if you wanted your text to be edited by Django's admin interface. But if you're using SVN to manage your data, you wouldn't want that, anyway. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --

Re: How do I add a unique constraint to a table column?

2006-10-05 Thread Adrian Holovaty
On 10/5/06, carlwenrich <[EMAIL PROTECTED]> wrote: > in a model definition Hi carlwenrich, A short question deserves a short answer: Add unique=True to your field. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You

Re: Support for static content?

2006-10-05 Thread Adrian Holovaty
h the template can operate, and pass the data structure off to the > rendering code? Wow, suddenly that looks easy. Yes, that's exactly it. Like I said, there's no need to use a database. Glad you've got it. :) Adrian -- Adrian Holov

Re: Django's target applications?

2006-10-06 Thread Adrian Holovaty
p://www.djangoproject.com/documentation/faq/ 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: Paginator Overhall

2006-10-13 Thread Adrian Holovaty
ould have access to all the stuff you needed in your template. Am I missing something? > And to any of the Django admins - would a substantial upgrade of this > kind to paginator be allowable, or are you locked down on its API until > v2? The paginator class has never been documented i

Re: A modest plea

2006-10-22 Thread Adrian Holovaty
s do this, either. With that said, I'm wondering whether we can completely disable that field. Any Trac experts around? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Curious about 1.0 release.

2006-10-25 Thread Adrian Holovaty
On 10/25/06, sansmojo <[EMAIL PROTECTED]> wrote: > Any ideas of how I might offer a proof (or strong evidence) of 0.95's > stability? We have an aptly named "API stability" document: http://www.djangoproject.com/documentation/api_stability/ Adrian -- A

Re: Curious about 1.0 release.

2006-10-25 Thread Adrian Holovaty
for my sites (chicagocrime.org and the various washingtonpost.com apps): They're on 0.95. Tabblo is as well. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Hiring Django developers

2006-10-25 Thread Adrian Holovaty
use99, It's OK to post a job ad to this list. There's also a wiki page for job openings and job candidates: http://code.djangoproject.com/wiki/DevelopersForHire . Plus, there's an unofficial job board at http://gypsyjobs.com/ . Good luck with your search! Adrian --

Re: status of authentication updates?

2006-10-25 Thread Adrian Holovaty
e. Jacob and I have been preparing a Django book extravaganza; look for an announcement today or tomorrow. We're also getting back into the game of checking in patches and feature additions. I predict the next few weeks will be super-productive. Adrian

Re: "first_name" -> "First Name"

2006-10-30 Thread Adrian Holovaty
#x27; ') If you want to use initial caps as well, just call .title() on the string. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Django or TurboGears for a new survery application?

2006-11-05 Thread Adrian Holovaty
olitical level, with predictable results in terms of usability and elegance. Django's philosophy is closer to that of a Mac, which values usability, productivity and a great user experience while allowing for a fair amount of flexibility under the hood. At the end of the day, it'

Re: Creating one call for most recent entry, and another call for the restI have just set up a blog using the helpful tutorial over at

2006-11-12 Thread Adrian Holovaty
ave to do this: {% ifequal forloop.counter "1" %} Use this instead: {% if forloop.first %} For more on "forloop", see the "for" section here: http://www.djangobook.com/en/beta/chapter04/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-

Re: Updated, now hosed.

2006-11-13 Thread Adrian Holovaty
; > Appears to be any page using a generic view, I think. Had to turn feeds > off. This appears to be a syntax error in your model. Run "python manage.py validate" to see whether it displays any errors. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~-

Re: A Rails/Django Comparison

2006-11-14 Thread Adrian Holovaty
tic free documentation, plus a free book that's in the process of being finished (djangobook.com). Dozens of people have told me this is a key Django advantage in their experiences. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~

Re: Online "beta" Book

2006-11-15 Thread Adrian Holovaty
e time the book goes to press. Just to clarify this, this Oracle support was added to the Django development version, not the 0.95 release. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are

Re: Inside look at Ellington?

2006-11-16 Thread Adrian Holovaty
can give you more information. This really isn't the best place to ask Ellington questions, as it's a specific Django application rather than a generic piece of Django. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You

Re: Online "beta" Book

2006-11-17 Thread Adrian Holovaty
'd say a merge of the Oracle branch is very likely this year. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: How do you use multiple forms on one page?

2006-11-27 Thread Adrian Holovaty
velopment version (from our Subversion repository) and reading the unit tests/documentation in tests/regressiontests/forms/tests.py. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Session problems

2006-11-27 Thread Adrian Holovaty
sponse object also matches. It also matches the time when > the users noticed it. > > I'll be upgrading both apache2 and mod python soon to their latest > versions, we'll see if this happens again. Hi Jakub, Do you have any updates on this problem? Was it a mod_python bug?

Re: Why not Django

2006-11-28 Thread Adrian Holovaty
ject! Everybody has different needs, and we can't meet all of them all of the time. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: {# comments? #} and django update process via svn

2006-11-30 Thread Adrian Holovaty
to be available. Which begs the question: am I not fully updating? > Is there something else I should be doing to complete the update > process? Hi hotani, The {# syntax #} only works for single-line comments. For multi-line comments, use the old style: {% comment %}{% endcomme

Django inspectsb and varchar-fields in MySQL

2006-12-01 Thread Adrian Rochau
Hello! I'm writing a frontend for a MySQL-based testsystem. I used inspectdb to create my Django-models and many fields are guessed correct, but every varchar-field has a length multiplyed by 3. Do you know why? --~--~-~--~~~---~--~~ You received this message be

Re: Support Ticket System

2006-12-01 Thread Adrian Holovaty
rmanent fixture of your website. Let me just add: The admin interface *is* intended to be a permanent fixture of your site, but it's intended to be only for site administrators to use -- not for the public. Adrian -- Adrian Holovaty holovaty.

Re: Admin 404s on users

2006-12-04 Thread Adrian Holovaty
click on my own user name. Try setting DEBUG=True and reading the 404 error page. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Admin 404s on users

2006-12-04 Thread Adrian Holovaty
em to recall having a similar problem once, where the PermissionDoesNotExist exception was causing a 404. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: SQLAlchemy Progress

2006-12-05 Thread Adrian Holovaty
n follow the progress on this page, which lists all of the changes to the branch: http://code.djangoproject.com/log/django/branches/sqlalchemy Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you ar

Re: Admin: recursive edit_inline possible?

2006-12-05 Thread Adrian Holovaty
ur best bet at this point is to write custom admin views/templates. 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

Re: problems turning debug off

2006-12-05 Thread Adrian Holovaty
nd EMAIL_HOST settings are correct -- then, Django will e-mail you the tracebacks for any error. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Admin 404s on users

2006-12-07 Thread Adrian Holovaty
code, assuming you're using the Django development version. Then, making sure DEBUG=True, try loading the admin user page again. You will get a more useful error message. Let's cross our fingers that the error message will help you debug what's wrong. Adrian

Re: is there a way to combine generic views?

2006-12-07 Thread Adrian Holovaty
I > don't need in that case -- just the processing. > I suppose it's just not the use case of the generic views -- they are not > for this. Hi Anton, You suppose correctly. :) None of the generic views combine an "object detail" with "object list." Adrian

Re: Optimizing Templates

2006-12-07 Thread Adrian Holovaty
es, we may be able to give you concrete suggestions. 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 th

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 --~--~-~--~---

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: 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: 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: 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: 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: 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: mysql MyISAM save woe

2006-12-11 Thread Adrian Holovaty
utoincrementing—it > should have assigned AutoFields instead of IntegerFields. > > Bug? Should I file it? Yes, definitely go ahead and file that. Looks like the "inspectdb" option should do a better job of detecting AutoFields on MyISAM tables. (Have you confirmed it only happen

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: 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: 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: 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: 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-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: 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: 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

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: 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 &

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: 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: 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: '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: '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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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-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

<    1   2   3   4   5   6   7   8   9   10   >