Re: Built in Users one-to-many in built-in admin

2007-04-26 Thread Erik Postma
On Apr 27, 6:11 am, mynameisgabe <[EMAIL PROTECTED]> wrote: > Hello all - > > I'm using django's awesome built in admin for internal folks to view > and manage users and the data associated with users. I've got a model > (let's call it "Article") that contains a foreignkey pointing to the > djan

Re: Development server

2007-04-26 Thread Malcolm Tredinnick
On Thu, 2007-04-26 at 11:59 -0700, Pythoni wrote: > Is the development server from 0.95 or 0.96 compatible with 0.91 > version? > I use Django 0.91 but have problem with the development server. .Many > times I receive the error > # > > Unhandled exception in thread started by > Er

Re: loaddata on User bug?

2007-04-26 Thread Vinay Sajip
On Apr 26, 10:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have dumped the User model on one db using dumpdata. I have a single > json fixture file with one record (see below). When I run the loadata > I get the error below. I use ptyhon 2.5 with psycopg2 on macOSX. I > have tested on

Re: loaddata on User bug?

2007-04-26 Thread Russell Keith-Magee
On 4/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have dumped the User model on one db using dumpdata. I have a single > json fixture file with one record (see below). When I run the loadata > I get the error below. I use ptyhon 2.5 with psycopg2 on macOSX. I > have tested on Ubuntu a

Built in Users one-to-many in built-in admin

2007-04-26 Thread mynameisgabe
Hello all - I'm using django's awesome built in admin for internal folks to view and manage users and the data associated with users. I've got a model (let's call it "Article") that contains a foreignkey pointing to the django.contrib.auth.models.User. That seems to be working perfectly except f

Re: Newforms Captcha 0.1 release

2007-04-26 Thread Brandon Low
I've setup a website of sorts for this project: http://www.lostlogicx.com/captchasblow On 2007-04-26 (Thu) at 09:10:21 -0500, Brandon Low wrote: > > 16 hours ago I posted about my captcha system that was quite rough > around the edges. > > I've done some house cleaning since then and will call

Re: django sendmail

2007-04-26 Thread drourke
hi, I've had the same problem I believe. For me the problem was twofold. 1. Trying to reach a third-party smpt server through my local internet connection. In my case, I've been at several locations where I try to send mail to the webfaction smpt server via the local internet connection. I ca

loaddata on User bug?

2007-04-26 Thread [EMAIL PROTECTED]
I have dumped the User model on one db using dumpdata. I have a single json fixture file with one record (see below). When I run the loadata I get the error below. I use ptyhon 2.5 with psycopg2 on macOSX. I have tested on Ubuntu and I get a similar error. Is it a bug? Installed 1 object(s) from

Re: Comparing dates

2007-04-26 Thread Tim Chase
> today = datetime.date.today() > context[self.varname] = GpUser.objects.filter(birthday=today) > > The problem is, that will never evaluate to true, because I still have > today's year. So, how does one throw out the year and just compare > month and day? Well, the Django ORM handles something

Re: Redirect middleware

2007-04-26 Thread oggie rob
On Apr 26, 12:16 pm, Laurie Harper <[EMAIL PROTECTED]> wrote: > oggie rob wrote: > >> (r'^%s(?P[^?#]*)' % (root_url), 'apps.cms.views.render'), > > Note that '?' is a special character, ... > > Nope; it's special outside a character class ([...]), but in a character > class ? has no special meanin

Comparing dates

2007-04-26 Thread [EMAIL PROTECTED]
This is probably more of a python question, but here goes. I want to compare today's date to the users' birthdays and build a list of birthdays. I have the birthdays in the db, properly formatted, and have a template tag with this: today = datetime.date.today() context[self.varname] = GpUser.obje

Calling all translators - handling international date display

2007-04-26 Thread orestis
I'll give you a short description here: The date filter doesn't have any internationalization or localization knowledge built-in. This plays havoc with languages that have genders, cases etc (Greek, German, French and many more) and use them in displaying dates. There is a discussion at http://

Re: Redirect middleware

2007-04-26 Thread Laurie Harper
oggie rob wrote: >> (r'^%s(?P[^?#]*)' % (root_url), 'apps.cms.views.render'), > Note that '?' is a special character, ... Nope; it's special outside a character class ([...]), but in a character class ? has no special meaning. L. --~--~-~--~~~---~--~~ You recei

Development server

2007-04-26 Thread Pythoni
Is the development server from 0.95 or 0.96 compatible with 0.91 version? I use Django 0.91 but have problem with the development server. .Many times I receive the error # Unhandled exception in thread started by Error in sys.excepthook: Original exception was: Validating models.

Re: Select widget choices

