Re: Alternatives to django-tagging?

2008-09-04 Thread Delta20
My bad, I was mislead by the low release number and dates. I just tried it and the trunk version does indeed work with Django 1.0 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

TemplateSyntaxError Invalid block tag: 'include_admin_script' on add user

2008-09-04 Thread KillaBee
At the site admin, when I click on the add user I get this error. TemplateSyntaxError at /admin/auth/user/add/ Invalid block tag: 'include_admin_script' Request Method: GET Request URL:http://10.0.0.20:8000/admin/auth/user/add/ Exception Type: TemplateSyntaxError Exception V

Re: View calling another view causing authentication issues

2008-09-04 Thread makebelieve
I didn't know about the new form wizard code, I think I'll use that! The auth issue happens with something as simple as this: def view1(request): return view2(request) view1 = login_required(view1) def view2(request): return render_to_response( 'view2.html', {},

Re: Problem installing django

2008-09-04 Thread KillaBee
I am new my self but it sounds like the URLs not pointing the right place. One thing it might be is the setting.py his the wrong path a the installed app or root_urlconf. I am new too, so hope it helped. On Sep 4, 12:45 pm, Denis BUCHER <[EMAIL PROTECTED]> wrote: > Hello ! > > I have a problem

Developing django on windows

2008-09-04 Thread Robert Dailey
Hi, I plan to host my production copy of my django project on a linux/ apache setup, however for my development I want to do a checkout through subversion and work exclusively on windows as I develop. This means I want to be able to run just the test server for django on windows while I develop t

Re: Developing django on windows

2008-09-04 Thread Robert Dailey
On Sep 4, 3:39 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > I plan to host my production copy of my django project on a linux/ > apache setup, however for my development I want to do a checkout > through subversion and work exclusively on windows as I develop. This > means I want to be a

Re: TemplateSyntaxError Invalid block tag: 'include_admin_script' on add user

2008-09-04 Thread Karen Tracey
2008/9/4 KillaBee <[EMAIL PROTECTED]> > > At the site admin, when I click on the add user I get this error. > > TemplateSyntaxError at /admin/auth/user/add/ > > Invalid block tag: 'include_admin_script' > > Request Method: GET > Request URL:http://10.0.0.20:8000/admin/auth/user/add/ >

Re: Problem installing django

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 1:45 PM, Denis BUCHER <[EMAIL PROTECTED]>wrote: > > Hello ! > > I have a problem installing django. I followed the instructions but then : > Which instructions, exactly? There are various options (installing under python's site-packages, creating a symbolic link in site-pa

Re: Developing django on windows

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 4:47 PM, Robert Dailey <[EMAIL PROTECTED]> wrote: > > On Sep 4, 3:39 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I plan to host my production copy of my django project on a linux/ > > apache setup, however for my development I want to do a checkout > > throu

Re: last security fix

2008-09-04 Thread James Bennett
On Thu, Sep 4, 2008 at 2:29 PM, pavel srb <[EMAIL PROTECTED]> wrote: > please, due to http://www.djangoproject.com/weblog/2008/sep/02/security/ > i would like to know, when there will be security patch for debian > etch version I follow the Debian bug tracker and lists for Django-related items,

Re: How to do this using Django Model

2008-09-04 Thread ydjango
Following is what I want to achieve, any clues on how to achieve the following in Django orm and mysql without composite key support from django Any workarounds, any one is aware of. thanks copying straight from http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html For MyISAM and

Re: 'Django in Under a Minute' screencast, requesting feedback before v1-final is ready

2008-09-04 Thread John M
I never thought I'd say this, but it's a little TOO QUICK. Maybe 3min ? It's not long enough to really get me interested, but I don't want to take too much time / detail that I start learning the product. Overall though, the quality and idea are awesome, keep it up. John On Sep 3, 2:07 pm, "I

Re: 'Django in Under a Minute' screencast, requesting feedback before v1-final is ready

2008-09-04 Thread Marcelo Barbero
2008/9/4 John M <[EMAIL PROTECTED]>: > > I never thought I'd say this, but it's a little TOO QUICK. Maybe > 3min ? It's not long enough to really get me interested, but I don't > want to take too much time / detail that I start learning the product. > > Overall though, the quality and idea are a

Re: DjangoCon meetup Friday Sept 5

2008-09-04 Thread Jonathan Nelson
I just wanted to let people know that the get-together is still on, if people are interested. There's more information here: http://django.meetup.com/3/ Let me know if you have any questions. Jonathan On Aug 20, 9:22 pm, Jonathan Nelson <[EMAIL PROTECTED]> wrote: > I'm planning a get togeth

Internationalization design

2008-09-04 Thread MiloZ
Hi, I would like to translate a django project, but my templates are very verbose, so I would like to have a localized version of each template file. So I changed the basic "return render_to_response(...)" in my views by the following code: local_code = request.LANGUAGE_CODE or settings.LANGUAG

Re: Unaccountable syntax error

2008-09-04 Thread guillaume
Sorry guys, I just need a tip : where do you get your models.ColorField from ? I've upgraded to django 1.0, and don't have it ! Regards, Guillaume On 30 août, 16:03, Leaf <[EMAIL PROTECTED]> wrote: > Of course. I just look at the error actually occurs on, not the > context. I guess even Python

Re: "ColorField"?

2008-09-04 Thread guillaume
Hi Sean, I'm very interested in how you made the ColorField work as I didn't manage to do that ! Help appreciated ! Regards, Guillaume On 21 juil, 21:05, Sean Legassick <[EMAIL PROTECTED]> wrote: > On 8 Jul 2008, at 04:24, Leaf wrote: > > > > > Does anyone know if there is such thing as a Col

Updated patch available for #3591 (add support for custom app_label and verbose_name)

2008-09-04 Thread Vinay Sajip
I've updated the patch attached to #3591 to be cleanly applicable to r8965 - i.e. post the 1.0 release. I didn't have to make any significant changes to the code itself, just to a couple of the unit tests which were explicitly checking for module representations rather than app instances. http://

Multiple Authors

2008-09-04 Thread unklbeemer
Is there a way in my template to show entries only by a certain author of the post? I have been looking and have been unsuccessful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

re-direction after login successfully

2008-09-04 Thread zissan
It's seemd that Django has set /accounts/profile as default page after login successfully. I wonder if we can re-direct it to a custom page? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: ProgrammingError at /admin/, date/time field value out of range

2008-09-04 Thread Benedict Verheyen
ekellner schreef: > The expected date format is a per-connection level setting. (Called > "DATESTYLE" in postgresql). There is also a default format if the > connection doesn't specify. > > I strongly suspect that this mismatch between formats is actually > happening between the database a

Re: ProgrammingError at /admin/, date/time field value out of range

2008-09-04 Thread Benedict Verheyen
Benedict Verheyen schreef: > Thanks for the info. > I'm seems i'm unable to set the correct datestyle to get this to work. > > When i run it from a python shell, i do indeed get the same error: > > python manage shell > >>> from django.db import connection, backend > >>> cursor = connection.c

Re: Multiple Authors

2008-09-04 Thread unklbeemer
In my models, I have an author variable in the Post model. On Sep 4, 6:06 pm, unklbeemer <[EMAIL PROTECTED]> wrote: > Is there a way in my template to show entries only by a certain author > of the post? I have been looking and  have been unsuccessful. --~--~-~--~~~---

Re: ProgrammingError at /admin/, date/time field value out of range

2008-09-04 Thread Benedict Verheyen
Benedict Verheyen schreef: > > I did some more testing > When i execute the sql from the psql command line, the first time it gives an > error, the 2nd time it doesn't ?! How weird is that :) > Date style is set to 'iso, ymd' > > psql webshop > Welcome to psql 7.4.19, the PostgreSQL interactive

Re: URLs Syntax Error

2008-09-04 Thread djandrow
Is it more practical if i put "date_based.archive_index" in the URL pattern? --~--~-~--~~~---~--~~ 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

Re: How to filter objects by return value of Model's or AdminModel's method by list_filter?

2008-09-04 Thread MakotoSatoh
Hi, Karen, > > Can I include my Model's or AdminModel's method into AdminModels > > list_filter? > No, the filtering is done at the database level. Thanks. I've added Boolean field with default value and overrode the Model's save() method to update that field with calculated value from the othe

Got Yuwie!

2008-09-04 Thread MikeyBoy
Join Yuwie and get paid to use a social network just like Myspace. --~--~-~--~~~---~--~~ 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 unsubsc

USStateField has gone missing

2008-09-04 Thread Brandon Taylor
Hello everyone, Is anyone else missing USStateField? None of my models that use this field are validating. I've tried trunk and the 1.0 official release I get the same error on both versions. If you look in django > db > models > fields > __init__.py You will not find USStateField, although it'

Re: USStateField has gone missing

2008-09-04 Thread Brandon Taylor
My bad. I see it's not in the latest version of the documentation : http://docs.djangoproject.com/en/dev/ref/models/fields/#model-field-types I guess we can just make a list of static choices using the states list in localflavor.us On Sep 4, 8:23 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > H

Re: USStateField has gone missing

2008-09-04 Thread Henry R Tumblin
Its there, just moved to localflavor, try the following: from django.contrib.localflavor.us.models import * then instead of using models.USStateField, just use USStateField PhoneNumberField is also there. Brandon Taylor wrote: > Hello everyone, > > Is anyone else missing USStateField? None of

Re: USStateField has gone missing

2008-09-04 Thread [EMAIL PROTECTED]
USStateField is now located at django.contrib.localflavor.us.models.USStateField, as documented here: http://docs.djangoproject.com/en/dev/ref/contrib/localflavor/#united-states-of-america-us On Sep 4, 9:23 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Is anyone else missing

Re: Need suggestions on subversion structure for project

2008-09-04 Thread Kenneth Gonsalves
On 04-Sep-08, at 8:40 PM, Robert Dailey wrote: > concern with the structure I presented above is how I will configure > Apache2 to handle serving static content. Also, the fact that Django > requires an absolute path for the templates directory makes this more > of a management nightmare. anywa

Re: USStateField has gone missing

2008-09-04 Thread Malcolm Tredinnick
On Thu, 2008-09-04 at 18:23 -0700, Brandon Taylor wrote: > Hello everyone, > > Is anyone else missing USStateField? None of my models that use this > field are validating. I've tried trunk and the 1.0 official release I > get the same error on both versions. > > If you look in django > db > mod

Re: USStateField has gone missing

2008-09-04 Thread Brandon Taylor
Thanks everyone. I guess I just overlooked the localflavor documentation. Kind regards, Brandon On Sep 4, 8:30 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-09-04 at 18:23 -0700, Brandon Taylor wrote: > > Hello everyone, > > > Is anyone else missing USStateField? None of my mo

Re: USStateField has gone missing

2008-09-04 Thread Brandon Taylor
So, next stupid question :) These fields all derive from forms, not models. How are we supposed to use these as we did previously in the admin? Registering a model with a field defined using USPhoneNumber, ZipCode, etc throws an error that says 'X' field is missing in the form. On Sep 4, 8:34 pm

Re: USStateField has gone missing

2008-09-04 Thread Malcolm Tredinnick
On Thu, 2008-09-04 at 18:46 -0700, Brandon Taylor wrote: > So, next stupid question :) > > These fields all derive from forms, not models. Not true. All the fields in django.contrib.localflavor.us.forms derive from form fields. All the ones in django.contrib.localflavor.us.models derive from m

