Re: Custom filters failing with "no module"

2007-06-08 Thread James Bennett
On 6/6/07, Andrew R <[EMAIL PROTECTED]> wrote: > whereas I just want it to import "javadoc_filter" from my current dir. I'm > sure > this is by design in django but there must be a way around it. This is one of the tricky bits of Django that you don't often see. Django needs to have some consist

Re: Scalability where file uploads are involved

2007-06-08 Thread Nimrod A. Abing
On 6/9/07, ZebZiggle <[EMAIL PROTECTED]> wrote: > > If your focus is on images, I can't recommend this utility strong > enough: > > http://www.aurigma.com/ Bookmarked :) Although we only allow as many as four images per upload session, I have to entertain the possiblity that my employer will ask

Re: Scalability where file uploads are involved

2007-06-08 Thread Nimrod A. Abing
On 6/9/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 6/7/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > > The only thing I can think of right now is to share a directory on the > > dedicated media server and have each server in the Django cluster > > mount that share either through NFS

Custom filters failing with "no module"

2007-06-08 Thread Andrew R
All, I have a code generating program that using django's nifty template packages. It all worked well until I wanted to use a custom filter. No matter what I try, I get: django.template.TemplateSyntaxError: 'javadoc_filter' is not a valid tag library: Could not load template library from

Re: Scalability where file uploads are involved

2007-06-08 Thread ZebZiggle
If your focus is on images, I can't recommend this utility strong enough: http://www.aurigma.com/ I believe Facebook uses it and I have no relation to it. It's a client-side compression utility for images and it supports a Java / ActiveX client model ... whatever works. Of course, you need to

Date and time formats

2007-06-08 Thread Todd O'Bryan
Is there an easy way to convert from the format strings the template language uses for the date filter and the strings Python's strftime method uses? Here's where this comes up. We're pre-populating a value in a form with datetime.now() and then using form.as_table() in the template. The time is

oldforms advice - how to validate

2007-06-08 Thread Przemyslaw Wegrzyn
Hi! I have the following construct in my model: class SomeObject(models.Model): type = models.ForeignKey(SomeObjectType) ... a few other fields... I want to present a form for editing SomeObject, with drop-down list for 'type' field. However I want to apply different validation rules fo

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Kenneth Gonsalves
On 09-Jun-07, at 12:41 AM, Nic James Ferrier wrote: >> to elaborate, i dont think such skill sets are available on the >> market. People who have them are all happily employed or are self- >> mployed > > Self employed means available on the market. > > I have those skills. I am self employed. I

Re: Scalability where file uploads are involved

2007-06-08 Thread Jacob Kaplan-Moss
On 6/7/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > The only thing I can think of right now is to share a directory on the > dedicated media server and have each server in the Django cluster > mount that share either through NFS or Samba. But I don't think it's a > good idea to do it this way.

Half a brain wanted ???????

2007-06-08 Thread [EMAIL PROTECTED]
Are you coachable, because if you are I have a proven formula that I have personally tested and it really works? This formula produces income..., pure and simple. If you are like me and have tried other businesses... only to fail, then this is something you'll thank me for. http://www.leveragingon

Re: Profiling django site

2007-06-08 Thread [EMAIL PROTECTED]
I found this Profiling Middleware earlier today. Haven't had a chance to test drive it yet, but it might be what you're looking for: http://www.djangosnippets.org/snippets/186/ On Jun 8, 10:17 am, Richard Phelps <[EMAIL PROTECTED]> wrote: > I'd appreciate guidance as to how to go about identifyin

Re: Many to many in template question

2007-06-08 Thread [EMAIL PROTECTED]
Thanks Russell. I'll go re-read them (again). One of these days they'll actually sink into my thick skull. On Jun 7, 7:09 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > Figured it out. Template wanted (for whatever reason)

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Tyson Tate
Don't forget us students! Although, for example, I'm currently employed as a web developer/designer for a 20,000 student university library, I consider myself "on the market" for when I graduate. However, I've got maybe only 75% of the qualifications ZebZiggle is asking about. However, as

Re: The going rate for Django-based web developers ...

2007-06-08 Thread aaloy
2007/6/8, Kenneth Gonsalves <[EMAIL PROTECTED]>: > > > On 08-Jun-07, at 11:57 PM, ZebZiggle wrote: > > > Strong python, javascript, CSS, postgres, jquery (or alike), debugging > > and lots of general experience in software development. And when I say > > CSS, I don't mean graphic design skills, bu

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Nic James Ferrier
Kenneth Gonsalves <[EMAIL PROTECTED]> writes: > On 09-Jun-07, at 12:20 AM, Kenneth Gonsalves wrote: > >>> Strong python, javascript, CSS, postgres, jquery (or alike), >>> debugging >>> and lots of general experience in software development. And when I >>> say >>> CSS, I don't mean graphic des

