Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Adrián Ribao
Excelent work! Well done! --~--~-~--~~~---~--~~ 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 P

GeoDjango question

2008-09-04 Thread Adrián Ribao
Hi, I've been checking geodjango and it looks very well, but I have some questions about it. If I have two models like: class UserProfile(models.Model): location = models.PointField(srid=2062) objects = models.GeoManager() class Places(models.Model):

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Ca-Phun Ung
Djangonauts - to boldly go where no man has gone before! --~--~-~--~~~---~--~~ 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 th

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread bruno desthuilliers
On 4 sep, 02:07, "James Bennett" <[EMAIL PROTECTED]> wrote: > The Django team is pleased to announce the release of Django 1.0 this evening: Champagne !-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Matias Surdi
James Bennett escribió: > The Django team is pleased to announce the release of Django 1.0 this evening: > > Download: http://www.djangoproject.com/download/ > Release notes: http://docs.djangoproject.com/en/dev/releases/1.0/ > > Have fun with it, and we'll see you in a few days for DjangoCon. >

Re: GeoDjango question

2008-09-04 Thread Ludwig
Hi Adrián, Regarding your SRS questions you need to be aware that if you use different SRS for different tables that unless you reproject to a common one distance computations make no sense. Likewise if you are computing the distance in an e.g. lat/long projection your distance will be not be in ki

Re: ManyToMany performance..

2008-09-04 Thread [EMAIL PROTECTED]
I modified the 'get_main_section' method in this way.. def get_main_section(self): try: sections = list(self.id_section.all().order_by('order')) if (len(sections) > 1): section_name = sections[1] else: section_name =

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

2008-09-04 Thread MakotoSatoh
Hi, Can I include my Model's or AdminModel's method into AdminModels list_filter? I don't want to store the value in database, since that value is calculatable on the fly. Thanks in advance and congratuation on 1.0 release. --~--~-~--~~~---~--~~ You received thi

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread skam
Thank you all for the great work done! Django is the best web framework ever written, it's really time to spread the word and use it everywhere! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: GeoDjango question

2008-09-04 Thread Adrián Ribao
Thank you Ludwig! > Regarding your SRS questions you need to be aware that if you use different > SRS for different tables that unless you reproject to a common one distance > computations make no sense. So I guess I have to use the default srid in both models. Right? If I set the default srid,

using 1.0 instead trunk

2008-09-04 Thread Aljosa Mohorovic
trunk - http://code.djangoproject.com/svn/django/trunk/django/ 1.0 tag - http://code.djangoproject.com/svn/django/tags/releases/1.0/ since i'm using subversion for my sites in svn:externals i have django trunk and now i'm switching to 1.0 tag. so what i'm actually asking is if i'm using 1.0 tag i

Re: using 1.0 instead trunk

2008-09-04 Thread James Bennett
On Thu, Sep 4, 2008 at 4:28 AM, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > since i'm using subversion for my sites in svn:externals i have django > trunk and now i'm switching to 1.0 tag. > so what i'm actually asking is if i'm using 1.0 tag in svn:externals > does it mean that i'm guaranteed t

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

2008-09-04 Thread ekellner
> > > When i use wrong dates in a query and execute that directly on the > database, > then i get the same error message. > Judging from the error message, it seems as if the date is in a different > format than expected by the database. > The expected date format is a per-connection level setting

ANN: Updated Django Cheat Sheet

2008-09-04 Thread Fraser Nevett
With the release of Django 1.0, we're pleased to announce the release of a completely updated version of our highly popular Django Cheat Sheet which is crammed with a whole host of useful Django information: http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/ We welcome any ideas for im

ANN: Updated Django Cheat Sheet

2008-09-04 Thread Fraser Nevett
With the release of Django 1.0, we're pleased to announce the release of a completely updated version of our highly popular Django Cheat Sheet which is crammed with a whole host of useful Django information: http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/ We welcome any ideas for im

Re: forms and dynamic # of form fields

2008-09-04 Thread andylockran
Mike Hansen wrote: > I apologize if this already showed up on the list. I originally posted this > from google groups, and I think it ate it. > > I'm new to Django. As a small Django project, I'm making a internal purchase > request form. One section has user information and another section has

TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread simong
I am trying to migrate a project to 1.0 and I'm currently updating the admin system. When I try to load the /admin/ URL I get this error: Exception Type: TemplateSyntaxError Exception Value:Caught an exception while rendering: No module named admin_urls The error is coming from l

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Alex
On Sep 4, 2:07 am, "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 notes:http://docs.djangoproject.com/en/dev/releases/1.0/ > > Have fun with it, and we'll see

Re: GeoDjango question

2008-09-04 Thread Ludwig
I am using MySQL at the moment, so I cannot really help you with the distance calculations, but the documentation at http://code.djangoproject.com/wiki/GeoDjangoDatabaseAPI#DistanceLookupssuggests that your distance calculations should work at least if your SRS is in meters/km etc. I you mean defa

django-mptt

2008-09-04 Thread peter_g
Hi! Playing with the wonderful mptt code: http://code.google.com/p/django-mptt/ I would like to ask if someone knows how to do this: (I play with some kind of navigation for websites) I have a tree where some nodes are marked "inactive" or "deleted". Furthermore, some nodes are to be displayed

Accessing other attributes from Foreign-key

2008-09-04 Thread andylockran
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) supplier = models.ForeignKey(Company) Description = models.

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Ivan Sagalaev
dankelley wrote: > In other words, should I (or typical users) download the official 1.0 > version, or will it still be advised to track the development version? Nothing can stop you from using trunk :-) I'm not a core developer so don't take it as an official advice. But I do think that living

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Danny
Great achievement, congratulations from Belgium! We already celebrated on our own release trip. Check out the original Django museum and his place of birth: http://www.think-wize.com/nl/django-10-celebration On Sep 4, 2:07 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > The Django team is plea

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread sserrano
Thanks for the great work! James Bennett wrote: > The Django team is pleased to announce the release of Django 1.0 this evening: > > Download: http://www.djangoproject.com/download/ > Release notes: http://docs.djangoproject.com/en/dev/releases/1.0/ > > Have fun with it, and we'll see you in a fe

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

2008-09-04 Thread Ian Ozsvald
Hi Rodolfo, thanks for the feedback. I've just finished the v1 version, once it is uploaded to Vimeo etc I'll announce it here. I'm glad you liked Chrome, I figured it'd make for a change from Firefox or Safari :-) Cheers! Ian. 2008/9/4 Rodolfo <[EMAIL PROTECTED]> > > Man, nice video! > Go for

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

2008-09-04 Thread andylockran
Love it :) --~--~-~--~~~---~--~~ 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

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

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 4:55 AM, MakotoSatoh <[EMAIL PROTECTED]> wrote: > > Hi, > > Can I include my Model's or AdminModel's method into AdminModels > list_filter? > > I don't want to store the value in database, since that value is > calculatable on the fly. > > Thanks in advance and congratuation

Strange AttributError when saving sessions in 1.0

2008-09-04 Thread Baishampayan
Hello, I just moved to Django 1.0 and I am facing a weird error when Django sessions tries to save the session into the PostgreSQL DB. A traceback is given below: 2008-09-04 17:30:55: (mod_fastcgi.c.2534) FastCGI-stderr: Traceback (most recent call last): File "/var/lib/python-support/python2.

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread Jeff FW
Thank you all, yet again, for making it feel like the past decade or so that I've been using other languages/frameworks was completely wasted :-) Keep it up, please. -Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: ManyToMany performance..

2008-09-04 Thread krylatij
You can use an extra select to get additional parameter 'main_section' This is for MySQL and it's only sample you need to test it in your DB to make sure, that it works sub_select = """SELECT section_name FROM %(table_section)s as sc, % (table_section_story)s as st

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

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 7:04 AM, simong <[EMAIL PROTECTED]> wrote: > > I am trying to migrate a project to 1.0 and I'm currently updating the > admin system. When I try to load the /admin/ URL I get this error: > > Exception Type: TemplateSyntaxError > Exception Value:Caught an exce

Re: ManyToMany performance..