Re: USStateField has gone missing

2008-09-04 Thread Brandon Taylor
Thanks Malcom, I apperciate it! On Sep 4, 8:49 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-09-04 at 18:46 -0700, Brandon Taylor wrote: > > So, next stupid question :) > > > These fields all derive from forms, not models. > > Not true. All the fields in django.contrib.localfla

Re: ManyToManyField to self with Intermediary

2008-09-04 Thread Brad Jasper
For now I've commented out that error in django/core/management/ validation.py on line 121 and 122. #if from_model == to_model and f.rel.symmetrical: #e.add(opts, "Many-to-many fields with intermediate tables cannot be symmetrical.") I'm sure there was

Re: Newbie Question - Regex Field to deal with Feet/Inches

2008-09-04 Thread Ronny Haryanto
On Fri, Sep 5, 2008 at 1:53 AM, bkev <[EMAIL PROTECTED]> wrote: > > Ronny, > > Thank you so very much for your input; it has helped this newbie user > a great deal. The one outstanding problem I'm having here (and it's > the last field in my model...) is that I'd actually like to use a > FloatFiel

Re: what's wrong with my django comments?

2008-09-04 Thread nonight
Oh, it's OK, I droped the database and rebuilt the database. On 9月4日, 下午1时26分, nonight <[EMAIL PROTECTED]> wrote: > no, the comments system is new ,not upgrading from the old style. > > On 9月4日, 上午10时18分, Joshua Jonah <[EMAIL PROTECTED]> wrote: > > > Did you upgrade the comments system from the

