Re: FileBrowser v 2.0

2007-06-07 Thread patrick k .
integration of basic image-editing with SNIPSHOT is done. just set USE_SNIPSHOT to True in fb_settings and change the SNIPSHOT_CALLBACK_URL and you´re ready to go. NOTES: ### be aware that it´s not possible to edit pictures in the popup- window. ### security issue: because of snipshots callbac

Re: Scalability where file uploads are involved

2007-06-07 Thread Nimrod A. Abing
Thanks for this suggestion. Although there would be a slight delay while the media server syncs up with the Django servers I think this solution is more feasible. On 6/8/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-06-08 at 00:38 +0800, Nimrod A. Abing wrote: > > The only th

Confused on how the groups feature works for the Admin interface

2007-06-07 Thread Michael Lake
Hi all I'm confused on how the groups feature works for the Admin interface. When I edit a user I can see at the bottom of the page the Groups section with a list of groups that I have added via the add group function. I can see the two groups listed in the list; in my case it's honours & po

Re: Newforms makes unicode String from a dictonary

2007-06-07 Thread Malcolm Tredinnick
On Fri, 2007-05-25 at 09:19 +1000, Malcolm Tredinnick wrote: > On Thu, 2007-05-24 at 20:20 +, Christian Schmidt wrote: > > Hi, > > > > I have a form to upload a picture and i try to validate it in > > newforms. But i can not read the content-type. I get the error > > "'unicode' object has no

Re: Scalability where file uploads are involved

2007-06-07 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 00:38 +0800, Nimrod A. Abing wrote: > Hello, > > I am currently doing research on scaling one of the sites I made using > Django. I have looked at Chapter 21 of the in-progress Django Book. I > plan to follow the track recommending 3 django servers behind perlbal > + 1 dedic

Re: how do you link two forms to each other?

2007-06-07 Thread rogerdpack
there it is thank you On Jun 7, 3:09 pm, Paul Rauch <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > rogerdpack schrieb:> What if two forms are M2M to each other -- or in some > other way need > > to reference each other? Possible? Thanks! > > -Rogerhttp://better

Re: DBMigrations - an library/tool for database evolution

2007-06-07 Thread Russell Keith-Magee
On 6/8/07, Marinho Brandao <[EMAIL PROTECTED]> wrote: > > I think this is a better solution than create a Django contrib or > another dependent sollution. Personally, I'd prefer an integrated tool - but I acknowledge that this is personal preference. Best of luck - this isn't a small problem :-)

Admin Date and Time as NewForms Widget

2007-06-07 Thread Michael Trier
Has anyone converted the admin date and time controls to a New Forms widget format? Michael --~--~-~--~~~---~--~~ 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@goo

Re: Best way to strip form data

2007-06-07 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 02:45 +0200, Przemyslaw Wegrzyn wrote: > Hi! > > 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 sa

Re: DBMigrations - an library/tool for database evolution

2007-06-07 Thread Marinho Brandao
> Sounds great Marinho, thanks for contributing this! *bookmarked* thanks for the considerations :) next days I will have news, that I'll publish in website. @Russel: I have seen this wiki, and I've followed the discussions, but the point that I've percepted is that the ActiveRecord Migrations

Best way to strip form data

2007-06-07 Thread Przemyslaw Wegrzyn
Hi! 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? More general question - is there any elegant way to use custom manipulators with create_

Re: How to set up full text field in models.py?

2007-06-07 Thread queezy
Thanks Joseph! That is what I was doing, but I wondered if there was a better way. Cheers! -Warren - Original Message - From: "Joseph Heck" <[EMAIL PROTECTED]> To: Sent: Thursday, June 07, 2007 6:02 PM Subject: Re: How to set up full text field in models.py? > > Nothing built in

Re: Adding a group, and users to that group

2007-06-07 Thread Russell Keith-Magee
On 6/7/07, Vincent Nijs <[EMAIL PROTECTED]> wrote: > > Thanks for the help Russ: > > That worked. Next problem :) I want to add users to a group. > > g = Group.objects.get(name='section81') > > gives errors. I'm guessing the errors you are getting are telling you that various attributes can't be

Re: Many to many in template question

2007-06-07 Thread Russell Keith-Magee
On 6/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Figured it out. Template wanted (for whatever reason) > {% for foo in bar.foos.all %} instead of {% for foo in > bar.foos_set.all %} This would all be a lot clearer if you would read the DB-api docs. The related-objects section explains

Re: Data versioning (staging)

