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

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-

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

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

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

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

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

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'

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

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

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

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

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

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

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

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

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

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

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', {},

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

Re: UploadedFile Content-Type

2008-09-04 Thread Rajesh Dhawan
Hi, > I'm using newforms to upload a file in my project. > I want to check the mime type of the uploaded file. > > Let's say my field name is "file", and check_uploaded_file() is a > function that takes the content type and checks it. > > file = request.FILES['file'] > check_uploaded_file(file.co

Re: Alternatives to django-tagging?

2008-09-04 Thread Matic Žgur
I'm using django-tagging trunk version and it's ok. The last changes were made 6 days ago, so it looks like it's still maintained. Matic On Thu, Sep 4, 2008 at 10:01 PM, Delta20 <[EMAIL PROTECTED]> wrote: > > Recent changes in Django have broken diango-tagging, and it looks like > the django-tag

Alternatives to django-tagging?

2008-09-04 Thread Delta20
Recent changes in Django have broken diango-tagging, and it looks like the django-tagging project isn't very actively maintained. Is there a alternative module with equivalent functionality? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Need suggestions on subversion structure for project

2008-09-04 Thread Matic Žgur
I usually keep it like this (but note, that I've recently switched to git): myproject.com |-myproject |--app1 |---templatetags |---templates |--app2 |--app3 |--templates |--... |-static Some people tend to keep the actual apps in some other directory (repository) and then symlink to the myprojec

How to determine whether save() performs update or insert

2008-09-04 Thread mwebs
Is there a way to determine whether the model´s save()-method performs an insert or an update? I want to do something like this: create modelA_Instance --> create modelB_Instance. So my plan is to do this in the save() from modelA. --~--~-~--~~~---~--~~ You r

Problem installing django

2008-09-04 Thread Denis BUCHER
Hello ! I have a problem installing django. I followed the instructions but then : # ./django-admin.py Traceback (most recent call last): File "./django-admin.py", line 2, in ? from django.core import management ImportError: No module named django.core I am running SUSE Linux Enterpris

Re: Need suggestions on subversion structure for project

2008-09-04 Thread Joshua Jonah
I like to symlink my 'static' folder to the DocumentRoot of apache, then you can update your svn repo and the static files are serverd. Gremmie wrote: > On Sep 4, 10:10 am, Robert Dailey <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> First, let me start by explaining what my goals are: >> - Have a

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread simong
On Sep 4, 3:53 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 10:00 AM, simong <[EMAIL PROTECTED]> wrote: > > It might have been in part a caching problem in Firefox: to clarify, > > I'm testing this on my laptop running Ubuntu 8.04 using apache2 with > > local name resol

Re: last security fix

2008-09-04 Thread Scott Moonen
Pavel, you should get in touch with the Debian package maintainers for Django. You can find their contact information here: http://packages.debian.org/etch/python-django. -- Scott On Thu, Sep 4, 2008 at 3:29 PM, pavel srb <[EMAIL PROTECTED]> wrote: > > hi all > please, due to http://www.django

last security fix

2008-09-04 Thread pavel srb
hi all 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 thank you pavel srb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Need suggestions on subversion structure for project

2008-09-04 Thread Gremmie
On Sep 4, 10:10 am, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > First, let me start by explaining what my goals are: > - Have a django project & its apps in version control > - Have all of the templates the apps will use in the same version > control > - Have all static content (images, css

Re: problems updating admin / models to 1.0

2008-09-04 Thread Rajesh Dhawan
> > However, when I try to go to the admin I get either one of two errors > (if I keep refreshing, the errors change between the two randomly. > > Either > --- > TypeError at /admin/ > > dict objects are unhashable It seems that one of your errors is in books/data/admin.py and not in the adm

Re: MediaTemple Django Containers

2008-09-04 Thread mccomas . chris
I was in beta, just checked my acct and it's already setup with the Django Pro Containers, I better not get charged the $40/month :) I really disliked the containers while they were in beta, they look better now, but to me WebFaction is much better... I'm considering this weekend doing it with a

MediaTemple Django Containers

2008-09-04 Thread David Zhou
Are now available according to their homepage: http://mediatemple.net/webhosting/gs/django.html Was anyone in the beta? I've not used them, so I'm wondering what the experience was like. --- David Zhou [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received th

Re: problems updating admin / models to 1.0

2008-09-04 Thread Mike Chambers
fyi I think I tracked this down. I had this Admin def: -- class BookVersionAdmin(admin.ModelAdmin): fields = ( ("Book", {'fields':('title', 'book', 'language', 'version', 'license', 'is_release', 'is_public')}), ("Contributors", {'fields':('authors', 'con

Re: View not passing MEDIA_URL to Template

2008-09-04 Thread lingrlongr
Take a look here: http://www.djangoproject.com/documentation/shortcuts/#render-to-response keith On Sep 4, 2:44 pm, Cortland Klein <[EMAIL PROTECTED]> wrote: > I have two templates, one called via a Generic View and one via my own   > View. They both extend a base.html view that has {{MEDIA_URL

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

2008-09-04 Thread bkev
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 FloatField to save my data, but it's failing validation for that type of field ("enter

View not passing MEDIA_URL to Template

2008-09-04 Thread Cortland Klein
I have two templates, one called via a Generic View and one via my own View. They both extend a base.html view that has {{MEDIA_URL}} in it. When the generic view is hit, the base.html template gets it's value, http://rtdev.apple.com/media/ , but when my own View hits MEDIA_URL blanks. I t

problems updating admin / models to 1.0

2008-09-04 Thread Mike Chambers
I am working on migrating an Django app to 1.0. I am running into problems getting my models registered with the admin. I am following the info here: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Mergednewforms-adminintotrunk I have updated my main urls.py: - from dja

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

2008-09-04 Thread bedros
what kind of screencast software did you use? I found the django screencast to be moving too quickly between steps, not enough time to absorb the message in each step. Thanks, -B On Sep 3, 2:07 pm, "Ian Ozsvald" <[EMAIL PROTECTED]> wrote: > I've created a 57 second screencast showing 'Django

Re: Django 1.0 post_save signal has no attribute 'connect'?

2008-09-04 Thread Malcolm Tredinnick
On Thu, 2008-09-04 at 06:25 -0700, Webchemist wrote: > Hi all! > > Trying the fallowing: > > from django.db.models import signals > print dir(signals.post_save) > gives: > ['__class__', '__delattr__', '__doc__', '__getattribute__', > '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex

Re: ANN: Updated Django Cheat Sheet

2008-09-04 Thread Fraser Nevett
Thanks for all the feedback both on list and via email. Our plan is to wait a day or two to see if there are any further corrections required and then to release an updated edition early next week. At this time we'll also produce a alternative version which will be more suited for non-colour prin

Re: django and sql databases

2008-09-04 Thread Ludwig
I think your question is mostly about table design for relational databases. The best design follows certain 'normalization' rules which ensure that information is kept once and only once to ensure integrity. One table per item is certainly the wrong approach, as it will mean that you constantly h

Session Object Dropping Key Value Pairs

2008-09-04 Thread Paul Childs
Django 0.96 / mySQL / Apache2 / Ubuntu 8.04 I have created a "wizard" for data input. Rather than have one huge form I have spread it out over a number of views/templates. After the user submits data and it has been validated, each view places the "new_data" into the request.session and redirects

Re: Template Question

2008-09-04 Thread unklbeemer
I am using Basic Blog from the Django-Basic-Apps released by Nathan Borror if that helps. On Sep 4, 9:44 am, unklbeemer <[EMAIL PROTECTED]> wrote: > I am wanting to show all blog entries written by certain authors..how > would I go about doing this in my templates. > > In my Blog model I have an

Re: handling unique entries

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 12:52 PM, David <[EMAIL PROTECTED]> wrote: > > In the admin, I just get a trace of errors yayks! > > What level of Django are you running? Code was added to admin fairly recently to properly check unique constraints: http://code.djangoproject.com/ticket/8209 If you ar

Re: django and sql databases

2008-09-04 Thread David
Thanks for your reply, I haven't described the tables (or how) as I am still trying to rationalise the best approach. Perhaps if I describe to you want I want to do you'll see the best approach. Consider the case of a shop (for example) and items can be added to the shop and their prices continua

Re: ANN: Updated Django Cheat Sheet

2008-09-04 Thread James Matthews
Thanks! and i second David's request. On Thu, Sep 4, 2008 at 8:09 AM, David Larlet <[EMAIL PROTECTED]> wrote: > > > Le 4 sept. 08 à 12:20, Fraser Nevett a écrit : > > > > http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/ > > > > We welcome any ideas for improvements, corrections, or an

Re: handling unique entries

2008-09-04 Thread David
In the admin, I just get a trace of errors yayks! On Sep 3, 5:28 pm, [EMAIL PROTECTED] wrote: > In the admin, or on the site in a view? > > On Sep 3, 12:12 pm, David <[EMAIL PROTECTED]> wrote: > > > Hi, > > when setting (for example) > > name = models.CharField('Name', max_length=50, unique

Re: ANN: 'Django in Under a Minute' screencast

2008-09-04 Thread James Matthews
I like it. Thank you for enabling me to convert my friends to Django in one minute! On Thu, Sep 4, 2008 at 6:04 AM, Ian Ozsvald <[EMAIL PROTECTED]> wrote: > I've amended yesterday's preview release to reflect the new v1 Django site, > the finished 'Django in Under a Minute' screencast is availabl

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread James Matthews
Thank you very much for making our jobs fun again with this fantastic framework! On Thu, Sep 4, 2008 at 9:37 AM, Wes Winham <[EMAIL PROTECTED]> wrote: > > Thanks again for the huge amount of awesome that you guys have brought > to web development. > > On Sep 3, 8:07 pm, "James Bennett" <[EMAIL PR

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Wes Winham
Thanks again for the huge amount of awesome that you guys have brought to web development. On Sep 3, 8:07 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > The Django team is pleased to announce the release of Django 1.0 this evening: > > Download:http://www.djangoproject.com/download/ > Release n

Re: type error in form after upgrade from beta to stable

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 11:41 AM, Genis Pujol Hamelink <[EMAIL PROTECTED] > wrote: > OK sorry about that... > > Traceback: http://dpaste.com/75912/ > models.py: http://dpaste.com/75913/ > gforms.py: http://dpaste.com/75914/ > views.py:http://dpaste.com/75915/ > > After logging in the user is r

Re: No module named adminapplist

2008-09-04 Thread KillaBee
thanks that index worked, I must have overwritten the good one. sorry for assuming. On Sep 4, 11:06 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 11:31 AM, KillaBee < > > [EMAIL PROTECTED]> wrote: > > > I did not know it would post like that. > > It seem like it is going

Re: No module named adminapplist

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 11:31 AM, KillaBee < [EMAIL PROTECTED]> wrote: > > I did not know it would post like that. > It seem like it is going backwards, less instead of more things. This > is one of the most important things to see all your Django apps. > So, if there is no adminapplist in django,

Re: Discover tests in forms.py

2008-09-04 Thread Peter Bengtsson
> If your looking for an example to follow, the code for > django.test.simple isn't too hard to tear apart and customize for your > own purposes. OK. Here's how I solved it: from django.test.simple import * from django.test.simple import run_tests as orig_run_tests # my app is called 'classes'

Re: type error in form after upgrade from beta to stable

2008-09-04 Thread Genis Pujol Hamelink
OK sorry about that... Traceback: http://dpaste.com/75912/ models.py: http://dpaste.com/75913/ gforms.py: http://dpaste.com/75914/ views.py:http://dpaste.com/75915/ After logging in the user is redirected to a page which basically is the punts_form function defined in views.py. regards, Ge

Re: Everything is working but modpython

2008-09-04 Thread jpittet
I went on to the IRC channel and Magus- helped me solve the problem. Centos has permissions on the user folder I had the SVN trunk in that was set to 700. /home/username/django-trunk is where I symlinked django from. To solve this problem all I had to do was set the permissions to 711 and it

Re: 'PyISAPIeRequest' object has no attribute 'path_info'

2008-09-04 Thread rasto
Problem solved there http://groups.google.cz/group/pyisapie/browse_thread/thread/3f2f8d3fe14644a8/7c76332a571858ed?lnk=st&q=PyISAPIeRequest#7c76332a571858ed On 4 Zář, 17:21, rasto <[EMAIL PROTECTED]> wrote: > Hi all ! > > I'm new in Django and start install Django 1.0 on IIS 6.0 via PyISAPIe > 1

Re: No module named adminapplist

2008-09-04 Thread KillaBee
I did not know it would post like that. It seem like it is going backwards, less instead of more things. This is one of the most important things to see all your Django apps. So, if there is no adminapplist in django, Do you know if some one else has put to pieces back together, and made a simila

Model Forms and Form Wizards

2008-09-04 Thread nss350
A couple of questions about forms. If I have a model form for a model which has a ManyToMany Relationship with itself, can filter the choices that will appear in the multiple choice field that will be created i.e. if I users can befriend each other, how can I remove from the choices users who ar

Re: Discover tests in forms.py

2008-09-04 Thread Russell Keith-Magee
On Thu, Sep 4, 2008 at 11:13 PM, Peter Bengtsson <[EMAIL PROTECTED]> wrote: > > From http://www.djangoproject.com/documentation/testing/ > "4. Looking for unit tests and doctests in the models.py and tests.py > files in each installed application." > > Next to models.py I have forms.py which does

'PyISAPIeRequest' object has no attribute 'path_info'

2008-09-04 Thread rasto
Hi all ! I'm new in Django and start install Django 1.0 on IIS 6.0 via PyISAPIe 1.0.4. I stop on this : AttributeError at 'PyISAPIeRequest' object has no attribute 'path_info' Request Method: GET Request URL:http://127.0.0.5 Exception Type: AttributeError Exception Value: 'PyISAPIeRequest'

Re: type error in form after upgrade from beta to stable

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 10:46 AM, Genis Pujol Hamelink <[EMAIL PROTECTED] > wrote: > Hello, > > After upgrading from Django version 1.0-beta_1-SVN-unknown to the Django > 1.0 stable, I am getting this error: > > You get the error when you do? > Exception Type: TypeError Exception Value: > >

Discover tests in forms.py

2008-09-04 Thread Peter Bengtsson
>From http://www.djangoproject.com/documentation/testing/ "4. Looking for unit tests and doctests in the models.py and tests.py files in each installed application." Next to models.py I have forms.py which does exactly what the filename suggests: it defines forms. I've put some doctests in these

Need suggestions on subversion structure for project

2008-09-04 Thread Robert Dailey
Hi, First, let me start by explaining what my goals are: - Have a django project & its apps in version control - Have all of the templates the apps will use in the same version control - Have all static content (images, css, etc) in the same version control. So far, this is the directory structu

Re: ANN: Updated Django Cheat Sheet

2008-09-04 Thread David Larlet
Le 4 sept. 08 à 12:20, Fraser Nevett a écrit : > > http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/ > > We welcome any ideas for improvements, corrections, or any other > feedback. Any chance to get a printable copy without colors, just a white background? My printer will thank you

UploadedFile Content-Type

2008-09-04 Thread Bear
Hi. I'm using newforms to upload a file in my project. I want to check the mime type of the uploaded file. Let's say my field name is "file", and check_uploaded_file() is a function that takes the content type and checks it. file = request.FILES['file'] check_uploaded_file(file.content_type) S

modelform_sets

2008-09-04 Thread chewynougat
I am attempting to use modelform_sets and AFAIK I have implemented it correctly. The problem is that the first time the form is submitted without any data in the form fields, the is_valid() function validates these fields as being valid and then stores empty values in the database, even though my

Template Question

2008-09-04 Thread unklbeemer
I am wanting to show all blog entries written by certain authors..how would I go about doing this in my templates. In my Blog model I have an author variable. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 10:00 AM, simong <[EMAIL PROTECTED]> wrote: > It might have been in part a caching problem in Firefox: to clarify, > I'm testing this on my laptop running Ubuntu 8.04 using apache2 with > local name resolution using names against localhost, which is fairly > non-standard but

type error in form after upgrade from beta to stable

2008-09-04 Thread Genis Pujol Hamelink
Hello, After upgrading from Django version 1.0-beta_1-SVN-unknown to the Django 1.0 stable, I am getting this error: Exception Type: TypeError Exception Value: 'NoneType' object is not callable Exception Location: /usr/lib/python2.5/site-packages/django/forms/models.py in __init__, line 197

Re: ModelForm, images and exclude

2008-09-04 Thread flynnguy
True but I wanted to organize my folder a bit because there's not just one photo per pet, there could be quite a lot more than one photo per pet. First, I'd rather not have a million _ at the end of a file because everyone named their file cute1.jpg. Anyway, I got it to work, code below. (It's not

Re: Accessing other attributes from Foreign-key

2008-09-04 Thread Daniel Roseman
On Sep 4, 12:36 pm, [EMAIL PROTECTED] wrote: > Guys, > > I have the following model : > > from pypo.contracts.models import job_id > from pypo.suppliers.models import Company > > ##Create your models here > > class ponum(models.Model): >          contract = models.ForeignKey(job_id) >          sup

Re: No module named adminapplist

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 10:30 AM, KillaBee < [EMAIL PROTECTED]> wrote: > > Hello Django world, I am having a problem running the updated > adminapplist version. The error is 'adminapplist' is not a valid tag > library: Could not load template library from > django.templatetags.adminapplist, No modu

  1   2   >