Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Russell Keith-Magee
On 9/9/06, Jay Parlar <[EMAIL PROTECTED]> wrote: I'll keep playing with it. This really *feels* like I've just screwedup something somewhere. I'll update if I find a solution.I've found the problem.Create an Article and Photo object in the admin view. Then, the following in the shell: >>> from test

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
On 9/8/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > On 9/9/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > > > Because 'stockphoto' appears before 'articles' in INSTALLED_APPS, > > could it be preventing the ORM from seeing the 'Article' model? > > > No - like I said before, this block

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Russell Keith-Magee
On 9/8/06, Jay Parlar <[EMAIL PROTECTED]> wrote: Here's what I tried: Added a Photo and Article from the admin. In theshell, there was no 'article_set' attribute.Ok; I tried your models, and I got the same result. I'll look into this a little more and see if I can isolate the exact problem. Yours,

Re: Uploading Files

2006-09-08 Thread Andy Dustman
On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > how can I upload file to /media/images/1.jpg with Django? Start here: http://www.djangoproject.com/documentation/model_api/#imagefield If the admin interface is sufficient for you, you're done. Note that this requires an object/row per

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
Sean Schertell wrote: > > Any other contributors? I've got a handful of templatetags, which while somewhat outdated (built against ~0.91) should still be useful. I also have a (very) small forums app which I plan on expanding when I find the time, although it would need some cleanup to use outsid

Re: How about a Django apps public repository?

2006-09-08 Thread limodou
On 9/9/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > > I'm willing to invest the time and bandwidth to get this thing off > the ground. And it sounds like a lot of folks would be happy to have > such a repository. But if we want to make it work, it has to have > some content from the very beginn

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Russell Keith-Magee
On 9/9/06, Jay Parlar <[EMAIL PROTECTED]> wrote: Because 'stockphoto' appears before 'articles' in INSTALLED_APPS,could it be preventing the ORM from seeing the 'Article' model?No - like I said before, this block of documentation is just describing the reason that stockphoto needs to be defined in

Re: How about a Django apps public repository?

2006-09-08 Thread Sean Schertell
I'm willing to invest the time and bandwidth to get this thing off the ground. And it sounds like a lot of folks would be happy to have such a repository. But if we want to make it work, it has to have some content from the very beginning. So how many of you actually have code that you wan

Re: Creating graphs in Django application

2006-09-08 Thread Andy Robinson
Thanks Joseph. You might find it interesting to take a look at our Diagra product datasheet... we've been in the financial charts business since 2001 http://www.reportlab.com/docs/diagra-ds.pdf The engine and most chart types have been in the open source package since 2001, but we've not rea

Re: Creating graphs in Django application

2006-09-08 Thread [EMAIL PROTECTED]
there is also pyChart and JS/SVG PlotKit - http://www.liquidx.net/plotkit/ which is used by TurboGears :) NeedsTesting... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Re: Creating graphs in Django application

2006-09-08 Thread Joseph Kocherhans
On 9/8/06, Andy Robinson <[EMAIL PROTECTED]> wrote: > > I have just added an article to the Wiki on how to create charts using > ReportLab's graphics library I hope this helps! > > http://code.djangoproject.com/wiki/Charts Very cool. Thanks Andy! I didn't know ReportLab did anything but pdf befo

Re: MySQL Django Wildcard bug...

2006-09-08 Thread Tom Smith
On 8 Sep 2006, at 22:53, James Bennett wrote: > > On 9/8/06, tom smith <[EMAIL PROTECTED]> wrote: >> Then because the sql has a % in it.. django complains... > > The '%' needs to be escaped, because it's a special character in this > context. Make it '%%' (two percent signs in a row) and it shou

Re: MySQL Django Wildcard bug...

2006-09-08 Thread Steven Armstrong
On 09/08/06 22:56, tom smith wrote: > So... > > Because there aren't quite enough examples that show how to build > pythonic model queries... I'm using the pump-raw-sql at django... > > The only problem is that when my sql contains > > wordsql = wordsql + " AND (title not like ' %" + word +"%')

Re: Creating graphs in Django application

2006-09-08 Thread Andy Robinson
I have just added an article to the Wiki on how to create charts using ReportLab's graphics library I hope this helps! http://code.djangoproject.com/wiki/Charts Andy Robinson, CEO/Chief Architect, ReportLab Europe Ltd --~--~-~--~~~---~--~~ You received this mes

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-08 Thread Nate Straz
On Thu, Sep 07, 2006 at 11:36:46PM +0800, limodou wrote: > On 9/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I don't want to make another mediawiki which requires to learn yet > > another markup language and needs a horde of wikipedians to controll > > it. > > So which text format do yo

Re: MySQL Django Wildcard bug...

2006-09-08 Thread James Bennett
On 9/8/06, tom smith <[EMAIL PROTECTED]> wrote: > Then because the sql has a % in it.. django complains... The '%' needs to be escaped, because it's a special character in this context. Make it '%%' (two percent signs in a row) and it should work (and this isn't Django-specific AFAIK -- the synta

MySQL Django Wildcard bug...

2006-09-08 Thread tom smith
So... Because there aren't quite enough examples that show how to build pythonic model queries... I'm using the pump-raw-sql at django... The only problem is that when my sql contains wordsql = wordsql + " AND (title not like ' %" + word +"%') " cursor.execute(sql) Then because the sql has a

Uploading Files

2006-09-08 Thread [EMAIL PROTECTED]
Hello, how can I upload file to /media/images/1.jpg with Django? Thak you for help. P.S. Sorry for may bad English ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Django book...2...Apress

2006-09-08 Thread James Bennett
On 9/8/06, Daniele Spino <[EMAIL PROTECTED]> wrote: > Apress will publish "Pro Django: Web Development Done Right" | > 1590597257 | in Oct. 2006. Check out the book here: > http://www.apress.com/book/bookDisplay.html?bID=10176. Yeah, it's also been on Amazon for a while: http://tinyurl.com/rchx3

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
Marc Fargas wrote: > I like the idea of the Cheeshop and more the one of different TRACs, but on > the three options given, hosting TRACs is not as easy, Cheeshop and google > are free.hosting a TRAC isn't. dejavu doesn't seem an option if you need to > wait for an invite code for every project.

Hierarchical menu for pages with nice formatting for selecting a parent

2006-09-08 Thread Dan Bravender
This code will generate a model that has a nice interface for people constructing sites organized around hierarchical menus. When adding a page, the current structure of the site shows up like this: root node -child node --child of a child node If a loop is detected during insertion, the pag

Re: How about a Django apps public repository?

2006-09-08 Thread Marc Fargas
I''ve been looking at some of the django projects at code.google.com and all I saw have empty subversion repositories... I like the idea of the Cheeshop and more the one of different TRACs, but on the three options given, hosting TRACs is not as easy, Cheeshop and google are free.hosting a TRAC is

Django book...2...Apress

2006-09-08 Thread Daniele Spino
Hello I sent some mail around to Apress, PrenticeHall and bla bla, to know something about Django books. I got only one answer until know that I want to share: --- Hi Daniele, Apress will publish "Pro Django: Web Devel

Re: Django under IIS with ISAPI