Re: The going rate for Django-based web developers ...

2007-06-08 Thread [EMAIL PROTECTED]
I'm sure there are a lot of ppl that are employed and looking around though I don't think employed always equals happily employed ;) On Jun 8, 2:58 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 6/8/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > to elaborate, i dont think suc

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Jacob Kaplan-Moss
On 6/8/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > to elaborate, i dont think such skill sets are available on the > market. People who have them are all happily employed or are self- > mployed No shit; I have trouble finding people like that at *any* price. [Shameless plug: if *you* have

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Kenneth Gonsalves
On 09-Jun-07, at 12:20 AM, Kenneth Gonsalves wrote: >> Strong python, javascript, CSS, postgres, jquery (or alike), >> debugging >> and lots of general experience in software development. And when I >> say >> CSS, I don't mean graphic design skills, but knowing how to take a >> graphic desig

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Kenneth Gonsalves
On 08-Jun-07, at 11:57 PM, ZebZiggle wrote: > Strong python, javascript, CSS, postgres, jquery (or alike), debugging > and lots of general experience in software development. And when I say > CSS, I don't mean graphic design skills, but knowing how to take a > graphic design and translate it int

Re: The going rate for Django-based web developers ...

2007-06-08 Thread [EMAIL PROTECTED]
I think it probably depends on if the developer has other skill sets such as C++, Java, rather than just web based programming experience. I believe that developers with those skill sets can usually fetch a bit more, but I could be wrong here. On Jun 8, 2:27 pm, ZebZiggle <[EMAIL PROTECTED]> wrot

defining wiki-like pages with custom template tags

2007-06-08 Thread omat
Hi all, For sometime, I was thinking of a flexible yet easy to manage CMS for creating wiki-like pages. That is: - content and presentation of each page should be defined freely and independently almost as free as in plain HTML documents when needed - common blocks of content and templates shoul

The going rate for Django-based web developers ...

2007-06-08 Thread ZebZiggle
Here's a nice softball question for a Friday afternoon ... What is the average going rate for seasoned Django developers? Hourly rates or annual salaries are fine. Strong python, javascript, CSS, postgres, jquery (or alike), debugging and lots of general experience in software development. And w

URLConf parameter passing and Decorators

2007-06-08 Thread [EMAIL PROTECTED]
I'm using the .96 release and it seems like URLConf is passing my parameters as positional, even though they are named. Can anyone guess why this fails? When I wrap a view function with a decorator the named arguments seem to be converted to positional. At first I caught the KeyError and defaulted

Re: manipulator for auth.user

2007-06-08 Thread James Bennett
On 6/8/07, Dushyant Sharma <[EMAIL PROTECTED]> wrote: > come on somebody pl. reply Please don't do this. Sometimes it takes a little while -- maybe even a day or so -- for someone to read through and figure out how to help you with your problem, and quickly posting followups like this won't spee

Re: manipulator for auth.user

2007-06-08 Thread Dushyant Sharma
come on somebody pl. reply --~--~-~--~~~---~--~~ 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 [EMAI

Re: how to update a translation message in django

2007-06-08 Thread Kenneth Gonsalves
On 08-Jun-07, at 4:54 PM, Gilbert Fine wrote: > I am a Chinese user. I found some message is displayed as English in > my site. So I check the django.po under zh_CN. I found that the msgid > is already in django.po, but not in django.mo. Why? are they marked as fuzzy? if so, they will be ignore

Re: DBMigrations - an library/tool for database evolution

2007-06-08 Thread orestis
There's no limitation - one could always create a contrib app that uses your framework behind the scenes... On Jun 8, 3:53 am, "Marinho Brandao" <[EMAIL PROTECTED]> wrote: > > Sounds great Marinho, thanks for contributing this! *bookmarked* > > thanks for the considerations :) > > next days I wil

Re: Avoiding explicit references in application files

2007-06-08 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 07:33 -0700, Tipan wrote: > I'm in the process of moving our projects onto production servers and > attempting to remove explicit references to the application name in my > files. I want to be able to run a full production and a staging > version on the same server (I've set

Re: Avoiding explicit references in application files

2007-06-08 Thread Forest Bond
On Fri, Jun 08, 2007 at 07:33:40AM -0700, Tipan wrote: > > I'm in the process of moving our projects onto production servers and > attempting to remove explicit references to the application name in my > files. I want to be able to run a full production and a staging > version on the same server (

Re: Feasibility of integrating large database into Django-App

2007-06-08 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 14:01 +, David the Dude wrote: > Hi, > > I want to build a web-application using Django and before I get > started I would like some opinions on the feasibility of it all. > > Here is the general layout: > > I have a huge remote oracle database containing time series,

Avoiding explicit references in application files

2007-06-08 Thread Tipan
I'm in the process of moving our projects onto production servers and attempting to remove explicit references to the application name in my files. I want to be able to run a full production and a staging version on the same server (I've set this up with Apache VirualHosts). Both versions will be

Profiling django site

2007-06-08 Thread Richard Phelps
I'd appreciate guidance as to how to go about identifying slow- running portions of python code in my extensively customised django applications suite. Most posts I've found address the probably more important issues that relate to web page serving and database efficiency issues, but as a r

Feasibility of integrating large database into Django-App

2007-06-08 Thread David the Dude
Hi, I want to build a web-application using Django and before I get started I would like some opinions on the feasibility of it all. Here is the general layout: I have a huge remote oracle database containing time series, huge = several billion entries and for that reason a local copy will be c

Re: Getting primary key value without unnecessary database query

2007-06-08 Thread matthew
D'oh! Thanks. M On Jun 8, 2:40 pm, Forest Bond <[EMAIL PROTECTED]> wrote: > On Fri, Jun 08, 2007 at 06:35:33AM -0700, matthew wrote: > > > Hi, > > > This is my model: > > > class Fish(models.model): > >species = models.ForeignKey('Species') > > more fields > > > class Species(models.M

Re: Getting primary key value without unnecessary database query

2007-06-08 Thread Forest Bond
On Fri, Jun 08, 2007 at 06:35:33AM -0700, matthew wrote: > > Hi, > > This is my model: > > class Fish(models.model): >species = models.ForeignKey('Species') > more fields > > class Species(models.Model): > key = models.SlugField(primary_key=True,maxlength=20) > more fie

Getting primary key value without unnecessary database query

2007-06-08 Thread matthew
Hi, This is my model: class Fish(models.model): species = models.ForeignKey('Species') more fields class Species(models.Model): key = models.SlugField(primary_key=True,maxlength=20) more fields Given a Fish object, I want to be able to use the value of the Fish.species

Re: manipulator for auth.user

2007-06-08 Thread Dushyant Sharma
if this is possible or not to apply manipulator on User and on two models. i have read previous posts in this regard sugggesting method what i have used but i am getting errors as above. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

تعارف

2007-06-08 Thread الحربي
مرحبا في بداية رسالتي هذه ارجو ان تقبلوني صديق عربي لكم اني من العراق ويشرفني ذلك ويشرفني ايظآ ان اكون لكم صديق دائم انشاء الله تعالى مع فائق الشكر والاحترام ارجو مراسلتي على عنوان البريدي مع التقدير --~--~-~--~~~---~--~~ You received this message because you are su

Re: Best way to strip form data

2007-06-08 Thread Przemyslaw Wegrzyn
Malcolm Tredinnick wrote: >I can't think of a way off the top of my head to do this with generic >views. With a manually created (old)form, you could do this by >sub-classing oldforms.TextField and putting a prepare() method in the >sub-class that does the stripping, I guess, but then you are no

Re: Customizing validation error messages

2007-06-08 Thread Przemyslaw Wegrzyn
Malcolm Tredinnick wrote: >You don't explain whether you are using oldforms or newforms here. > > Right - at the moment using oldforms with generic views, I'm not yet really familiar with newforms. I'm quite new to Django :) >For newforms, override the Field class(es) that you wish to customis

Re: Event framework ?

2007-06-08 Thread Tarek
Thanks Malcom and Deryck, I was grepping with "event" instead of "signal" ;) On Jun 8, 1:37 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: [cut] > The signals are hooked into Python object action, rather than > database-level actions, so to do this you would need to listen and act > on the po

