Re: Can two templates' names in "templates" directory under different apps be same ?

2005-12-14 Thread ashutux
Yes, I think what perhaps missing / not appropriate is Not much discussion / documentation of what is "The Django Way." We will have to wait until 1.0 I guess.

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread [EMAIL PROTECTED]
There's little difference then. In Django you write Python code to represent your database. In RoR you produce the database first in its native method (SQL). I'd much rather build my database up using a nice GUI then get Rails to 'plug' into it. Instead with Django you have to code a database

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Kenneth Gonsalves
On Wednesday 14 Dec 2005 5:34 pm, [EMAIL PROTECTED] wrote: > native method (SQL).  I'd much rather build my database up using > a nice GUI then get Rails to 'plug' into it.  Instead with Django > you have to code a database structure in Python which Django then > produces using SQL. you can code

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Medium
Kenneth Gonsalves wrote: On Wednesday 14 Dec 2005 5:34 pm, [EMAIL PROTECTED] wrote: native method (SQL). I'd much rather build my database up using a nice GUI then get Rails to 'plug' into it. Instead with Django you have to code a database structure in Python which Django then produces u

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Afternoon
On 14 Dec 2005, at 12:04, [EMAIL PROTECTED] wrote: Its another surplus layer which complicates the process. That's one way to look at it, but the other is that the Django model contains more information than an SQL create statement. It centralises all information about the layout and con

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread [EMAIL PROTECTED]
True a GUI can't totally replace hand coded SQL. However, it certainly speeds a lot of the process up. Fine tuning can be done afterwards.

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Jeroen Ruigrok van der Werven
On 12/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > True a GUI can't totally replace hand coded SQL. However, it certainly > speeds a lot of the process up. Fine tuning can be done afterwards. Guess that is a very subjective measurement. Working out the model in Django's models/ direc

Re: Caching partial templates

2005-12-14 Thread Adrian Holovaty
On 12/13/05, oron <[EMAIL PROTECTED]> wrote: > coming from ROR where it's easy to cache partials (parts of templates) > I couldn't find a way to cache just parts of my template easily without > going back to the cache low level API. > > What's the suggested strategy for caching for example the hom

Re: sqlobject vs. django

2005-12-14 Thread [EMAIL PROTECTED]
braver wrote: > Now that my appetite is whetted by the cris-py fresh Object-Relational > Managers, I keep collecting and comparing them. So far I've found that > ruby's ActiveRecord is separable from RoR, and I found SQLobject.org, a > totally pythonic ORM (but no cigar... i.e., web). So it beg

Re: sqlobject vs. django

2005-12-14 Thread Robert Hicks
I am not sure what you are saying here. Since SQLObject is under the LGPL, your application can be under anything you want it to be. There is no ambiguity. Robert

Re: sqlobject vs. django

2005-12-14 Thread Joshua D. Drake
Robert Hicks wrote: I am not sure what you are saying here. Since SQLObject is under the LGPL, your application can be under anything you want it to be. There is no ambiguity. Right... the only exception is that if you make changes to SQLObject itself. The cool thing about the LGPL is that

Re: Django logo

2005-12-14 Thread Wilson Miner
I haven't got around to posting those with guidelines, but I've attached a version you migth be able to use.Cheers,WilsonOn 12/3/05, Maniac <[EMAIL PROTECTED]> wrote: I'm writing a blog post about Django and want to use a logo as adecoration. There are number of nice badges onhttp://www.djangoproj

item_categories hooks in high-level syndication framework

2005-12-14 Thread Flavio Curella
I think class django.contrib.syndication.feeds.Feed need item_categories methods that allow use of categories also in high-level syndication framework. Something like this should work: # ITEM CATEGORIES --One of the following three is optional. The # framework looks for them in this order

Re: Django logo

2005-12-14 Thread Maniac
Wilson Miner wrote: I haven't got around to posting those with guidelines, but I've attached a version you migth be able to use. Thanks, I'll keep it!

Re: item_categories hooks in high-level syndication framework

2005-12-14 Thread James Bennett
On 12/14/05, Flavio Curella <[EMAIL PROTECTED]> wrote: > I think class django.contrib.syndication.feeds.Feed need > item_categories methods that allow use of categories also in high-level > syndication framework. A few days back, I posted a slightly different suggestion as a ticket: http://code.

Re: is Django too powerful?

2005-12-14 Thread Kevin
I'd prefer to see a two stage approach to contributing applications to Django where newly contributed apps are in some sub-directory like django.extras instead of django.contrib that contains more standardized and popular applications like admin. I'm thinking of KDE as a model with there kdenonb