Middleware Ordering

2008-09-04 Thread kevinski
I count 12 available middleware classes at http://docs.djangoproject.com/en/dev/ref/middleware/, however I can not find a complete listing of the best order to place them. I have read tips here and there about what to do with some of them, but can someone please provide me with the definitive lis

xml web templating with python

2008-09-04 Thread Brendan
I'm looking around at python web frameworks and I've heard some good stuff about django. I mostly need something to do the presentation level. In general I like the declarative style of tag libraries like jsp and asp .net. They don't mix code and html (which encourages separation between presenta

mogileFS for django

2008-09-04 Thread Andrew
Just released a how-to and some code on our blog: http://blog.fluther.com/blog/2008/09/04/mogilefs-for-django/ Praise can be sent directly to me, scathing criticism of the code can be directed to my partner. See you at djangoCon! --~--~-~--~~~---~--~~ You receiv

Re: mogileFS for django

2008-09-04 Thread Joshua Jonah
Nice, just have to get on James to slam it into Django-profiles. Knowing him though, he'll rewrite it and then put thirty pages of documentation in it. Nice contribution. Andrew wrote: > Just released a how-to and some code on our blog: > > http://blog.fluther.com/blog/2008/09/04/mogilefs-for-

Re: Internationalization design

2008-09-04 Thread krylatij
I do it in the same way. I think there is no need here make here something more complex --~--~-~--~~~---~--~~ 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

<    1   2