Re: how to update a translation message in django

2007-06-08 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 04:32 -0700, Gilbert Fine wrote: > Oh, the missing msgid is "Ensure this value has at least %d > characters". It appears in the po file only after I update the po file > by running make-message.py Notice that the message in question is marked as "fuzzy". That means the trans

Re: Customizing validation error messages

2007-06-08 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 13:09 +0200, Przemyslaw Wegrzyn wrote: > Hi! > > How can I customize a validation error message? Looking at the code of > any validator I can see that it uses gettext(), so I can use i18n > mechanisms to customize the message. But I'm not too happy with that. > > What if I

Re: Event framework ?

2007-06-08 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 10:22 +, Tarek wrote: > Hi, > > I've seen through Google that Django used to have an event framework > (http://code.djangoproject.com/ticket/421). > But it seems deprecated. Our signal framework isn't deprecated. Not sure how you got that impression from #421, but it's

Re: Event framework ?

2007-06-08 Thread Deryck Hodge
On 6/8/07, Tarek <[EMAIL PROTECTED]> wrote: > I've seen through Google that Django used to have an event framework > (http://code.djangoproject.com/ticket/421). > But it seems deprecated. > > What should I use now ? Is there any event framework avalaible > anymore ? > > If yes, is there somewhere

Re: Best way to strip form data