Database Backup

2005-12-14 Thread Andreas Neumeier
Hi there, I was wondering, if it is possible to do a entire backup of the database into a, let's say XML file or something. The intention is to offer a easy possibility to users to install applications and roll back to previor states, like having a backup/restore button on the admin interface. N

Re: Database Backup

2005-12-14 Thread Medium
Andreas Neumeier wrote: Hi there, I was wondering, if it is possible to do a entire backup of the database into a, let's say XML file or something. The intention is to offer a easy possibility to users to install applications and roll back to previor states, like having a backup/restore butto

Re: Database Backup

2005-12-14 Thread Andreas Neumeier
like executing pg_dump from the view? I thought about that, but I did not want to execute something external. I was more thinking of get_list(...) or something similare, but that would propably break relations on restoring? so pg_dump would be the most consistent solution, tho. -- Andreas Neume

Re: Database Backup

2005-12-14 Thread Jacob Kaplan-Moss
On Dec 14, 2005, at 2:24 PM, Andreas Neumeier wrote: I was wondering, if it is possible to do a entire backup of the database into a, let's say XML file or something. The intention is to offer a easy possibility to users to install applications and roll back to previor states, like having a bac

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread [EMAIL PROTECTED]
True. SQL was designed and has continued development for the sole purpose of data manipulation. Why then replace SQL with Python to describe this data structure.

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread James Bennett
On 12/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > True. SQL was designed and has continued development for the sole > purpose of data manipulation. Why then replace SQL with Python to > describe this data structure. For me, it's a question of portability; even though SQL is a "standar

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Sean Perry
Afternoon wrote: On 14 Dec 2005, at 12:04, [EMAIL PROTECTED] wrote: Its another surplus layer which complicates the process. That's one way to look at it, but the other is that the Django model contains more information than an SQL create statement. It centralises all information abou

Re: Problems with mod_python

2005-12-14 Thread Marcos Sánchez Provencio
You might try the mod_python list... ¿What does the apache error log say? El vie, 02-12-2005 a las 21:56 -0800, [EMAIL PROTECTED] escribió: > I hava Windows, apache 2.0.55 python 2.4.2 and mod python 3.2.5b > installed. > > I have add to httpd.conf LoadModule for mod_pythone. > > But apache ca

Re: Database Backup

2005-12-14 Thread Jeroen Ruigrok van der Werven
On 12/14/05, Andreas Neumeier <[EMAIL PROTECTED]> wrote: > I was wondering, if it is possible to do a entire backup of the > database into a, let's say XML file or something. > > The intention is to offer a easy possibility to users to install > applications and roll back to previor states, like ha

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread braver
A symbol which is a unique string is not the story here, it turns out -- dynamic language is! has_many :milestones is apparently a call which generates code inside of the class! Can it be replicated in python for ORM purposes?

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Robert Wittams
braver wrote: > A symbol which is a unique string is not the story here, it turns out > -- dynamic language is! > > has_many :milestones > > is apparently a call which generates code inside of the class! Can it > be replicated in python for ORM purposes? > > Not really. Read up on metaclasse

Re: Database Backup

2005-12-14 Thread Daniel James
Andreas Neumeier wrote: like executing pg_dump from the view? I thought about that, but I did not want to execute something external. I was more thinking of get_list(...) or something similare, but that would propably break relations on restoring? so pg_dump would be the most consistent soluti

ifequal

2005-12-14 Thread Milton Waddams
Can someone tell me why this doesn't work? {% ifequal forloop.counter0 1 %} there are enough loops and the output of {{forloop.counter0}} does print 1 at the appropriate place? By work I mean it is never equal, I've tried putting the 1 in quotes with no difference.

Re: ifequal

2005-12-14 Thread kmh
Milton Waddams wrote: > Can someone tell me why this doesn't work? > > {% ifequal forloop.counter0 1 %} > > there are enough loops and the output of {{forloop.counter0}} does > print 1 at the appropriate place? > > By work I mean it is never equal, I've tried putting the 1 in quotes > with no diff

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-14 Thread Jeroen Ruigrok van der Werven
On 12/15/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > Personally, I think class attributes are fine. Also given how Django describes the schema and from there builds the database as opposed to RoR which wants you to design the database up front, I think the names of the Django functions like Po

Re: Database Backup

2005-12-14 Thread Andreas Neumeier
> It'd be nice to have this in a database independent format - to make it > easy to change the database you're using. I didn't think about this before, but you are right. In the end, users may want to backup the django application and not the (postgres) database, which speaks for the "independan