2007-04-26 Thread Laurie Harper
Christian Markwart Hoeppner wrote: > I just noticed that it needs an iterable ot two-tuples. I wonder if > there's a way to automate the creation of such a sequence, when I need a > numbered sequence. Something like "for i in range(): list.push((i,i))" > or so? I'm pretty new to python :) Perhaps

Re: Newforms Captcha 0.1 release

2007-04-26 Thread Brandon Low
Cool project -- do you plan to use some derivative of eggs, the way that rails components come in ruby gems, or a completely separate deployment system? --Brandon On 2007-04-26 (Thu) at 16:44:53 -, Mike Axiak wrote: > > We're working on it: > http://code.google.com/soc/django/appinfo.html?c

Re: Newforms Captcha 0.1 release

2007-04-26 Thread Mike Axiak
We're working on it: http://code.google.com/soc/django/appinfo.html?csaid=BA8EE19AE8DC2ECA -Mike On Apr 26, 12:19 pm, Henrik Jensen <[EMAIL PROTECTED]> wrote: > Jay Parlar wrote: > > On 4/26/07, Brandon Low <[EMAIL PROTECTED]> wrote: > >> 16 hours ago I posted about my captcha system that was qu

Re: Newforms Captcha 0.1 release

2007-04-26 Thread Henrik Jensen
Jay Parlar wrote: > On 4/26/07, Brandon Low <[EMAIL PROTECTED]> wrote: >> 16 hours ago I posted about my captcha system that was quite rough >> around the edges. >> >> I've done some house cleaning since then and will call it 0.1. >> >> This is now in "Works on my live site" state. I managed to c

free dating site - similar to lavalife but completely free

2007-04-26 Thread twopunchtony
I just came across this dating site. Its 100% free, no credit cards needed, very similar to lavalife, but again its free. All kinds of features too, such as instant messaging, emailing, chat rooms, forums, e-cards, and much more which are all usable without paying. Take a look the site is at ht

Re: Newforms Captcha 0.1 release

2007-04-26 Thread Jay Parlar
On 4/26/07, Brandon Low <[EMAIL PROTECTED]> wrote: > > 16 hours ago I posted about my captcha system that was quite rough > around the edges. > > I've done some house cleaning since then and will call it 0.1. > > This is now in "Works on my live site" state. I managed to clean up > most of the ha

Re: audit trail support

2007-04-26 Thread Jason McVetta
Here is my current thinking: - No changes to main model tables - Designate a model to be audited by including inner class "Audit" - One shadow table per audited model - Generate shadow tables for all audited models on post_syncdb - Only write to one DB, until multi-db support is com

Re: Finding out which fields changed

2007-04-26 Thread [EMAIL PROTECTED]
Ah nice, I tried something like that, but I used self.width instead of doing an actual get on the model. Works fine now, thanks :) -Vincent On Apr 26, 10:28 am, "Mike H" <[EMAIL PROTECTED]> wrote: > Hi Vincent, > > It sounds to me like you need a pre_save signal to check if the width > and/or h

Re: Finding out which fields changed

2007-04-26 Thread Mike H
Hi Vincent, It sounds to me like you need a pre_save signal to check if the width and/or height of the model you're about to save is different from the one currently stored in the database, and if they are different, regenerate the thumbnail. Something like : in_db = Model.objects.get(pk=s

Re: Finding out which fields changed

2007-04-26 Thread Malcolm Tredinnick
On Thu, 2007-04-26 at 07:21 -0700, [EMAIL PROTECTED] wrote: > Hello, > > I have a small photo gallery application. My model has two classes, > Gallery and Photo. Gallery contains information on the width and > height of the thumbnails of its photos. I added a post_save signal so > that when a

Re: Help with queryset

2007-04-26 Thread [EMAIL PROTECTED]
Looks like I had overlooked isnull. Thanks guys. On Apr 24, 5:06 pm, robin_percy <[EMAIL PROTECTED]> wrote: > Looks like my earlier reply got dropped. Sorry if this ends up being > a double post. > > Check out the Model API > docs:http://www.djangoproject.com/documentation/db-api/#isnull > > Y

Finding out which fields changed

2007-04-26 Thread [EMAIL PROTECTED]
Hello, I have a small photo gallery application. My model has two classes, Gallery and Photo. Gallery contains information on the width and height of the thumbnails of its photos. I added a post_save signal so that when a Gallery object is saved, all the photo thumbnails are recreated to match

Re: "mpm-prefork" vs. "mpm-worker"

2007-04-26 Thread Atilla
On 26/04/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > On Apr 25, 7:10 pm, Atilla <[EMAIL PROTECTED]> wrote: > > I personally find it Very bad to bind Django users to 1 apache worker > > model, considering how the Apache modules progress and the performance > > you can get out of using cleve

Newforms Captcha 0.1 release

