Re: Improper quoting using extra() in Postgres

2006-05-31 Thread Adrian Holovaty
On 5/31/06, Scott Anderson <[EMAIL PROTECTED]> wrote: > The problem is that either Django or the driver is quoting the function > instead of inserting it directly at the docs state it should: > > SELECT "app_table"."field_name",...,("nlevel(hierarchy)") AS "level" > FROM "app_table" > > Notice

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread Ivan Sagalaev
Luke Plant wrote: >However, you can override the 'validate' method on a model, and you >might be able to use that to do what you want > Looks like it doesn't get called from manipulators? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Improper quoting using extra() in Postgres

2006-05-31 Thread Scott Anderson
Hi all, I'm using the extra() method to add a calculated field to my object: Table.objects.extra(select={'level':'nlevel(hierarchy)'}) where nlevel is a function defined in my PostgreSQL database. The problem is that either Django or the driver is quoting the function instead of inserting it

Re: "Yahoo" style directory of websites using Django

2006-05-31 Thread James Bennett
On 5/31/06, keukaman <[EMAIL PROTECTED]> wrote: > I would like to build a Yahoo style directory of user suggested > websites that includes categories, descriptions, etc. Does anyone know > if there is an app built already that I could use? I don't know of any, but the best place to see what's

Re: "Yahoo" style directory of websites using Django

2006-05-31 Thread [EMAIL PROTECTED]
keukaman wrote: > I would like to build a Yahoo style directory of user suggested > websites that includes categories, descriptions, etc. Does anyone know > if there is an app built already that I could use? I don't know of any pre-built app, but man that would be a really simple app to build.

Re: Can anyone recommend a good graphic artist/ui person?

2006-05-31 Thread vinjvinj
Thanks for links. I spent some time at elance and getacoder.com last night, but it's a long and painful process to find someone. I thought I'd give it a try here. VJ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Help with multiple object added on a single form with addManipulator.

2006-05-31 Thread canen
http://www.djangoproject.com/documentation/tutorial2/#adding-related-objects I think that may be what you are looking for. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

"Yahoo" style directory of websites using Django

2006-05-31 Thread keukaman
I would like to build a Yahoo style directory of user suggested websites that includes categories, descriptions, etc. Does anyone know if there is an app built already that I could use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

RE: users editing only their own info

2006-05-31 Thread tsnyder
>= Original Message From Waylan Limberg <[EMAIL PROTECTED]> = >On 5/30/06, spacedman <[EMAIL PROTECTED]> wrote: >> >> Ground up would be my way of doing it. Lets break it down... >> >> You need an 'update' view that only shows the fields you want changing. >> That means a custom

Re: Wiki or Blogs done with django

2006-05-31 Thread Frankie Robertson
On 31/05/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > > On 01/06/2006, at 3:30 AM, Bryan Murdock wrote: > > > > > Just an aside in response to the request that the blog writers all get > > together and not waste resources, take a look at the code they are > > writing. Actually, take a look at

User Defined Fields in django

2006-05-31 Thread clkratz
Hello All, I am contemplating rewriting a web application in django. One of the core features of this application is that different groups of people share the same database. The application is the same for each group of people, but the users may define user defined fields that are only visible

Re: inclusion_tag error