2007-06-08 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 11:01 +0200, Przemyslaw Wegrzyn wrote: > Malcolm Tredinnick wrote: > > >>I have some CharField's in my model, I'm using create_update generic > >>views to edit them. I need all text data to be strip()'ed before being > >>saved to database. How can this be done in the most si

Re: how to update a translation message in django

2007-06-08 Thread Gilbert Fine
Oh, the missing msgid is "Ensure this value has at least %d characters". It appears in the po file only after I update the po file by running make-message.py On Jun 8, 7:24 pm, Gilbert Fine <[EMAIL PROTECTED]> wrote: > I am a Chinese user. I found some message is displayed as English in > my site

how to update a translation message in django

2007-06-08 Thread Gilbert Fine
I am a Chinese user. I found some message is displayed as English in my site. So I check the django.po under zh_CN. I found that the msgid is already in django.po, but not in django.mo. Why? I had try to update the mo using compile-message or just run msgfmt directly. The result is the same, some

Customizing validation error messages

2007-06-08 Thread Przemyslaw Wegrzyn
Hi! How can I customize a validation error message? Looking at the code of any validator I can see that it uses gettext(), so I can use i18n mechanisms to customize the message. But I'm not too happy with that. What if I want the message to be generated dynamically based on the actual data (Like

Re: reduce execution time of object.count()

2007-06-08 Thread simonbun
If your situation allows it, you could de-normalize and save the count result in a separate table. Then you need to adjust the count whenever you add / delete a row ofcourse. If you're a database purist I might have made your stomach turn, however :) regards, Simon On Jun 7, 8:19 pm, Paul Rauch

manipulator for auth.user

2007-06-08 Thread Dushyant Sharma
i am trying to add manipulator on default User object. i am getting name, email and address from the form and trying to fill date_joined and last_login attributes myself as user_data['date_joined_date']=datetime.date.today() user_data['date_joined_time']=(datetime.time()

Re: "Powered by Django" directory - Designer Wanted!

2007-06-08 Thread Ross Poulton
Thanks to everyone who has provided feedback both here and off-list. On Jun 6, 3:08 am, wathi <[EMAIL PROTECTED]> wrote: > So here is my first shot. > > 1024x768http://img131.imagevenue.com/img.php?image=63063_djpr1_122_506lo.jpg I really like the way you've bordered the individual images there.

Event framework ?

2007-06-08 Thread Tarek
Hi, I've seen through Google that Django used to have an event framework (http://code.djangoproject.com/ticket/421). But it seems deprecated. What should I use now ? Is there any event framework avalaible anymore ? If yes, is there somewhere a list of triggered events through the whome Django f

Re: reduce execution time of object.count()

2007-06-08 Thread Nis Jorgensen
Paul Rauch wrote: > Is there a way to reduce execution time by counting objects? > > it's even splitted in two queries now, with only 2474487 entries ;) > > in django I use "model.objects.count()" > > SELECT COUNT(*) FROM "rainbowtables_hashes":34.552 > > SELECT COUNT(*) FROM "rainbowtables_hashes

Re: Best way to strip form data

2007-06-08 Thread Przemyslaw Wegrzyn
Malcolm Tredinnick wrote: >>I have some CharField's in my model, I'm using create_update generic >>views to edit them. I need all text data to be strip()'ed before being >>saved to database. How can this be done in the most simple way? >> >> > >In the model's save() method. > > Hmm, is ther

Re: admin is inserting empty images

2007-06-08 Thread omat
Oops! It was a little early to think the problem was solved. Now I cannot add images at all... And there is no exception, the images I upload are silently ignored. On 7 Haziran, 18:27, omat <[EMAIL PROTECTED]> wrote: > Yes! It worked that way. > > Thanks a lot... > > On 7 Haziran, 18:09, robo

Re: IntegrityError: null value in column "id" when inserting via admin

2007-06-08 Thread omat
This was because the default values of the id fields nextval(...) s were not created in the new db, when I port the data by backup & restore. On 7 Haziran, 21:11, omat <[EMAIL PROTECTED]> wrote: > By the way, I suspect that during moving existing data into the new > database, somethings might h