2007-04-26 Thread Brandon Low
16 hours ago I posted about my captcha system that was quite rough around the edges. I've done some house cleaning since then and will call it 0.1. This is now in "Works on my live site" state. I managed to clean up most of the hacky crap that was in the last version and add some comments to my

Re: django sendmail

2007-04-26 Thread Karen Tracey
On 4/26/07, arv43 <[EMAIL PROTECTED]> wrote: > > > hello, > i get a 550, relay not permitted error when i try to use send_mail. > this is on my laptop running Ubuntu. But when I try this on my host > (webfaction), I get a different error > > Exception Type: error > Exception Value: (111, '

Re: django sendmail

2007-04-26 Thread Aidas Bendoraitis
Set some EMAIL_HOST, EMAIL_HOST_USER, and EMAIL_HOST_PASSWORD in your settings. That might help you. Regards, Aidas Bendoraitis aka Archatas On 4/26/07, arv43 <[EMAIL PROTECTED]> wrote: > > hello, > i get a 550, relay not permitted error when i try to use send_mail. > this is on my laptop runnin

django sendmail

2007-04-26 Thread arv43
hello, i get a 550, relay not permitted error when i try to use send_mail. this is on my laptop running Ubuntu. But when I try this on my host (webfaction), I get a different error Exception Type: error Exception Value: (111, 'Connection refused') Exception Location: /usr/local/lib/p

Re: using django in cronjobs + database locks...

2007-04-26 Thread Jeremy Dunck
On 4/26/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > I have a particular file-processing "cron" job that uses django. > Something much like this: > > while True: > for image in Image.objects.filter(processing_state="pending"): > #process image > time.slee

Re: Databrowse problem

2007-04-26 Thread Michal
>> Is it possible change the code to generate months in URLs as numbers, >> instead of 3-letter texts please? > > there is already a ticket in this regard - please add your comments > there Sorry, I forgot to look into Trac. I put my comment there: http://code.djangoproject.com/ticket/4094

Re: Databrowse problem

2007-04-26 Thread Kenneth Gonsalves
On 26-Apr-07, at 3:01 PM, Michal wrote: > Is it possible change the code to generate months in URLs as numbers, > instead of 3-letter texts please? there is already a ticket in this regard - please add your comments there -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.i

Template tags with nested block

2007-04-26 Thread fero
Hello I have a problem with my own block tag "labs_block" which includes other "block" tags. It seems that inner block inheritance doesn't work. I pasted some code at http://dpaste.com/9081/ (in this case the inner block is "resource_details"). I get really into troubles, can you help me please ?

Re: Named URL patterns to use prefix?

2007-04-26 Thread Malcolm Tredinnick
Hey Ryan, On Wed, 2007-04-25 at 16:23 +, Ryan Kanno wrote: > Already a ticket? Shoot, I swore I searched, but I couldn't find > one. Sorry about that - my apologies. > > (http://code.djangoproject.net/ticket/4129) No problems -- I forgot to point you to the ticket number, too. Anyway, th

using django in cronjobs + database locks...

2007-04-26 Thread Bram - Smartelectronix
hi all, I have a particular file-processing "cron" job that uses django. Something much like this: while True: for image in Image.objects.filter(processing_state="pending"): #process image time.sleep(30) Now I notice that while running this script the DB table

Re: Primary key field can be empty

2007-04-26 Thread Kai Kuehne
Hi, On 4/26/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Wow .. there's been a lot of response to this without the answer > actually appearing: it's a bug! :-) > > Ticket #3774 is the relevant ticket. > > I'm very tempted to fix this by actually implementing the documented > behaviour, bec

Re: Database design question

2007-04-26 Thread Kai Kuehne
Hi Doug, On 4/26/07, Doug Van Horn <[EMAIL PROTECTED]> wrote: > [Links] > There's no harm in having unique columns in addition to your primary > key (as you describe). The nut of the problem around natural keys, > IMHO, is that the rules that make them natural keys today can change > such that t

Databrowse problem

2007-04-26 Thread Michal
Hello, before a while I tried the new Django feature -- Databrowse. It is looked fine, but I found little "bug": * first, this is my settings: I have set Django to my locale setting (ie, TIME_ZONE='Europe/Prague', LANGUAGE_CODE='cs') * When I try to view data by calendar, I could succesfully se

I'm Wondering How It Can Be Real

2007-04-26 Thread betterfuture
It's hard to belive but its really happening. 1st time I saw it, I thought its just another money making machine, but the way he prove it to me really got me thinking. http://whoisjoeschmoe.com/?id=268 If you are thinking on how you can be helped by helping people, you can ask him the details be

(((< TOP 10 Universities >)))

2007-04-26 Thread Rania Desai
Hi Friends, Here is top 10 Universities list of the Wolrd http://information.100stuff.com/top-10-universities/ enjoy it, and if you have any problem about online universities please reply me and you have any information about online courses please share with us Thanks, Rania --~--~-~--~--