2006-05-31 Thread Cornel Nitu
I'm sorry. I didn't read carefully the documentation. :( I forgot to load the categories_list tag. Now the homepage.html looks like this (and it's working just fine): {% load categories_list %} {% block sidebar %} {% get_categories %} {% endblock %}

Re: inclusion_tag error

2006-05-31 Thread Cornel Nitu
I forgot to put the views.py (located in myproject) views.py - from django.shortcuts import render_to_response, get_object_or_404 def index(request): return render_to_response('homepage.html', {}) --~--~-~--~~~---~--~~

inclusion_tag error

2006-05-31 Thread Cornel Nitu
Hi, I have a project with the following structure: project ---> templates --->myapp --->templates --->templatetags I defined a custom tag called 'categories_list' as follow: categories_list.py (located in myapp/templatetags)

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread Luke Plant
On Wednesday 31 May 2006 07:36, favo wrote: > somebody know how to use instance method in the validator_list of a > field in model? I can't get the "self". > > class Category(models.Model): > """ Inhert Category """ > > title_en = models.CharField(maxlength=256, null=True) > > parent

Re: Wiki or Blogs done with django

2006-05-31 Thread Ian Holsman
On 01/06/2006, at 3:30 AM, Bryan Murdock wrote: > > Just an aside in response to the request that the blog writers all get > together and not waste resources, take a look at the code they are > writing. Actually, take a look at the code they are not writing. A > basic django blog app can be

Help with multiple object added on a single form with addManipulator.

2006-05-31 Thread Frankie Robertson
I was talking about this on IRC the other day. I want to have a form to add a recipe and several ingredients at once, the edit_inline arguement seemed to be the solution (a outlined at http://code.djangoproject.com/wiki/NewAdminChanges). However, this seems to be removed post M-R. Is there any

Re: Wiki or Blogs done with django

2006-05-31 Thread Paulo
agreed -- I am not doing much from scratch. I am new to using web frameworks (I'm just a project manager who likes to dabble in design/code so I can better understand what the Dev/Creative teams go through) and I'm pretty much using generic views to get my feet wet with how Django works on a

Re: Tutorial Repo

2006-05-31 Thread Adrian Holovaty
On 5/31/06, Noah <[EMAIL PROTECTED]> wrote: > I think it would be really good if there were a list of links or > something as a tutorial repo on the main site. Also the main tutorial > I've found isn't that useful or in-depth. It's not bad but left me > wanting more. > > I think a good tutorial

Re: users editing only their own info

2006-05-31 Thread Waylan Limberg
On 5/30/06, spacedman <[EMAIL PROTECTED]> wrote: > > Ground up would be my way of doing it. Lets break it down... > > You need an 'update' view that only shows the fields you want changing. > That means a custom manipulator that only mentions the fields you want > to modify. Protect this view by

Re: Controlling Display of Foreign Key Input Fieldsets in Admin

2006-05-31 Thread Paul Childs
OK, Is this a case of RTFM? If so please let me know and I will continue to dig. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django Default Behavior with File Writes Unintuitive?

2006-05-31 Thread Waylan Limberg
On 5/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > > I had a previous post on this issue which I did not get very many > answers to. In particular, I did not have many responses those who may > be more directly involved with the development of this great Framework > (or maybe

Re: dojo

2006-05-31 Thread patrickk
done ... see http://code.djangoproject.com/wiki/AddDojoEditor patrick Am 18.05.2006 um 20:29 schrieb lcaamano: > > You should add these dojo info to the cookbook mentioned above. > > http://code.djangoproject.com/wiki/CookBookAdminTools > > -- > lpc > > > >

Re: FileField problem

2006-05-31 Thread mahakala
Hi, Eric I just figure out what cause the problem, it relates to fedora SELinux, since this is just a demo runs in my vmware, I disable it, and everythins seems all right now. I will try to learn some SELinux policy to enforce it again. Thank you! mahakala

Re: Django and daemon?

2006-05-31 Thread spacedman
DavidA wrote: > An alternative that stays inside Django is to setup a trigger in cron > (or NT's Task Scheduler) that gets a URL every few minutes and the view > code for that URL does the email processing you mention. You avoid > creating a true daemon/service just by "waking" up periodically

Re: FileField problem

2006-05-31 Thread Eric Walstad
On Wednesday 31 May 2006 11:07, mahakala wrote: > Hi, Eric, > it is > > drwxrwxrwx 2 root root 4096 Jun 1 01:10 demo > > and > > drwxrwxrwx 2 root root 4096 Jun 1 01:10 opt > > thks. Does /opt/demo/test.txt already exist? If so, what are the permissions on it? I think what I'd try is: Make

Re: Best project structure for multiple apps?

2006-05-31 Thread Eric Floehr
I should mention that the back-end processes and web-apps have been organically grown. The back-end processes and one web-app are python and are fairly tightly coupled (they use the same home-grown model classes), while the second web-app is currently Ruby on Rails. I'd like to get everything

Best project structure for multiple apps?

2006-05-31 Thread Eric Floehr
Hi! I have an existing system that is somewhat unique and I am trying to figure out the best organizational structure for it within Django. I was wondering if anyone had any best practices or thoughts on how best to structure this. This is a system that currently does a lot of back-end

Re: FileField problem

2006-05-31 Thread mahakala
Hi, Eric, it is drwxrwxrwx 2 root root 4096 Jun 1 01:10 demo and drwxrwxrwx 2 root root 4096 Jun 1 01:10 opt thks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Can anyone recommend a good graphic artist/ui person?

2006-05-31 Thread Frankie Robertson
On 31/05/06, vinjvinj <[EMAIL PROTECTED]> wrote: > > My website and app needs a new face. Can anyone recomend a good > ui/graphic designer who can help me? This would be paid work. > > VJ > > > > > This isn't really the place, but here are some links to get you started:

Tutorial Repo

2006-05-31 Thread Noah
I think it would be really good if there were a list of links or something as a tutorial repo on the main site. Also the main tutorial I've found isn't that useful or in-depth. It's not bad but left me wanting more. I think a good tutorial would be a complete blog tutorial that had articles with

Re: Django and daemon?

2006-05-31 Thread Wade Leftwich
DavidA wrote: > > Russell Blau wrote: > >>Ahh, thanks, it always helps to take the blinders off. The only downside is >>that I have to learn how to use yet another software package. ;-) > > > An alternative that stays inside Django is to setup a trigger in cron > (or NT's Task Scheduler)

Re: Wiki or Blogs done with django

2006-05-31 Thread Bryan Murdock
On 5/30/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 5/29/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > The code for the djangoproject.com blog is open source: > > > > http://code.djangoproject.com/browser/djangoproject.com > > > > Looks like it hasn't been ported to magic removal

Re: FileField problem

2006-05-31 Thread Eric Walstad
On Wednesday 31 May 2006 09:57, mahakala wrote: > when I use the file > upload, the system says IOError, Permission denied. I have modified the > upload folder to be writable for everyone. Any hints how to solve this? > [Errno 13] Permission denied: '/opt/demo/test.txt' Hi mahakala, What is

Re: Accessing instance values in a model...

2006-05-31 Thread medhat
Any insight from the django gurus out there? Thanks! --~--~-~--~~~---~--~~ 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: FileField problem

2006-05-31 Thread mahakala
forgot to say, the system is fedora 5(apache mysql & mod_python with it) + django trunk. thks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

FileField problem

2006-05-31 Thread mahakala
Hi, everybody I developed a little demo, which use FileField to upload files, it works well in django own server, then I manage to switch to Apache + mod_python, the admin module still looks ok, but when I use the file upload, the system says IOError, Permission denied. I have modified the

FileField problem

2006-05-31 Thread mahakala
Hi, everybody I developed a little demo, which use FileField to upload files, it works well in django own server, then I manage to switch to Apache + mod_python, the admin module still looks ok, but when I use the file upload, the system says IOError, Permission denied. I have modified the

FileField upload hack

2006-05-31 Thread funk
Hi Adrian and others, first of all - DJANGO IS GREAT - please hang on and give me nice input!! But then, some problems still occur... If i do a manipulator.save() on an FileField, in the second run (POST) the original file-path is gone/ saved empty. I saw a ticket, but lost it :-/ While i'm new

Re: QuerySet._combine loses where clause

2006-05-31 Thread Adrian Holovaty
On 5/30/06, Graham King <[EMAIL PROTECTED]> wrote: > I have a custom manager for one of my model objects which limits the > objects returned. When I use the search features of the admin interface, > it seems most of the details of my query set get lost, so the result is > no longer

Databases from different projects

2006-05-31 Thread PythonistL
Let's suppose I have project1 that has TableProject1 and project2 that has TableProject2 Is it possible to use in project2 data from TableProject1 ? Thank you for reply L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Can anyone recommend a good graphic artist/ui person?

2006-05-31 Thread vinjvinj
My website and app needs a new face. Can anyone recomend a good ui/graphic designer who can help me? This would be paid work. VJ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Django and daemon?

2006-05-31 Thread DavidA
Russell Blau wrote: > Ahh, thanks, it always helps to take the blinders off. The only downside is > that I have to learn how to use yet another software package. ;-) An alternative that stays inside Django is to setup a trigger in cron (or NT's Task Scheduler) that gets a URL every few

Re: Django magic removeral still support models in multiple files?

2006-05-31 Thread favo
completed. see the post: http://groups.google.com/group/django-developers/browse_thread/thread/f6e773019512b794/485accada6989f0c --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread favo
That's what I try to, however, below is what I print the all_data of my module level validator arguments: there's no id parameters!! what a bad news. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Please help with project setup

2006-05-31 Thread tekNico
> I have not decided yet, but Docutils and Markdown seem to have quite > similar syntax, so the fact that Docutils can export to other formats > than (X)HTML plays a decisive role for me. Apart from the fact that I've been using Docutils for years, it is more featureful than Markdown, and I like

Re: Django magic removeral still support models in multiple files?

2006-05-31 Thread favo
I put code in directory structure below, appsname\ models\ __init__.py model1.py # have a class named Model1 __init__.py : __all__ = ['model1'] from Model1 import model1 I have see the code in

Re: Dynamic template extension

2006-05-31 Thread tomass
Great, this seems to work a treat! Thanks, Tom --~--~-~--~~~---~--~~ 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

Re: Please help with project setup

2006-05-31 Thread Kristoffer
David Larlet wrote: > I've just updated this page : http://code.djangoproject.com/wiki/UsingMarkup Thank you, that was helpful. > Can I know why did you choose Docutils? I'm just curious because I just have > to make this choice and my final option is markdown. Maybe I'm wrong (is it >

Re: Please help with project setup

2006-05-31 Thread David Larlet
2006/5/31, Kristoffer <[EMAIL PROTECTED]>: Brice Carpentier wrote:> Still wondering whether to use Textile (easy to learn and read) or> Docutils (easy to convert to basically almost any output format).Same here. I think I am going for Docutils, it's syntax is quite straightforward and I like its

Re: Please help with project setup

2006-05-31 Thread Kristoffer
Brice Carpentier wrote: > Still wondering whether to use Textile (easy to learn and read) or > Docutils (easy to convert to basically almost any output format). Same here. I think I am going for Docutils, it's syntax is quite straightforward and I like its converting capabilities. One

Re: Please help with project setup

2006-05-31 Thread Brice Carpentier
On 5/30/06, David Larlet <[EMAIL PROTECTED]> wrote: > > 2006/5/30, tekNico <[EMAIL PROTECTED]>: > > > > While the two URLs are the same article expressed in two different > > human languages, I think that the mere translation process makes the > > two things different enough that it's not the

Re: Please help with project setup

2006-05-31 Thread Brice Carpentier
On 5/30/06, tekNico <[EMAIL PROTECTED]> wrote: > > >> I suppose it would be ok for my article authors to mark up their > >> articles using simple HTML tags, like H1 and IMG, and save the entire > >> article as a TextField. It would be really great, though, if articles > >> could be converted to

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread Ivan Sagalaev
favo wrote: >However, how to replace the default changeManipulator used by >django-admin? > > Hm... Then my advice won't help... One thing I can think of is that in your validator you get the object's id from the all_data and get an object itself with another db request. Not very good but

Django magic removeral still support models in multiple files?

2006-05-31 Thread favo
I have check the document about Model, but can't find any help about models in multiple files. Django magic removeral still support models in multiple files? only we can do is write models in models.py?? --~--~-~--~~~---~--~~ You received this message because you

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread favo
However, how to replace the default changeManipulator used by django-admin? --~--~-~--~~~---~--~~ 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

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread Ivan Sagalaev
favo wrote: >class Category(models.Model): >""" Inhert Category """ > >title_en = models.CharField(maxlength=256, null=True) > >parent = models.ForeignKey('self', related_name="direct_children", >null=True, blank=True, validator_list=[self.isValidParent]) # >we want the

Re: Admin dies when foreign key added

2006-05-31 Thread char
As described in ticket #1839, the solution for me at any rate was to make sure I didn't have any field names with the same name as a model class name (disregarding case). So in your code, rename agent to something else, like listingAgent. fyl wrote: > I am getting an error in admin when trying

Re: order_by in different tables

2006-05-31 Thread olive
None of the documented method works for me: The only way I found to make it works (affter having suffered a lot) is: MyRelatedModel.objects.all().extra( select={'my_field': 'SELECT my_field FROM myapplication_mymodel WHERE myapplication_mymodel.id =

Re: Admin dies when foreign key added

2006-05-31 Thread char
Not exactly the same symptom but the exact same exception is described in ticket #1839. fyl wrote: > I am getting an error in admin when trying to do an add. The error is > mentioned in bugs but not related to the condition I have. It is 'bool' > object has no attribute 'get' in