Improvement: documentation example for extra Manager methods

2008-11-13 Thread [EMAIL PROTECTED]
are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Improvement: documentation example for extra Manager methods

2008-11-13 Thread [EMAIL PROTECTED]
:-) --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this grou

Re: Book or documentation first

2008-11-13 Thread [EMAIL PROTECTED]
. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more opti

Re: TemplateDoesNotExist

2008-11-14 Thread [EMAIL PROTECTED]
I think the problem was a combination of an incorrect template directory and forgetting to touch dispatch.fcgi, in any case, it seems to be working now. Thanks for the help, Jason On Nov 13, 4:32 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-11-13 at 11:12 -0800

Templates and method arguments for thumbnails

2008-11-15 Thread [EMAIL PROTECTED]
bed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Multithreaded Dev Server

2008-11-15 Thread [EMAIL PROTECTED]
http://www.oebfare.com/blog/2008/nov/03/writing-custom-management-command/ The CherryPy WSGI server should make this really, you could probably even deploy on it if you wanted. On Nov 16, 1:15 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 16, 4:40 pm, Chris <[EMAIL PROTE

Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread [EMAIL PROTECTED]
URL. Thanks Stefan On Nov 16, 1:16 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-16 at 12:58 +0100, Stefan Wallner wrote: > > p,,,[ > > > My basic idea would be to use the same URL and view/template for   > > getting the directory listing an

Caching and I18n

2008-11-16 Thread [EMAIL PROTECTED]
because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread [EMAIL PROTECTED]
Hi Malcolm, thanks for the fast response. I had thought about both approaches, but both didn't feel 100% right (more a gut feeling than anything). On Nov 16, 1:16 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-16 at 12:58 +0100, Stefan Wallner wrote: > >

Re: Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread [EMAIL PROTECTED]
n't happen anytime soon. On Nov 16, 1:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi Malcolm, > thanks for the fast reply. > > What is the downside of sticking this kind of information into a > session, just that the session backend needs to carry this a

Re: Caching and I18n

2008-11-16 Thread [EMAIL PROTECTED]
=utf-8 Content-Language: de 200 OK I'm lost. Maybe Beegee from the other thread found a solution in the meantime. On Nov 16, 10:33 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On Sun, Nov 16, 2008 at 10:51 AM, [EMAIL PROTECTED] > > > > > > <[EMAIL

Re: Multithreaded Dev Server

2008-11-16 Thread [EMAIL PROTECTED]
p. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

serving static file via django

2008-11-18 Thread [EMAIL PROTECTED]
. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more opti

Re: serving static file via django

2008-11-18 Thread [EMAIL PROTECTED]
david, can you illustrate how ? sorry -- havent worked with django signals earlier thnx, -p On Nov 18, 7:06 pm, "David Zhou" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 6:22 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > my requirement is that I n

Re: serving static file via django

2008-11-18 Thread [EMAIL PROTECTED]
On Nov 18, 10:23 pm, "David Zhou" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 9:40 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > david, > > > can you illustrate how ? sorry -- havent worked with django signals > > earlier > >

Re: serving static file via django

2008-11-18 Thread [EMAIL PROTECTED]
yes..its just a transparent gif...i'm thinking of writing my own view, which will get the visitor data and then just call the static serve method provided by django. just dont know it its ok inproduction env though.. On Nov 19, 12:53 am, "David Zhou" <[EMAIL PROTECTED]> wrote: &

Re: Creating formsets through AJAX

2008-11-19 Thread [EMAIL PROTECTED]
On 20 nov, 05:01, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 8:59 PM, Brian Rosner <[EMAIL PROTECTED]> wrote: > > On Wed, Nov 19, 2008 at 8:43 PM, Luper Rouch <[EMAIL PROTECTED]> wrote: > >> For django to save the

Re: Creating formsets through AJAX

2008-11-19 Thread [EMAIL PROTECTED]
On 20 nov, 05:33, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 9:14 PM, [EMAIL PROTECTED] > > > > <[EMAIL PROTECTED]> wrote: > > > On 20 nov, 05:01, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > >>

Re: Creating formsets through AJAX

2008-11-19 Thread [EMAIL PROTECTED]
On 20 nov, 06:01, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 9:53 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > I use a fake queryset because it's the only way that I found to > > populate the formset

Re: django site within 7 hours (a day)

2008-11-20 Thread [EMAIL PROTECTED]
p doesn't seem to work... --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PR

Re: Creating formsets through AJAX

2008-11-20 Thread [EMAIL PROTECTED]
On 20 nov, 06:54, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 10:23 PM, [EMAIL PROTECTED] > > > > <[EMAIL PROTECTED]> wrote: > > > On 20 nov, 06:01, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > >> On W

Re: Creating formsets through AJAX

2008-11-20 Thread [EMAIL PROTECTED]
On 20 nov, 14:31, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 20 nov, 06:54, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > > > > > On Wed, Nov 19, 2008 at 10:23 PM, [EMAIL PROTECTED] > > > <[EMAIL PROTECTED]> wrote: &

change in admin template django/contrib/admin/templates/widget

2008-11-21 Thread [EMAIL PROTECTED]
is group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

New Django user: How do I return the server's IP address?

2008-11-21 Thread [EMAIL PROTECTED]
uot; group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: 'QuerySet' object has no attribute '_meta'

2008-11-21 Thread [EMAIL PROTECTED]
You can pass modelformset_factory a kwarg form which should just me the form class you want to use(aka make a ModelForm with the changes to the widgets). Alex On Nov 21, 7:25 pm, ayayalar <[EMAIL PROTECTED]> wrote: > Karen, > > On this note, is it possible to customize the widget

UnicodeEncodeError using mysql as db

2008-11-23 Thread [EMAIL PROTECTED]
--~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this grou

Re: help, ORM memory problems

2008-11-23 Thread [EMAIL PROTECTED]
Try doing Legacy.objects.all().iterator(), this isn't technically the public API, but this grabs the results at a lower level, so it doesn't get cached. On Nov 23, 5:44 pm, derek73 <[EMAIL PROTECTED]> wrote: > I have written a management script to migrate data from an existing > s

Re: redirection 2 links back after signing up?

2008-11-23 Thread [EMAIL PROTECTED]
to what is specified in next.. fill out a form, yada yada yada. after success of that I then do this. return HttpResponseRedirect(request.session['last']) hope this helps. On Nov 5, 11:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > That is the problem I am trying to s

Re: redirection 2 links back after signing up?

2008-11-23 Thread [EMAIL PROTECTED]
23, 9:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I just solved this issue. I did by using using sessions. > > I initialize this in a couple of views. > > request.session['last'] = request.get_full_path() > > If a user tries to do something restricte

path issue

2008-11-24 Thread [EMAIL PROTECTED]
quot; group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Caching and I18n

2008-11-25 Thread [EMAIL PROTECTED]
--~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more opti

Re: Address Book Contact Importer in Python/Django?

2008-11-27 Thread [EMAIL PROTECTED]
Thanks guys, I've had a think about your security points Jarek. I guess it's a tough decision to make... :-\ On Nov 27, 11:47 am, Brot <[EMAIL PROTECTED]> wrote: > does this help > Accessing your Gmail contact list with Python (http://www.holovaty.com/ > blog/archive/2004/06/20/0

Re: Django 1.0 tutorial

2008-11-27 Thread [EMAIL PROTECTED]
I checked the docs but the example provided is not clear. --~--~-~--~~~---~--~~ 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 unsubscribe from this

Address Book Contact Importer in Python/Django?

2008-11-27 Thread [EMAIL PROTECTED]
roup, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

new comments and ratings

2008-11-28 Thread [EMAIL PROTECTED]
on multiple categories. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email

Re: adding with ORM is slow

2008-11-28 Thread [EMAIL PROTECTED]
Can you try doing Country.objects.create(name=name) instead? On Nov 28, 8:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-11-28 at 08:40 -0800, burb wrote: > > [...] > > > Code with cursor runs 100x faster than ORM code. > > [...] > > &g

Re: Raw SQL and model instances

2008-11-28 Thread [EMAIL PROTECTED]
Malcolm, I believe that should be params = dict(zip(fields, row)) On Nov 28, 8:34 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-11-28 at 19:54 +0900, Russell Keith-Magee wrote: > > [...] > > > >>> cursor.execute('SELECT ...') > > >>

Re: adding with ORM is slow

2008-11-28 Thread [EMAIL PROTECTED]
Ah, you're correct, not sure what I was thinking of. Alex On Nov 28, 9:35 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-11-28 at 18:26 -0800, [EMAIL PROTECTED] wrote: > > Can you try doing Country.objects.create(name=name) instead? > > Have a look

Re: dynamic associations?

2008-11-29 Thread [EMAIL PROTECTED]
rs" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Query API: get all users without a group

2008-12-02 Thread [EMAIL PROTECTED]
You could do User.objects.exclude(groups__in=Group.objects.all ().query) which will actually generate a subquery. Alex On Dec 2, 10:45 am, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > I want to get all objects where the corresponding many-to-many field is > empty. >

Disappearing inline in admin

2008-12-03 Thread [EMAIL PROTECTED]
this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Disappearing inline in admin

2008-12-03 Thread [EMAIL PROTECTED]
On Dec 3, 10:49 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > When I go to Article, the sections are there, inline, as they should > be. When I SAVE, all the sections disappear. Suggestions? Turns out there was a unicode error in the inline. Maybe it will help

More User/Profile troubles

2008-12-03 Thread [EMAIL PROTECTED]
is 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
to extraformedit.save () #save the edited form to the database. return HttpResponseRedirect("/") Am I way off? Again I am very new to this so sorry if this is a stupid question. Phil On 3 Dec, 18:52, Brian Neal <[EMAIL PROTECTED]> wrote

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
(): userformInstance = form.save() extraformedit = extraform.save(commit=False) extraformedit.user = userformInstance extraformedit.save() return HttpResponseRedirect("/") Hope that works a bit better. On 4 Dec, 16:57, "[EMAIL PROTECTED]&quo

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
I apologise for spamming everyone, here i stuck it up at dpaste with the comments which makes it a bit clearer- http://dpaste.com/96128/ On 4 Dec, 17:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I dont know why the margins are squashing everything, ill try and p

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
Dec, 18:17, Brian Neal <[EMAIL PROTECTED]> wrote: > On Dec 4, 11:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote:> I apologise for spamming everyone, here i stuck it up at dpaste with > > the comments which makes it a bit clearer-http://dpaste.com

Ruby on Rails vs Django

2008-12-05 Thread [EMAIL PROTECTED]
Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Ruby on Rails vs Django

2008-12-05 Thread [EMAIL PROTECTED]
yes... I saw that thread... but it is 14 months old !!! and in IT 14 months is a LOT On 5 dic, 10:17, "Marinho Brandao" <[EMAIL PROTECTED]> wrote: > http://www.google.com.br/search?q=Ruby+on+Rails+vs+Django > > 2008/12/5 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

Re: Ruby on Rails vs Django

2008-12-05 Thread [EMAIL PROTECTED]
things, but sometime you just want to build something from tools you already understand. YMMV, Bryan p.s. I have not worked with Python3k. That will be a change, but it's a big number change. On Dec 5, 8:30 am, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 5 déc, 13:06, "[E

Re: How to import DoesNotExist exception ???

2008-12-08 Thread [EMAIL PROTECTED]
I'm not sure where you got that code snippet from, but DoesNotExist is an attribute on model classes, so that shoul read: except Tag.DoesNotExist. On Dec 8, 2:52 pm, Info Cascade <[EMAIL PROTECTED]> wrote: > How do I import the DoesNotExist exception? > > This doesn't seem

issue with django tagging

2008-12-09 Thread [EMAIL PROTECTED]
scribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: issue with django tagging

2008-12-10 Thread [EMAIL PROTECTED]
Thank you very much. I'll try it at once.BTW:when will the 0.3 version release? :) On Dec 10, 12:14 am, garagefan <[EMAIL PROTECTED]> wrote: > I had the same issue... you need to do two things... > > copy this into the setup.py > > from django.conf import settings

Re: issue with django tagging

2008-12-10 Thread [EMAIL PROTECTED]
o\conf\__init__.py", line 57, in _import_settings raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. On Dec

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread [EMAIL PROTECTED]
http://www.djangoproject.com/documentation/contributing/ On Jun 20, 10:39 am, "Juan Hernandez" <[EMAIL PROTECTED]> wrote: > what is the best way to contribute to the project?? > > It's karma! you have to return somehow what you get :) > > On Sat, Jun 21, 2008 at

method="POST" form problems. Help required

2008-06-21 Thread [EMAIL PROTECTED]
users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: method="POST" form problems. Help required

2008-06-21 Thread [EMAIL PROTECTED]
21, 3:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I am having problems with POST. I am aware of this newbie > mistakehttp://code.djangoproject.com/wiki/NewbieMistakes#POSTtoviewslosesPOS... &

Re: method="POST" form problems. Help required

2008-06-21 Thread [EMAIL PROTECTED]
, 4:06 pm, Jeff FW <[EMAIL PROTECTED]> wrote: > Looks like you forgot a return statement in the if statement.  Not > sure if that would cause what you're seeing, but it certainly couldn't > help. > > -Jeff > > On Jun 21, 6:46 pm, "[EMAIL PROTECTED]" <[E

Re: method="POST" form problems. Help required

2008-06-21 Thread [EMAIL PROTECTED]
Atlast, I found the bug, login.html inherits from base page. So, the form mentioned in the above code is nested inside a GET form. Now I get one doubt. Can't we nest the forms? Does nesting of forms make sense in any context? On Jun 21, 4:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROT

Re: method="POST" form problems. Help required

2008-06-21 Thread [EMAIL PROTECTED]
That clears everything. Thanks a lot. -Priyank On Jun 21, 4:46 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Jun 21, 2008 at 7:36 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > Atlast, I found the bug, login.html inherits

Re: Automatic Update of template

2008-06-21 Thread [EMAIL PROTECTED]
Thanks a lot -Priyank On Jun 20, 7:55 am, "Norman Harman" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > I am writing a web based chat client in Django framework. When ever I > > receive a message, I get that in a python function wh

Complex URLs and numerous GET variables

2008-06-22 Thread [EMAIL PROTECTED]
. :) --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this grou

Re: Ticket: Doc error on reverse()

2008-06-22 Thread [EMAIL PROTECTED]
t; i.e., all args are required (Latest Django trunk from SVN). > > * * * --~--~-~--~~~---~--~~ 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 unsubscribe from this group,

dynamic value of a ModelChoiceField

2008-06-22 Thread [EMAIL PROTECTED]
because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Passing a Custom Form to a Generic View

2008-06-23 Thread [EMAIL PROTECTED]
"Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: sending large downloads

2008-06-23 Thread [EMAIL PROTECTED]
Russell, #2070 refers to uploads, not downloads. On Jun 23, 5:38 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, Jun 24, 2008 at 1:42 AM, msoulier <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I saw some posts on this but not many useful

Re: User Profile in Admin interface (using trunk)

2008-06-23 Thread [EMAIL PROTECTED]
Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: dynamic value of a ModelChoiceField

2008-06-23 Thread [EMAIL PROTECTED]
losing my mind over this. thanks in advance. On Jun 22, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In a form, I have a field defined asModelChoiceField > > class myForm(forms.Form) >   myfield = forms.ModelChoiceField(MyClass.objects.all()) >  my

Re: dynamic value of a ModelChoiceField

2008-06-23 Thread [EMAIL PROTECTED]
thanks rishabh, i tried that -- it doesnt display the 'selected' cooking method for the recipe. shows the value corresponding to empty_label. thnx, -p On Jun 24, 12:23 am, "Rishabh Manocha" <[EMAIL PROTECTED]> wrote: > You're probably looking > forhttp://www.djangopro

Re: Automatic Update of template

2008-06-24 Thread [EMAIL PROTECTED]
, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Jun 21, 2008 at 9:13 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > > > Let me give more details.. > > > I am trying to write a web-based multi-protocol client. Ther

Damn unicode error

2008-06-24 Thread [EMAIL PROTECTED]
deEncodeError: 'ascii' codec can't encode character u'\xb4' in position 21: ordinal not in range(128) --~--~-~--~~~---~--~~ 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@googl

Re: dynamic value of a ModelChoiceField

2008-06-24 Thread [EMAIL PROTECTED]
thanks v sergeyev. the above suggestion worked.. the initial dictionary was expecting the "recipe.cooking_method.id" value..wonder why just the "recipe.cooking_method" wouldnt work ? thnx, -p On Jun 24, 10:13 am, "V.Sergeyev" <[EMAIL PROTECTED]> wrote: &

How to get ManyTomManyField‘s value?

2008-06-24 Thread [EMAIL PROTECTED]
??? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For mo

Re: How to get ManyTomManyField‘s value?

2008-06-24 Thread [EMAIL PROTECTED]
object saved ??? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL

syncdb custom sql containing a create function (pgsql backend)

2008-06-25 Thread [EMAIL PROTECTED]
--~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this grou

Creating test database with a complete SQL script

2008-06-25 Thread [EMAIL PROTECTED]
to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: psycopg2

2008-06-25 Thread [EMAIL PROTECTED]
Why not put it up on Google Code? It's SVN so importing should be a breeze (if not, I'm sure the Google guys would be glad to lend a hand), you have a Wiki and a Bug tracker also. Just my 2c On Jun 24, 7:09 pm, Federico Di Gregorio <[EMAIL PROTECTED]> wrote: > Just to shed a bit

Re: Creating test database with a complete SQL script

2008-06-25 Thread [EMAIL PROTECTED]
be also possible to use said legacy database for testing, ie. create an x_test database and force Django to use it, instead of having it bailing out because it cannot drop the test database. On Jun 25, 5:06 pm, phillc <[EMAIL PROTECTED]> wrote: > i think i understand what youre saying? &g

python-admin.py startproject error

2008-06-25 Thread [EMAIL PROTECTED]
is 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: python-admin.py startproject error

2008-06-25 Thread [EMAIL PROTECTED]
Thanks for the help guys. On Jun 25, 12:58 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > >>>> import django > >>>> django-admin.py startproject mkgps > > File "", line 1 > > django-admin.py startproject mkgps > >

Re: How do I save records when using two forms joined by a foreign key?

2008-06-25 Thread [EMAIL PROTECTED]
25, 5:04 pm, Huuuze <[EMAIL PROTECTED]> wrote: > For the sake of argument, I have two models:  Book and Author.  Book > has many fields and has a foreign key relationship with Author. > Author has two fields and no additional relationships.  To stay DRY, I > have BookForm and

Re: syncdb custom sql containing a create function (pgsql backend)

2008-06-26 Thread [EMAIL PROTECTED]
Hi Malcolm, thanks for clearing it up. On Jun 26, 2:08 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2008-06-25 at 08:49 -0700, [EMAIL PROTECTED] wrote: > > Hi all, > > > on a custom SQL file I have a CREATE FUNCTION statement but > > apparently, wh

Re: Creating test database with a complete SQL script

2008-06-26 Thread [EMAIL PROTECTED]
Hi Russ, thanks, that's what I'm using currently. Not optimal but I guess it'll have to do. On Jun 26, 12:42 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Wed, Jun 25, 2008 at 11:54 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: >

I'm sure this is one of those clueless newbie mistakes

2008-06-26 Thread [EMAIL PROTECTED]
I'm a little stumped right now. I'm trying to run syncdb, on a project that I'm really just starting to work on/build, and I get this error message: [EMAIL PROTECTED]:~/NotBackedUp/cmdb-svn/src/cmdb$ python manage.py syncdbError: Couldn't install apps, because there were errors in one or more

Re: I'm sure this is one of those clueless newbie mistakes

2008-06-26 Thread [EMAIL PROTECTED]
Karen; On Jun 26, 12:56 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > If you post the contents of your cmdb/models.py file on someplace like > dpaste.com someone might be able to help identify what is going on. Thanks for that advice. You can find my models.py at:

mod_python install

2008-06-26 Thread [EMAIL PROTECTED]
uot; group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Development environment

2008-06-26 Thread [EMAIL PROTECTED]
groups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: The Lost Fingers

2008-06-26 Thread [EMAIL PROTECTED]
While definitely off-topic, I appreciate the heads up. I live in a world where the framework and the guitarist often intersect. On Jun 26, 9:01 am, Dan <[EMAIL PROTECTED]> wrote: > This isn't related to Django the framework but Django the musician, I > figure you'd find it intere

manage.py dumpdata and swap

2008-06-26 Thread [EMAIL PROTECTED]
the RAM Daniel --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at

Re: Django Database Relationship Question

2008-06-26 Thread [EMAIL PROTECTED]
You may also be interested in this ticket: http://code.djangoproject.com/ticket/6095 (which will hopefully be hitting relatively soon). On Jun 26, 11:27 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > You'd almost think they were handing out prizes for being quickest on   &

ImportError: No module named _md5

2008-06-26 Thread [EMAIL PROTECTED]
ror: No module named _md5 Thanks for any assistance, Jason --~--~-~--~~~---~--~~ 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 unsubscribe from this gro

Permissiond

2008-06-26 Thread [EMAIL PROTECTED]
is group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: I'm sure this is one of those clueless newbie mistakes

2008-06-27 Thread [EMAIL PROTECTED]
On Jun 26, 3:06 pm, "Colin Bean" <[EMAIL PROTECTED]> wrote: > For a start, you want your KVM model to subclass models.Model. Actually, that was one of the big issues that I had. If I commented out the KVM group, I was able to get syncdb to run without erroring out. I really

Re: i18n model - tri-lingual data

2008-06-27 Thread [EMAIL PROTECTED]
You should REALLY have a look at this: http://code.google.com/p/transdb/ On Jun 26, 3:22 pm, pihentagy <[EMAIL PROTECTED]> wrote: > Hi! > > I have a 3-lingual app, and there are some model fields translated, > like this: > > class Category(models.Model) >        

Re: Newforms and textareas

2008-06-27 Thread [EMAIL PROTECTED]
You are creating a field that subclasses a widget, which makes no sense. forms.Textare is a widget, not a field. On Jun 27, 11:04 am, Roodie <[EMAIL PROTECTED]> wrote: > Hello, > > I have a slight problem. I am using a custom form field to do some > extra validation / filte

ManyToMany field has old value in custom save method

2008-06-27 Thread [EMAIL PROTECTED]
groups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Problems retrieving array from POST

2008-06-27 Thread [EMAIL PROTECTED]
oglegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: ModelInheritance : how to do isinstance() on a parent class object

2008-06-28 Thread [EMAIL PROTECTED]
Malcolm, does select_related work with 1-to-1's (and thus would do the preloading)? On Jun 28, 6:34 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2008-06-28 at 16:29 -0700, Julien wrote: > > Hi, > > > You could try: > > > if hasattr(c, 'comp

Re: ModelInheritance : how to do isinstance() on a parent class object

2008-06-28 Thread [EMAIL PROTECTED]
I agree, having the ORM create O(n) table joins by default would be a bad idea, but I wonder if we could provide an option to have it do that. On Jun 28, 7:49 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2008-06-28 at 17:29 -0700, [EMAIL PROTECTED] wrote: > >

Re: Django as front-end for php- and zope2-based apps?

2008-06-29 Thread [EMAIL PROTECTED]
Hi On Jun 29, 7:31 pm, spacetaxi <[EMAIL PROTECTED]> wrote: > Currently, I'm thinking about implementing some kind of http-proxy > within my django-app, so django would forward the incoming requests > (get/post) to the particular application. This is good idea, but

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