2007-06-07 Thread oggie rob
Hi Russ & ringemup, Thanks for the suggestions. Those are along the lines of what I was thinking but I can't tell (yet) if there is anything wrong with the obvious solutions - that's why I was asking :) However I've also realized this is probably a pretty specific request and it is not all that li

Re: How to set up full text field in models.py?

2007-06-07 Thread Joseph Heck
Nothing built in to Django enables that - you have to do it externally to the Django framework. On 6/7/07, Warvin Barker <[EMAIL PROTECTED]> wrote: > > Hi! > > I can set up fulltext indices via MySql directly, but is there a way to do > this in models.py? > > Thanks! > > -Warren > > > > --~--~-

How to set up full text field in models.py?

2007-06-07 Thread Warvin Barker
Hi! I can set up fulltext indices via MySql directly, but is there a way to do this in models.py? Thanks! -Warren --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Model Method Regular Expressions

2007-06-07 Thread hass
I'm trying to set up a model with a field that swallows a healthy dollop of html, such as a youtube embed code. But then, I want to use regular expressions to strip that code into pieces that I can access independently. My first thought is that some regular expression kungfu could do that parsin

Re: how do you link two forms to each other?

2007-06-07 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rogerdpack schrieb: > What if two forms are M2M to each other -- or in some other way need > to reference each other? Possible? Thanks! > -Roger http://betterlogic.com/roger > > > > > uhm, do you talk about relations? http://www.djangoproject.co

Re: how do you link two forms to each other?

2007-06-07 Thread rogerdpack
ha ha I said forms I meant classes (i.e. in your models.py file). On Jun 7, 3:02 pm, rogerdpack <[EMAIL PROTECTED]> wrote: > What if two forms are M2M to each other -- or in some other way need > to reference each other? Possible? Thanks! > -Rogerhttp://betterlogic.com/roger --~--~-~--

how do you link two forms to each other?

2007-06-07 Thread rogerdpack
What if two forms are M2M to each other -- or in some other way need to reference each other? Possible? Thanks! -Roger http://betterlogic.com/roger --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

preserve ordering in filtering

2007-06-07 Thread cesco
Hi, I have the following query which I cannot implement with the django model API because I need to order it according to a calculated field. query = """SELECT id FROM offers_offer AS f1 ORDER BY (f1.original_price-f1.discounted_price) DESC LIMIT 20""" cursor = connection.cursor() cur

Using Ajax to edit my admin page

2007-06-07 Thread Greg
I'm building a site where I'm going to have 10 manufacturers and each of those manufacturers is going to have 10 collections and each of those collections will contain 20 style. Confused Yet? In my admin i have a table called styles. It looks like this: class Style(models.Model): name = mo

Re: classes

2007-06-07 Thread Joseph Heck
.__class__ On 6/7/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote: > how can I know insede a method the type of my class dynamicaly? > > -- > Lic. José M. Rodriguez Bacallao > Cupet > > > --~--~-~--~~~---~--~~ You received this message because you a

classes

2007-06-07 Thread Lic. José M. Rodriguez Bacallao
how can I know insede a method the type of my class dynamicaly? -- Lic. José M. Rodriguez Bacallao Cupet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: newforms semicolon

2007-06-07 Thread Michael Trier
Since it's hardcoded my only suggestion would be to use the granular form of outputing your forms: http://www.djangoproject.com/documentation/newforms/#more-granular-output Michael On 6/7/07, Enquest <[EMAIL PROTECTED]> wrote: > > I wonder how I can remove the most easy way the semicolon in the

Re: [django-users] FileBrowser v 2.0

2007-06-07 Thread Michael Trier
Very Nice! Thanks for your work. Michael On 6/7/07, patrick k. <[EMAIL PROTECTED]> wrote: > > > Am 07.06.2007 um 19:24 schrieb Simon Drabble: > > > On Thu, 7 Jun 2007, patrickk wrote: > > > >> > >> I´ve just released a new version of the filebrowser: > >> http://trac.dedhost-sil-076.sil.at/trac

Re: Django Users Portuguese

2007-06-07 Thread Guilherme Mesquita Gondim (semente)
On 6/7/07, Marinho Brandao <[EMAIL PROTECTED]> wrote: > mas também acho que é sempre bom ter variedade e tentar integrar > pessoas, então por esse lado, a idéia da lista é boa. É, este é o objetivo. > Vou entrar na > lista sim, mas minha dedicação vai continuar maior na django-brasil, > pra não

reduce execution time of object.count()

2007-06-07 Thread Paul Rauch
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":31.024 greetz Paul Rauch --~