2008-09-04 Thread krylatij
sorry, you need story = Story.objects.filter(pk=1).extra(select={'main_section': sub_select }).values('main_section', 'other_field1', 'other_field2' ) [0] because we get here list of dictionaries Good luck! --~--~-~--~~~---~--~~ You received this message because

ANN: 'Django in Under a Minute' screencast

2008-09-04 Thread Ian Ozsvald
I've amended yesterday's preview release to reflect the new v1 Django site, the finished 'Django in Under a Minute' screencast is available, I trust it'll help spread the word to potential new Django users, feel free to embed in blog posts: http://www.vimeo.com/1665004 http://showmedo.com/videos/vi

Re: S3 tutorial for File Storage Refactor?

2008-09-04 Thread David Larlet
Hi Jay, Thanks for the patch, I need to spend more time on this but I had pushed your correction. Any feedback is really appreciated. Best, David Le 2 sept. 08 à 18:22, shadfc a écrit : > To fix the corrupt images error, add > content.open() > to the top of _save() on the S3Storage class (or

Django 1.0 post_save signal has no attribute 'connect'?

2008-09-04 Thread Webchemist
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__', '__repr__', '__setattr__', '__str__'] and print signals.post_save

UnicodeDecodeError when using replace on model field

2008-09-04 Thread Aljosa Mohorovic
i can't figure out what's the problem (i also used re with same results). how should i replace a pattern with non-ascii char? working as expected: In [27]: s Out[27]: 'asd' In [28]: s = s.replace("s", "š") In [29]: s Out[29]: 'a\xc5\xa1d' not working on model fields: In [30]: p = Page.objects.al

InlineModelAdmin dynamic extra option

2008-09-04 Thread anonymous
Hi, I'ld like to put an "add another" kind of button at the admin inline form, but with InlineModelAdmin classes I can only put extra, min_num and max_nun. How could I do to add another instance dynamically without saving? Thanks in advance. --~--~-~--~~~---~--~~

Re: Strange AttributError when saving sessions in 1.0

2008-09-04 Thread Baishampayan
> I just moved to Django 1.0 and I am facing a weird error when Django > sessions tries to save the session into the PostgreSQL DB. Problem solved guys :) It was an old Django process which was still running and throwing the error. Congratulations on 1.0 and keep up the great work. Regards, BG

Re: UnicodeDecodeError when using replace on model field

2008-09-04 Thread Karen Tracey
2008/9/4 Aljosa Mohorovic <[EMAIL PROTECTED]> > > i can't figure out what's the problem (i also used re with same > results). how should i replace a pattern with non-ascii char? > > working as expected: > In [27]: s > Out[27]: 'asd' > In [28]: s = s.replace("s", "š") > In [29]: s > Out[29]: 'a\xc5

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

2008-09-04 Thread simong
On Sep 4, 2:02 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 7:04 AM, simong <[EMAIL PROTECTED]> wrote: > > > I am trying to migrate a project to 1.0 and I'm currently updating the > > admin system. When I try to load the /admin/ URL I get this error: > > > Exception Type:

Re: ANN: Updated Django Cheat Sheet

2008-09-04 Thread jonknee
> We welcome any ideas for improvements, corrections, or any other > feedback. Nice work, much appreciated. One thing did jump out at me though... In the Model fields section, USStateField and PhoneNumberField have been moved into localflavor: http://code.djangoproject.com/wiki/BackwardsIncompat

Re: UnicodeDecodeError when using replace on model field

2008-09-04 Thread Aljosa Mohorovic
On Sep 4, 4:00 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > In the working case your initial string is a bytestring, in the non-working > case the initial string is unicode.  The error comes from trying to replace > into a unicode string a bytestring containing non-ascii chars: > > >>> s = u'as

Re: 'adminapplist' is not a valid tag library

2008-09-04 Thread KillaBee
Hey, I am having the same problem running the updated version. The error is 'adminapplist' is not a valid tag library: Could not load template library from django.templatetags.adminapplist, No module named adminapplist. There is a adminapplist, but from post I need to replace it with a old one. W

No module named adminapplist

2008-09-04 Thread KillaBee
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 module named adminapplist. There is a adminapplist, but from a post here I need to r

Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread brad
W00t! :) (i've been patiently waiting :)) --~--~-~--~~~---~--~~ 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >