Re: pictorial representation of models?

2006-04-14 Thread Adrian Holovaty
On 4/14/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > In my reading up on Ruby on Rails, I found a link to a page on the RoR > wiki that shows a pictorial representation of a schema (model) along > with documentation etc. > > See > http://wiki.rubyonrails.org/rails/pages/AccessControlListExample/

Re: pictorial representation of models?

2006-04-14 Thread Russell Keith-Magee
On 4/15/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: > Does anything like that exist to take a Django model and automatically > generate a picture of that schema??? I think it would be a BIG help... 1) I don't think the Rails guys have an automated tool, either :-) The Rails diagram you referen

Re: PostgreSQL Schemas.

2006-04-14 Thread Don Arbow
On Apr 14, 2006, at 6:54 PM, Ed Epstein wrote: > > Adrian Holovaty wrote: > >> That's the big question -- should the schema be specified in the >> settings file or in the model? (Well, I've never used schemas, so >> maybe it's not as big of a question as I'm making it out to be. Maybe >> it does

Bug in django/contrib/admin/templatetags/admin_list.py

2006-04-14 Thread DavidA
If you use a FloatField in the admin list_display, you get an error rendering the template from line 160 in admin_list.py (TypeError, float argument required) 158.elif isinstance(f, models.FloatField): 159.if field_val is not None: 160.result_repr =

Re: PostgreSQL Schemas.

2006-04-14 Thread Ed Epstein
Adrian Holovaty wrote: > That's the big question -- should the schema be specified in the > settings file or in the model? (Well, I've never used schemas, so > maybe it's not as big of a question as I'm making it out to be. Maybe > it doesn't make sense to put the schema in the model?) Well here

pictorial representation of models?

2006-04-14 Thread Glenn Tenney
In my reading up on Ruby on Rails, I found a link to a page on the RoR wiki that shows a pictorial representation of a schema (model) along with documentation etc. See http://wiki.rubyonrails.org/rails/pages/AccessControlListExample/versions/25 Does anything like that exist to take a Django mode

How to extend Django template objects?

2006-04-14 Thread Bryan Chow
Is there a "correct" way to extend a Django template that doesn't exist on the filesystem? I couldn't find any mention of this in the documentation. I'm creating template objects programmatically, and I want one of these objects to extend another, just as a template on the filesystem can {% exten

Re: Ecommerce & Django

2006-04-14 Thread Viktor
Just a suggestion. Why not integrate this ecommerce system with TinyErp http://tinyerp.org/. i.e. use django as a web interface for TinyErp. TinyErp is written in python, well tested and for a long time used in production. It has his own ORM, not as sophisticated as Django's, but has very sim

Re: "choices" field option - how to make dynamic?

2006-04-14 Thread frank h.
Thanks Adrian for your quick answer, I should have mentioned that I was aware of the FilePathField and have played around with it. the reason I cannot use it is that I want to display a list of _directories_ and not _files_ unfortunately I wasnt able to make FilePathField give me a list of direct

Re: Ecommerce & Django

2006-04-14 Thread ZebZiggle
I have no interest in the shopping cart, shipping, etc. ... just the checkout and credit card processing. I'll happily do the SkipJack driver. -Z --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Fate of 0.91 projects

2006-04-14 Thread aaloy
2006/4/14, James Bennett <[EMAIL PROTECTED]>: > > On 4/14/06, Bill de hÓra <[EMAIL PROTECTED]> wrote: > > Simulataneous releases will confuse people and enhance any perception > > that Django is unstable not ready for production work. Parallel branch > > management has really hurt the Zope communi

Re: [newbie] foreign key dereference issue

2006-04-14 Thread Adrian Holovaty
On 4/11/06, Scott Finnie <[EMAIL PROTECTED]> wrote: > class Vendor(meta.Model): > class META: > admin=meta.Admin() > name = meta.CharField("Name", maxlength=100, core=True) > > def __repr__(self): > return (self.name) > > class ServerModel(meta.Model): > class

Re: PostgreSQL Schemas.

2006-04-14 Thread Adrian Holovaty
On 4/14/06, Ed Epstein <[EMAIL PROTECTED]> wrote: > If you think it's a good idea, I'd probably suggest looking at adding a > per project per app setting that specifies a schema. It would need to > add the create schema statement during the initsql process. For > subsequent accesses, we would set

Re: Trunk and docs

2006-04-14 Thread Adrian Holovaty
On 4/14/06, benchline <[EMAIL PROTECTED]> wrote: > Does anyone know if the docs in trunk are updated for all the changes > in the trunk since .91? Hi benchline, Yes, the docs in trunk are updated for all changes in trunk since .91. Major changes are marked as "**New in Django development version

Re: "choices" field option - how to make dynamic?

2006-04-14 Thread Adrian Holovaty
On 4/14/06, frank h. <[EMAIL PROTECTED]> wrote: > one field in my model is a "directory" field. I present the user with a > choice of directories on the local filesystem in the admin app. > Basically > > infolder = meta.CharField('Video infolder', maxlength=250, > choices=getDirs()) > > with a cus

Re: Fate of 0.91 projects

2006-04-14 Thread James Bennett
On 4/14/06, Bill de hÓra <[EMAIL PROTECTED]> wrote: > Simulataneous releases will confuse people and enhance any perception > that Django is unstable not ready for production work. Parallel branch > management has really hurt the Zope community for example; there are > lots of other examples out t

Re: Fate of 0.91 projects

2006-04-14 Thread Jeroen Ruigrok van der Werven
On 4/14/06, Bill de hÓra <[EMAIL PROTECTED]> wrote: > I think your next release should be an alpha based on magic-removal not > an upgrade of .92. Cut your losses. There has been some commits to the trunk and given how some hosting parties will not install non-released versions I think it might be

Re: Ecommerce & Django

2006-04-14 Thread Michael
OK now sources in trunkget the sources:svn co http://dshop.mine.nu/svn/dshop/trunkI've put there the whole project -just change your db entries and MEDIA_ROOT On 4/15/06, Michael <[EMAIL PROTECTED]> wrote: OK, OK, OK finally got working trachttp://dshop.mine.nu/tracsoon will put sources in svn On

Re: Fate of 0.91 projects

2006-04-14 Thread Jeroen Ruigrok van der Werven
On 4/14/06, Leeuw van der, Tim <[EMAIL PROTECTED]> wrote: > I fully agree with this: a 0.92 made of trunk, with all fixes collected > on trunk. Perhaps patches applied for concurrency/threading issues and > memory leaks -- that would be great for stability, esp. on windows. > Then instantly switch

"choices" field option - how to make dynamic?

2006-04-14 Thread frank h.
Hello all, one field in my model is a "directory" field. I present the user with a choice of directories on the local filesystem in the admin app. Basically infolder = meta.CharField('Video infolder', maxlength=250, choices=getDirs()) with a custom getDirs method that uses python os module and r

Re: Fate of 0.91 projects

2006-04-14 Thread Bill de hÓra
> On Thursday 13 Apr 2006 6:54 pm, Adrian Holovaty wrote: >> Depending on demand, we may release a final pre-magic-removal >> release of Django -- maybe 0.91.1 or something. Or maybe it'll be >> 0.92 and magic-removal will be 0.95, to signify it's a big leap. >> Thoughts? I think your next relea

Re: Ecommerce & Django

2006-04-14 Thread Jeremy Jones
On Sat, 15 Apr 2006 05:45:20 +1200 Michael <[EMAIL PROTECTED]> wrote: > OK, OK, OK > > finally got working trac > http://dshop.mine.nu/trac > > soon will put sources in svn > I setup a table of the requirements I batted around earlier. I put in a "manditoriness"

Re: Ecommerce & Django

2006-04-14 Thread Michael
OK, OK, OK finally got working trachttp://dshop.mine.nu/tracsoon will put sources in svn On 4/15/06, Chris Moffitt <[EMAIL PROTECTED] > wrote: > http://dshop.mine.nu/shop>> working now to setup trac>Michael - Looks like a great start.  Do you want me to setup a mailing list?  We're getting enough i

Re: Django vs Rails

2006-04-14 Thread Glenn Tenney
On Thu, Apr 13, 2006 at 07:17:16PM -0700, [EMAIL PROTECTED] wrote: > There is only one Rails book that is in print at the moment(non pdf). > There are several others that are going to be released very soon > though. http://www.robsanheim.com/2006/03/23/ruby-and-ruby-on-rails-book-roundup/ is a

Re: Ecommerce & Django

2006-04-14 Thread bruno desthuilliers
Jeremy Jones wrote: > > Looking forward to working on this. Here's a rough sketch of what I > was planning on building (and have actually begun work on). I don't > know if this will be palatable to any of the rest of you, or not. My > main purpose for building this app was (and is) to provide

Re: Ecommerce & Django

2006-04-14 Thread Glenn Tenney
A group with which I volunteer is a Cold Fusion shop. One of the other volunteers used EZ-Cart for a few ecommerce sites and loved it. You might want to see the features it has... See http://www.cf-ezcart.com/ -- Glenn --~--~-~--~~~---~--~~ You received this m

Re: Ecommerce & Django

2006-04-14 Thread Clint Ecker
Here's basically what I have... the thing with t-shirts is that you can have a base product, the design... and it's got several subproducts  Medium Black shirts, Large black shirts, Meidum blue.  And they've all got different prices attributed to them, like an XXL shirt would be a little more expen

Re: Ecommerce & Django

2006-04-14 Thread arthur debert
I like th idea of usign jazz musicians' names: "monk"! --~--~-~--~~~---~--~~ 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 t

Re: Django users meetup in Palo Alto on April 27th

2006-04-14 Thread Jacob Kaplan-Moss
On Apr 13, 2006, at 7:26 PM, Eric Walstad wrote: > I'll be there IF it's on Thursday, April 27 (as mentioned in your > mail to the > django-users list). If it's on Wednesday (as mentioned on your web > page), I > won't be able to make it. Please clarify this. Thanks for catching that; I did

RE: Fate of 0.91 projects

2006-04-14 Thread Leeuw van der, Tim
I fully agree with this: a 0.92 made of trunk, with all fixes collected on trunk. Perhaps patches applied for concurrency/threading issues and memory leaks -- that would be great for stability, esp. on windows. Then instantly switch trunk to m-r, and if m-r is good enough, make a release of it. C

Announcement of creation of Django-Ecommerce

2006-04-14 Thread Chris Moffitt
Given all the great responses to my question about ecommerce and Django, I've created a separate google group dedicated to this topic. If you participated in the thread & seemed interested I sent you an invitation. If you do not want to join, please just decline. If you would like to join, acce

Re: Ecommerce & Django

2006-04-14 Thread Jeremy Jones
On Fri, 14 Apr 2006 15:22:53 - "arthur debert" <[EMAIL PROTECTED]> wrote: > > another thing that would be nice is a "downloadable type" of product > where the order relates to a download. of course, this could get > pretty complex if you add in things like serial numbers, versions, > etc...b

Trunk and docs

2006-04-14 Thread benchline
Hi All, Does anyone know if the docs in trunk are updated for all the changes in the trunk since .91? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Fate of 0.91 projects

2006-04-14 Thread David S .
Jeroen Ruigrok van der Werven gmail.com> writes: > On 4/14/06, Kenneth Gonsalves thenilgiris.com> wrote: > > next release *must* be magic removal - no point doing any interim ... > Better to bite the bullet and get this over with. ... I was thinking simultaneous release. Really just for the s

Re: Ecommerce & Django

2006-04-14 Thread arthur debert
another thing that would be nice is a "downloadable type" of product where the order relates to a download. of course, this could get pretty complex if you add in things like serial numbers, versions, etc...but we can start simple.I (personally) would like this, and I guess quite a few of the earl

Re: PostgreSQL Schemas.

2006-04-14 Thread Ed Epstein
Well I managed to get introspectdb working with schemas, but I don't know if it's the right solution. What I'm doing right now is modifying the schema search path. If you think it's a good idea, I'd probably suggest looking at adding a per project per app setting that specifies a schema. It would

Re: Fate of 0.91 projects

2006-04-14 Thread Jeroen Ruigrok van der Werven
On 4/14/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > next release *must* be magic removal - no point doing any interim > releases - one drastic piece of surgery and then 1.0 ... interim > releases would just prolong the agony I have to agree with Kenneth here. Any day you prolong the non-MR

Re: Ecommerce & Django

2006-04-14 Thread Jeremy Jones
On Fri, 14 Apr 2006 22:15:31 +1200 Michael <[EMAIL PROTECTED]> wrote: > http://dshop.mine.nu/shop > > working now to setup trac > > > > Michael > > > > I just put up what I've coded so far on http://jeremy.pitterpatprints.com/ I just created that subdomain, so it's not in the DNS for work

Re: Ecommerce & Django

2006-04-14 Thread Wilson
Call it "Brubeck" --~--~-~--~~~---~--~~ 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 PROTECT

Re: PostgreSQL Schemas.

2006-04-14 Thread Adrian Holovaty
On 4/14/06, Ed Epstein <[EMAIL PROTECTED]> wrote: > Can I specify specific Postgres schemas (e.g. database.schema.table) in > Django? Can I specify specific schemas when using the inspectdb > feature? Postgres schemas aren't supported at the moment. (Not that we have anything against them, just t

Re: Ecommerce & Django

2006-04-14 Thread Jeremy Jones
On Fri, 14 Apr 2006 15:26:49 +0200 "Brice Carpentier" <[EMAIL PROTECTED]> wrote: > > On 4/13/06, arthur debert <[EMAIL PROTECTED]> wrote: > wasn't there any Jazz artist that was known to be "too commercial" ? > I think that would suit the project just fine, wouldn't it ? > Googling for '"too c

Re: Ecommerce & Django

2006-04-14 Thread Brice Carpentier
On 4/13/06, arthur debert <[EMAIL PROTECTED]> wrote: > > "Setup a free python project on python-hosting.com" > > +1 on this one. when getting started we better focus on the coding > right away, and python hosting's capabilities (svn + trac ) setup with > no fuss will be very helpfull (it seems). >

Re: Ecommerce & Django

2006-04-14 Thread Chris Moffitt
> I don't really need this, but it may be kind of cool: > > - Inventory management. Either totally manage inventory online, or > provide some mechanism for integrating with some inventory systems. > > I agree with all the features/ideas you mentioned. I have access to Authorize.net so I can wor

Re: Ecommerce & Django

2006-04-14 Thread Chris Moffitt
> http://dshop.mine.nu/shop > > working now to setup trac > Michael - Looks like a great start. Do you want me to setup a mailing list? We're getting enough interest that I think it would make sense. Give me the ok & I can do it & send out an announcement to this list. -Chris --~--~

Re: Ecommerce & Django

2006-04-14 Thread Jeremy Jones
On Fri, 14 Apr 2006 22:15:31 +1200 Michael <[EMAIL PROTECTED]> wrote: > http://dshop.mine.nu/shop > > working now to setup trac > > > > Michael > > Looking forward to working on this. Here's a rough sketch of what I was planning on building (and have actually begun work on). I don't know if

Re: Ecommerce & Django

2006-04-14 Thread Jeremy Jones
On Thu, 13 Apr 2006 18:14:35 -0700 "ZebZiggle" <[EMAIL PROTECTED]> wrote: > > How about "Reinhardt"? > > Django's last name. > +1 on reinhardt - jmj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Ecommerce & Django

2006-04-14 Thread Jeremy Jones
On Fri, 14 Apr 2006 15:00:03 +0530 Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Thursday 13 Apr 2006 11:12 pm, Jeremy Jones wrote: > > What is it with wives and websites?  Anybody out there (who's a > > male married to a female) not building a website for his wife? > > i build websites f

Re: Importing external modules/classes

2006-04-14 Thread DavidA
Hi Cary, What I did to avoid all the PYTHONPATH stuff was to just 'install' my python library using distutils. I set up a trivial setup.py script and then I just run 'python setup.py install' for my library whenever I make changes. from distutils.core import setup setup(name='pf', version

Re: possible to filter ManyToMany results?

2006-04-14 Thread Ivan Sagalaev
Luke Plant wrote: >As I understand it, Django should be able to do this query no problem. > > I also thought so :-). I created a test project with this model and tried to get this query to work. "get_article_list" is indeed there but it doesn't like 'article_type__id__exact' as an argument.

PostgreSQL Schemas.

2006-04-14 Thread Ed Epstein
Hi. I searched the archives and could find no real mention of this, so I thought I'd post. Can I specify specific Postgres schemas (e.g. database.schema.table) in Django? Can I specify specific schemas when using the inspectdb feature? I'll poke around in the code and see if I can figure out whe

Re: possible to filter ManyToMany results?

2006-04-14 Thread Ivan Sagalaev
nkeric wrote: >Really? That's cool! > > Yes. One of the great new features of m-r branch is that relation queries work similary for M-M and 1-M relations and in both directions: game.articles.filter(article_type__pk=1) # all articles for one game of one type article.game_set.all() #

Re: possible to filter ManyToMany results?

2006-04-14 Thread Luke Plant
On Wednesday 12 April 2006 07:03, nkeric wrote: > hi all, > > I've done some search, however, I guess I should ask for your helps > here: > > I have the following models: (pseudo code) > > class ArticleType: > name = ... > > class Article: > title = ... > article_type = meta.ForeignKey

Re: possible to filter ManyToMany results?

2006-04-14 Thread nkeric
Ivan Sagalaev wrote: > You might want to look into magic-removal branch where things like this > are made possible with ORM. Really? That's cool! Our site (http://www.ifaxian.com - a Chinese Digg-like site) built upon the svn trunk version, we're planning to migrate to the m-r branch soon, I gue

Re: What is the right order of LocaleMiddleware and CacheMiddleware?

2006-04-14 Thread Beegee
# CacheMiddleware settings CACHE_BACKEND = "locmem:///" CACHE_MIDDLEWARE_KEY_PREFIX = 'beegee' CACHE_MIDDLEWARE_SECONDS = 60 * 5 MIDDLEWARE_CLASSES = ( "django.middleware.sessions.SessionMiddleware", "django.middleware.locale.LocaleMiddleware", "django.middleware.cache.CacheMiddle

Re: Ecommerce & Django

2006-04-14 Thread Michael
http://dshop.mine.nu/shopworking now to setup trac 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@googlegroups.com To unsubscribe fro

Re: Ecommerce & Django

2006-04-14 Thread Kenneth Gonsalves
On Friday 14 Apr 2006 12:29 pm, James Bennett wrote: > Also, in personal projects I tend to pick names of other jazz > artists, following the trend of "Django" and "Ellington"... for > example, I've got a project right now called "Coltrane". jazz - django is a female western gunslinger - wonder i

Re: Ecommerce & Django

2006-04-14 Thread Kenneth Gonsalves
On Thursday 13 Apr 2006 11:12 pm, Jeremy Jones wrote: > What is it with wives and websites?  Anybody out there (who's a > male married to a female) not building a website for his wife? i build websites for me in my wife's name ;-) -- regards kg http://www.livejournal.com/users/lawgon tally ho!

Re: Fate of 0.91 projects

2006-04-14 Thread Kenneth Gonsalves
On Thursday 13 Apr 2006 6:54 pm, Adrian Holovaty wrote: > Depending on demand, we may release a final pre-magic-removal > release of Django -- maybe 0.91.1 or something. Or maybe it'll be > 0.92 and magic-removal will be 0.95, to signify it's a big leap. > Thoughts? next release *must* be magic r

Re: Ecommerce & Django

2006-04-14 Thread Nebojsa Djordjevic
Chris Moffitt wrote: > There are certain problems with OsCommerce which are going to be > non-issues with a Django site: PHP-style of i18n handling, really a show stopper for me. Django i18n rocks, but we must add l10n stuff also (money/number formatting, currency support, etc). > Is there int

Re: Understanding FloatFields

2006-04-14 Thread Nebojsa Djordjevic
DavidA wrote: > Is the convention to just use float() or Decimal() > whenever I need to use it as a number? I'm not sure what is the final decision, but in my first try in implementing validate and to_python methods (in MR) I use Decimal as return type for the FloatField. OTOH, maybe we can use

Re: Ecommerce & Django

2006-04-14 Thread olive
+1 for python-hosting My possible contributions: - on-the-fly PDF invoice creation using ReportLab (or another PDF lib ?) - Advertising management - links with others Web Services (Amazon ...) - The Shop as Web Service ... ... --~--~-~--~~~---~--~~ You received t

Re: Ecommerce & Django

2006-04-14 Thread bruno desthuilliers
James Bennett wrote: > On 4/13/06, Chris Moffitt <[EMAIL PROTECTED]> wrote: > >>I like it. However, it's probably a little limiting for future use. One >>question I have around the name Django. I noticed on the website that >>it's copyrighted so we probably couldn't use it in the name. Is that