Re: [django-users] FileBrowser v 2.0

2007-06-07 Thread patrick k.
Am 07.06.2007 um 19:24 schrieb Simon Drabble: > On Thu, 7 Jun 2007, patrickk wrote: > >> >> I´ve just released a new version of the filebrowser: >> http://trac.dedhost-sil-076.sil.at/trac/filebrowser/wiki >> >> things to come: >> ### i18n >> ### integration of snipshot and picnik for basic image

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

2007-06-07 Thread omat
By the way, I suspect that during moving existing data into the new database, somethings might have been broken, like auto incrementation sequences. But, although I experimented with them a little, it didn't help. On 7 Haziran, 21:07, omat <[EMAIL PROTECTED]> wrote: > My application is working

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

2007-06-07 Thread omat
My application is working in the development environment. I deployed the application in the production and copied the data in Posetgresql db. When I try to insert a new "Page" using the admin application, I receive an "IntegrityError: null value in column "id" violates not- null constraint". Any

Re: Django Users Portuguese

2007-06-07 Thread Marinho Brandao
bom, eu repito minha opinião original: pulverizar os esforços tende a atrapalhar (é que nem pinguim: só sobrevive em grupos unidos, se cada um sai pra um lado, todos morrem). francamente eu sempre temo quando existem vários caminhos, a tendencia é os dois enfraqueceram. mas também acho que é semp

Re: Many to many in template question

2007-06-07 Thread [EMAIL PROTECTED]
Figured it out. Template wanted (for whatever reason) {% for foo in bar.foos.all %} instead of {% for foo in bar.foos_set.all %} On Jun 7, 12:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm just getting more and more stumped. > > I went ahead and created a custom view for Foo, so that

Re: Newforms makes unicode String from a dictonary

2007-06-07 Thread hernan43
On May 24, 4:20 pm, Christian Schmidt <[EMAIL PROTECTED]> wrote: > Hi, > > I have a form touploada picture and i try to validate it innewforms. But i > can not read the content-type. I get the error > "'unicode' object has no attribute 'get'". > I had the same problem. I was using a forms.CharFi

Re: [django-users] FileBrowser v 2.0

2007-06-07 Thread Simon Drabble
On Thu, 7 Jun 2007, patrickk wrote: > > I´ve just released a new version of the filebrowser: > http://trac.dedhost-sil-076.sil.at/trac/filebrowser/wiki > > things to come: > ### i18n > ### integration of snipshot and picnik for basic image-editing > (already working on that one) > > thanks, > patr

Re: Many to many in template question

2007-06-07 Thread [EMAIL PROTECTED]
I'm just getting more and more stumped. I went ahead and created a custom view for Foo, so that's taken care of, but Bar (which should be easy) isn't working either. I have: class Bar(models.Model): name= models.CharField(maxlength=100) foos = models.ManyToManyField(Foo, filter_i

FileBrowser v 2.0

2007-06-07 Thread patrickk
I´ve just released a new version of the filebrowser: http://trac.dedhost-sil-076.sil.at/trac/filebrowser/wiki I´ve tested it and it works fine with my settings (OSX with firefox 2, safari 2, opera 9) - however, additional testing is never senseless. so, if you find the time to do some testing,

Re: Django Users Portuguese

2007-06-07 Thread Guilherme Mesquita Gondim (semente)
On 6/7/07, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > > Have you seen the existing `Django Brasil`__ group? It's got 165 > members and seems pretty active. > > .. __: http://groups.google.com/group/django-brasil Yes, I am member of the Django Brasil. The idea with this group is congregate

Scalability where file uploads are involved

2007-06-07 Thread Nimrod A. Abing
Hello, I am currently doing research on scaling one of the sites I made using Django. I have looked at Chapter 21 of the in-progress Django Book. I plan to follow the track recommending 3 django servers behind perlbal + 1 dedicated media server + 1 dedicated database server. The current setup fo

Re: Taking a patch

2007-06-07 Thread brian corrigan
Thanks for your help Russ. Turns out that the last .diff fitted in to the version of django I had so there is no need to add to the ticket. If anyone else is looking to take the big int patch its very simple. Cheers again Russ and to everyone who contributed to the ticket... very helpful Brian

Making Windows XP Start 60% Faster

2007-06-07 Thread Stranger
Making Windows XP Start 60% Faster Whenever you start your computer, you are faced with a few moments of thumb twiddling while Windows XP boots and prompts you to log on. Although you should expect to wait for a few moments, sometimes Windows XP seems to boot rather slowly. In fact, you may notic

Re: Another Django Site with Source Code

2007-06-07 Thread hass
Thanks, looking at other code is always so helpful for me. --~--~-~--~~~---~--~~ 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

Re: Django Users Portuguese

2007-06-07 Thread Nathaniel Whiteinge
Have you seen the existing `Django Brasil`__ group? It's got 165 members and seems pretty active. .. __: http://groups.google.com/group/django-brasil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: GenericRelation support in GeoDjango

2007-06-07 Thread Brian Luft
Russ and Justin Thank you for your replies. I had not tried the older syntax but I'm glad to see it works. I am generalizing an app I created that lets one add location information to one's models and provides basic facilities for regional and/or distance based searching. Generic relations is

Re: Simple Template Dict Problem

2007-06-07 Thread Trey
Thanks Russ, I think my answer for today is three dimensional lists... Hooray for complex datastructures :) Tim, that's a very cool idea. I will research this some and see if I can abstract the calendar control. On Jun 7, 11:02 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > Somehow I doubt this sh

Re: best practice for portal-like pages?

2007-06-07 Thread patrick k.
did you take a look at the scripts I provided? it seems that this might solve your problem. another thing: my question was not about doing a CMS, it´s about combining and displaying different types of content on portal-like pages (which, of course, might be part of a CMS). and it´s also not

Re: admin is inserting empty images

2007-06-07 Thread omat
Yes! It worked that way. Thanks a lot... On 7 Haziran, 18:09, robo <[EMAIL PROTECTED]> wrote: > Have you tried moving core=True to the foreignkey field? > Tell me if this works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Do you know for a Free ...!? Click Here :)

2007-06-07 Thread only freewares
NoSpyMail 1.1 "SpyMail" refers to any email message sent to you which attempts to collect information about you, your computer, or your email habits without your permission. SpyMail is not a new concept. It has been used by spammers for years to try to better target their Marketing campaigns. http

Re: admin is inserting empty images

2007-06-07 Thread robo
Have you tried moving core=True to the foreignkey field? Tell me if this works. --~--~-~--~~~---~--~~ 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.co

Re: Adding a group, and users to that group

2007-06-07 Thread Vincent Nijs
Thanks for the help Russ: That worked. Next problem :) I want to add users to a group. g = Group.objects.get(name='section81') gives errors. If I could get that to work I'd want to add a user to that group: u = User.objects.get(username='doe') This also give errors. Finally: u.groups.add(

Re: Simple Template Dict Problem

2007-06-07 Thread Tim Chase
> Somehow I doubt this should really be in the view either. Maybe it's > just one of those out liers that doesn't have a good place. Sounds like you're describing template tags. They're ways of creating reusable bits you can just drop into your templates to abstract away the logic required to

Re: Simple Template Dict Problem

2007-06-07 Thread Russell Keith-Magee
On 6/7/07, Trey <[EMAIL PROTECTED]> wrote: > > I thought that something like that was the answer. > > Normally I would agree but I can't think of another way to make a > calendar style layout with certain events on it. Check out my glorious > hack and tell me what you think. My eyes! They burn! :

Re: Simple Template Dict Problem

2007-06-07 Thread Trey
I thought that something like that was the answer. Normally I would agree but I can't think of another way to make a calendar style layout with certain events on it. Check out my glorious hack and tell me what you think. c is a matrix from the calendar object. import calendar calendar.

Re: Simple Template Dict Problem

2007-06-07 Thread Russell Keith-Magee
On 6/7/07, Trey <[EMAIL PROTECTED]> wrote: > > The first line, dict.1 works fine. But when I try to use the d > variable for the dict index it doesn't work. Is there a way to > accomplish this? No, by design. We have explicitly tried to avoid making the django template language a programming lang

Re: Simple Template Dict Problem

2007-06-07 Thread Trey
That wasn't exactly the example as it was written. Let me try to clarify. w is simply a list of numbers. w = [1,2,3,4,5,6,7,] Take this dict. dict = {1: 10, 2: 10, 19: 0, 29: 0, 30: 10} {% for x in w %} {{dict.1}} {{dict.x}} {% endfor %} --~--~-~--~~~---~--

Re: Taking a patch

2007-06-07 Thread Russell Keith-Magee
On 6/7/07, brian corrigan <[EMAIL PROTECTED]> wrote: > > Hey all, > > I am looking to take in the patches for ticket #399 (BigInt field). I > am not sure how to do this though. There is an original patch.txt > followed by a couple of .diff files. Are the .diff files the > difference between the or

Re: Many to many in template question

2007-06-07 Thread Russell Keith-Magee
On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > That's what I thought, too, but I can't seem to access it. Maybe I > need to just write a custom view for this page. Based on what you've said so far, you shouldn't need to write a new view. You just need to reference the m2m data correc

Simple Concept and $4000 a week

2007-06-07 Thread [EMAIL PROTECTED]
MAKE $2000 - $4000 A WEEK WITH THIS SOFTWARE! Stop worrying about money, this software swells up bank accounts. http://www.leveragingonline.com Quote of the Day Live your life each day as you would climb a mountain. An occasional glance towards the summit keeps the goal in mind - Harold B. Melchar

Re: Many to many in template question

2007-06-07 Thread [EMAIL PROTECTED]
That's what I thought, too, but I can't seem to access it. Maybe I need to just write a custom view for this page. On Jun 6, 4:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This doesn't exactly answer your question (because I'm a huge noob > still), but M2M relationships work in both >

a diff for the fastcgi server to make umask settable

2007-06-07 Thread Nic James Ferrier
flup provides the umask init field so that you can change the mask of a unix socket you're using to talk fast cgi. Django doesn't seem to pass this through so I wrote this trival patch. Someone might be interested. Apologies if this is not the right place. -- Nic Ferrier http://www.tapsellfe

Re: best practice for portal-like pages?

2007-06-07 Thread omat
I am also in need of such a flexible yet easy to manage content system, mostly for small company websites. In my primitive prototype, I have pages that are built-up of sections. Each section has its own template and can hold text, images, etc. Also, I am planning to add the ability to display dat

translation datetime

2007-06-07 Thread Enquest
I see something that is not translated... Where can I finde the file... And how do I submit this In this case its date:"P" midnight = middernacht in dutch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: admin is inserting empty images

2007-06-07 Thread omat
Google ate my previous message. So, once again... Thanks for the reply robo... If I remove the "core=True" django complains that "there should be at least one field declared as core to edit inline". The problem is that, image and file fields does not behave as one would expect in the admin when

Taking a patch

2007-06-07 Thread brian corrigan
Hey all, I am looking to take in the patches for ticket #399 (BigInt field). I am not sure how to do this though. There is an original patch.txt followed by a couple of .diff files. Are the .diff files the difference between the original source and the latest update to the patch or are they the .

newforms semicolon

2007-06-07 Thread Enquest
I wonder how I can remove the most easy way the semicolon in the newform rendering... Its very anoying that almost always this semicolon needs to be removed. I don't think it should be programmed in the code ... However there should be an easy way to remove it. Thanxs --~--~-~--~

Re: Is composite primary key possible?

2007-06-07 Thread Lars Stavholm
Russell Keith-Magee wrote: > On 6/7/07, Lars Stavholm <[EMAIL PROTECTED]> wrote: >> And then I hit a snag: there's one table that uses a composite >> primary key made up of three fields. (the attachment table in trac.db) >> >> I've scanned the doco and I've googled, this is what I came up with: >>

Re: form_for_model, custom save(), and saving excluded fields?

2007-06-07 Thread John M
I had a similar issue, and after lurking around a bit, banging the head on the table, etc, I figured out I could make a form, set the fields to non-editable, use the form.save(commit=False) option, and do exactly what I needed. I was creating a form for a child model,and wanted to fill in the rel

Re: admin is inserting empty images

2007-06-07 Thread robo
Try removing the "core = True" in this line: image = models.ImageField(upload_to = 'section/image/', core = True) I had a similar, if not exact, problem that I posted about a month and a half ago. --~--~-~--~~~---~--~~ You received

Re: Login Right After Creating a New User

2007-06-07 Thread [EMAIL PROTECTED]
On Jun 6, 10:04 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Yes. The 'backend' attribute that is being complained about is an > attribute that is decorated onto the user object by the authenticate() > method (django.contrib.auth.authenticate()). If you call authenticate, > providing th

admin is inserting empty images

2007-06-07 Thread omat
I have the following model which defines a 1-n relation between sections and section images: class Section(models.Model): type = models.ForeignKey(SectionType) title = models.CharField(maxlength = 150, blank = True) class Admin: pass class Section

Re: best practice for portal-like pages?

2007-06-07 Thread patrick k.
this is just another request for feedback. I know that there are some newspaper-sites out there, made with django. so, I assume, they´ve solved this issue. It´d be great to know how they make/construct the overview- resp. front-pages (in a way to make changes easily for editors). thanks,