2006-09-08 Thread nymbyl
I was never able to get PyISAPIe to work myself. I ended up buying the isapi_rewrite product from helicon (http://www.isapirewrite.com/) and just proxying to Apache on :9080. I really wanted PyISAPIe to work, but isapi_rewrite was fairly cheap and easy to install. It feels like overkill - but I

Re: Italian Documentation

2006-09-08 Thread Daniele Spino
Hello. sorry for the double question. About the suggestion on 1.0 I've already started learning 0.95. Thanks. About the documentation: 1. I considered from the beginning only the official release 0.95 tutorial. 2. In the page you mentioned I saw that tutorial part 1 italian is already finished by

Re: How about a Django apps public repository?

2006-09-08 Thread Mir Nazim
Hey Djangoers, check out www.devjavu.com looks cool PS: www.tracOS.com --~--~-~--~~~---~--~~ 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 u

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
On 9/9/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: > > I had a similar problem recently. It turned out to have something to do > with the blank=True and null=True arguments. > > picture = models.ForeignKey(Photo, blank=True,null=True) > > Maybe, for testing, try removing those and see it the a

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
I wonder if this is somehow related. From the db_api documentation, in the "How are the backward relationships possible?" section, it states: "The answer lies in the INSTALLED_APPS setting. The first time any model is loaded, Django iterates over every model in INSTALLED_APPS and creates the bac

Django under IIS with ISAPI

2006-09-08 Thread Andy Robinson
Has anyone actually got an app working with the PyISAPIe extensions? The wiki gets as far as a Django error message, and we've reproduced this on two machines (IIS 5.1 and 6.0) in the last 2 days. The fundamentals clearly work, but the problem is that the default pointy-clicky way of calling exte

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Steven Armstrong
On 09/08/06 16:33, Jay Parlar wrote: > On 9/8/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: >> I just tried the following in a test project; >> >> testproject/mytest/models.py: >> from django.db import models >> >> class Image(models.Model): >> name = models.CharField(maxleng

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
>From exploring Google Code a short bit, I'm not positive it's the best medium, at least if we want any decent discussion or Web-based documentation. Yes, one could hold discussions via the Issues, but that's pretty gimpy for any discussion that does not fit well as a trouble ticket. And one could

Re: How about a Django apps public repository?

2006-09-08 Thread Don Arbow
On Sep 8, 2006, at 7:22 AM, Sean Schertell wrote: > > Very interesting points. Does anyone have any thoughts on using > Google code hosting for this idea? Anyone know off the top of their > heads whether or not we'd be able to create a Django "category" > within Google or would it just sort of be

Re: How do you get and set cookies in django

2006-09-08 Thread Adrian Holovaty
On 9/8/06, mthorley <[EMAIL PROTECTED]> wrote: > This may be a really dumb one, but I'm stooped. I read about > request.COOKIES, and request.session.set_test_cookie() and > request.session, but as far as I can see, they are not what I want. > > I want to save a named cookie, with a value, and spec

Re: How do you get and set cookies in django

2006-09-08 Thread mthorley
Thanks limodou, that's just what I was looking for! -- mthorley --~--~-~--~~~---~--~~ 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 unsubscrib

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
On 9/8/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > I just tried the following in a test project; > > testproject/mytest/models.py: > from django.db import models > > class Image(models.Model): > name = models.CharField(maxlength=20) > testproject/mytest2/models.py

Re: How do you get and set cookies in django

2006-09-08 Thread limodou
On 9/8/06, mthorley <[EMAIL PROTECTED]> wrote: > > This may be a really dumb one, but I'm stooped. I read about > request.COOKIES, and request.session.set_test_cookie() and > request.session, but as far as I can see, they are not what I want. > > I want to save a named cookie, with a value, and sp

Re: Problem querying M2M relationships

2006-09-08 Thread Guillermo Fernandez Castellanos
> Ok; I just re-ran the tests with SQLite, and I am getting the same problem. > > Poking through the bug database, it looks like you are hitting Bug #2091. > I've updated that ticket with the details of your problem, and what I've > been able to work out so far. Mmm... I'm used to look in the doc,

Re: How about a Django apps public repository?

2006-09-08 Thread Sean Schertell
Very interesting points. Does anyone have any thoughts on using Google code hosting for this idea? Anyone know off the top of their heads whether or not we'd be able to create a Django "category" within Google or would it just sort of be lumped in with all the other Python stuff? Sean O

Re: How do you get and set cookies in django

2006-09-08 Thread [EMAIL PROTECTED]
This page should help. http://www.djangoproject.com/documentation/sessions/ --~--~-~--~~~---~--~~ 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 T

How do you get and set cookies in django

2006-09-08 Thread mthorley
This may be a really dumb one, but I'm stooped. I read about request.COOKIES, and request.session.set_test_cookie() and request.session, but as far as I can see, they are not what I want. I want to save a named cookie, with a value, and specific domain and path. Like PHP's setcookie(). I'm sure I

Re: Problem querying M2M relationships

2006-09-08 Thread Russell Keith-Magee
On 9/8/06, Guillermo Fernandez Castellanos < [EMAIL PROTECTED]> wrote: Hi,> This seems to be correct. Perhaps it is a DB specific problem - what > database are you using (my tests were with postgres)?I am using sqlite3, with the latest django cvs tree.Ok; I just re-ran the tests with SQLite, and I

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
I'd like to note that this is not the first time this has come up, although I don't wish to imply we should not be discussing it (it seems to be one of those issues that comes up periodically). http://groups.google.com/group/django-users/browse_frm/thread/5e5a61a14c2e519a There was also a discu

Re: How about a Django apps public repository?

2006-09-08 Thread limodou
On 9/8/06, Wade Leftwich <[EMAIL PROTECTED]> wrote: > > Ned Batchelder wrote: > > Why not use the existing Python Cheeseshop > > (http://cheeseshop.python.org/pypi) for this? Advantages: > > > > 1) You don't have to build anything, it's already there. > > 2) More visibility for Django: with a Dja

Re: mod_python - Using Apache prefork Vs Apache worker

2006-09-08 Thread Niels
Hi there Just to report on this, i set up a machine with very little memory using apache 2.2.1 (worker mpm), with mod_python 3.3 (development version 20060520) and django. It seems there is nothing much in django nor python that isn't thread safe. External C libraries you load as a python module

Re: How about a Django apps public repository?

2006-09-08 Thread Wade Leftwich
Ned Batchelder wrote: > Why not use the existing Python Cheeseshop > (http://cheeseshop.python.org/pypi) for this? Advantages: > > 1) You don't have to build anything, it's already there. > 2) More visibility for Django: with a Django-specific repository, only > Django developers will see the pac

Re: How about a Django apps public repository?

2006-09-08 Thread Ned Batchelder
Why not use the existing Python Cheeseshop (http://cheeseshop.python.org/pypi) for this? Advantages: 1) You don't have to build anything, it's already there. 2) More visibility for Django: with a Django-specific repository, only Django developers will see the packages. In the cheeseshop, all

Re: Creating graphs in Django application

2006-09-08 Thread Derek Hoy
On 9/7/06, Devraj <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I am attempting to create graphs in my Django app.to provide reporting > features. Are there any libraries available to do this in Python or > Django? haven't used it, but there's also Ploticus: - http://ploticus.sourceforge.net/ -

Re: Problem querying M2M relationships

2006-09-08 Thread Guillermo Fernandez Castellanos
Hi, > This seems to be correct. Perhaps it is a DB specific problem - what > database are you using (my tests were with postgres)? I am using sqlite3, with the latest django cvs tree. > Also; after you have executed these queries, the following: > from django.db import connection > print connect

Re: Problem querying M2M relationships

2006-09-08 Thread Russell Keith-Magee
On 9/6/06, Guillermo Fernandez Castellanos <[EMAIL PROTECTED] > wrote:I've checked the docs, but nothing seems to be wrong to me.Any help appreciated, thanks. I just tried the following using your models (plus a __str__ definition): p1 = Person(name='russ')p1.save()p2 = Person(name='guillermo')p2.s

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Russell Keith-Magee
On 9/7/06, Jay Parlar <[EMAIL PROTECTED]> wrote: The only reason I can guess is that because the two models are definedin separate applications. Am I missing something here?I just tried the following in a test project; testproject/mytest/models.py:from django.db import modelsclass Image

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-08 Thread [EMAIL PROTECTED]
Trac syntax is rather nice and good for simple things :) All weird things will be available via CBC: [rk:tex]tex code here[/rk:tex] Or simillar, just a *toHTML converter required :) other wikis syntax probably will be available in the same way. --~--~-~--~~~---~--~---

Re: Shared Hosting suggestion

2006-09-08 Thread jorjun
Webfaction == SSH access + local apache configuration means that I run several django-powered web sites from the same virtual host and I can keep Django and other open source products updated frequently with subversion. Highly recommend, technical support is great and they go back a long

Re: How about a Django apps public repository?

2006-09-08 Thread [EMAIL PROTECTED]
+1, great idea! --~--~-~--~~~---~--~~ 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

Re: Italian Documentation

2006-09-08 Thread paolo
> A trivial question: Is it better to wait 1.0 for me to learn django? In my opinion, NO. Why wait for 1.0? If you are learning Django you have two choices: use an official release or stay with the trunk. I'm using the trunk since I'm using Django, and I never had problems. However I must say th

Re: Italian Documentation

2006-09-08 Thread paolo
Hi, I'm sorry to see your post so late. This page on the wiki should answer all your questions: http://code.djangoproject.com/wiki/TranslateDocumentation Differently, ask! I can assure that translate live documentation (docs in the trunk I mean) and keep it up to date is a real pain, I did so bu