Re[2]: XML output

2007-08-11 Thread Alex Nikolaenkov
You wrote 11 ??? 2007 ?., 13:55:42: > Alex Nikolaenkov wrote: >> Hello guys, >> I like just about everything in django, but at this point of me reading >> django >> book I can't imagine the way of xmlizing django. > There are serializers in Django: > http://www.djangoproject.com/documentat

Re[2]: XML output

2007-08-11 Thread Alex Nikolaenkov
You wrote 12 ??? 2007 ?., 1:41:39: > Alex Nikolaenkov <[EMAIL PROTECTED]> writes: >> Hello guys, >> I like just about everything in django, but at this point of me reading >> django >> book I can't imagine the way of xmlizing django. >> >> Is there a way to use XSLT templates instead of sta

Re: mod_python can't find settings

2007-08-11 Thread george
So it turns out that lack of sleep was causing me to be an idiot. Malcolm, your initial instinct was correct -- while the app directory and files all had the correct permissions, the /home/george directory lacked the necessary o+x for apache. In the end I apologize for asking a question about a p

Re: Testing/Fixtures/Production/TestRunner

2007-08-11 Thread Russell Keith-Magee
On 8/11/07, Chris Green <[EMAIL PROTECTED]> wrote: > > On Aug 9, 7:55 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: > > On 8/9/07, Chris Green <[EMAIL PROTECTED]> wrote: > > > 2) Setting up users/groups/users manually in the runner gets blown > > > away by the TestCase architecture. Wor

Re: basic testing procedure?

2007-08-11 Thread Russell Keith-Magee
On 8/10/07, patrickk <[EMAIL PROTECTED]> wrote: > > here are a couple of questions: > 1. where to define the testing? in models.py or in tests.py? I´d like > to seperate the testing from models.py, so how can I write doctests > in a seperate file (the example in the django documentation only > exp

Re: Developing and testing a model mixin

2007-08-11 Thread Russell Keith-Magee
On 8/12/07, Ned <[EMAIL PROTECTED]> wrote: > > Firstly, is a mixin a good way to do this? This is one approach - another would be an abstract base class. We (by which, I mean Malcolm) is currently working on improving the inheritance capabilities in Django - providing a way to cleanly implement a

Re: Error loading MySQLdb module

2007-08-11 Thread James Bennett
On 8/11/07, Kelsey Ruger <[EMAIL PROTECTED]> wrote: > I have the same problem even though I have installed MySQLdb. Open up a Python interpreter, and try: import MySQLdb If you see an ImportError, MySQLdb may have been installed into a location that's not on your Python import path; you can fix

Re: Error loading MySQLdb module

2007-08-11 Thread Kelsey Ruger
I have the same problem even though I have installed MySQLdb. On Jul 6, 3:42 pm, "Bryan L. Fordham" <[EMAIL PROTECTED]> wrote: > looks like you need to install > MySQLdb:http://sourceforge.net/projects/mysql-python > > Jalil wrote: > > I keep getting this below error when I try to sync my databa

no cookie vs. expired cookie

2007-08-11 Thread [EMAIL PROTECTED]
Hi, I'm building a service that should have 2 week sessions. For authentication, I'm hoping someone can explain what happens if a cookie has expired because those two weeks are up. Is request.user authenticated? Is there another flag that notes the cookies is expired? Or is request.user not au

Re: EARN 1$ PER HOUR! EARN 1$ PER HOUR! EARN 1$ PER HOUR!

2007-08-11 Thread G.J. Souverein
2007/8/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Paying to Surf with AGLOCO > > Please Trust Us > EARN 1$ PER HOUR! EARN 1$ PER HOUR! EARN 1$ PER HOUR! > Free 4 easy step to earn money while u surf > 1. just go to the below link > 2. sing-up & register > 3. download the AGLOCO

Re: database table doesn't exist

2007-08-11 Thread Doug B
Syncdb doesn't create the intermediary table* if the model the manytomanyfield is on already exists. You'll have to create it manually, or drop the entry table and then run syncdb to create it. ManyToManyField keeps track of the relations in a 3 column third table like: id | entry_id | tag_id

database table doesn't exist

2007-08-11 Thread Evan H. Carmi
Hi, I was implementing tags on my blog and ran into this problem: Under the administration page I can create and view tags. I can also view a list of entries and try and create an entry. When I try and create an entry I can fill out the entry form and save it. The data is saved and appears on my

Re: Maldives Holidays Boston Holidays Holidays in Dubai

2007-08-11 Thread G.J. Souverein
2007/8/11, ali öztürk <[EMAIL PROTECTED]>: > > 15/6/2007: Yahoo! hits flack from > shareholders > 15/6/2007: IBM avoids $1.6bn taxes days before loophole > shut > 15/6/2007: Intel targets developing world with basic lapto

Re: Life (1) ; Working

2007-08-11 Thread G.J. Souverein
2007/8/11, Dr. Solve <[EMAIL PROTECTED]>: > > > . > > Life > > It is something that everyone has, yet very view people comprehend it, > or at least try to. > > If I put a book on your hand and ask you, "What is a book? > I bet you can answer it easily. > >

Re: return html snippet via XHR with simplejson

2007-08-11 Thread Udi
If you just want to return html that will get dumped into a container via innerHTML, then I don't really see the need to return json. Just return the html as text/html and dump the response directly into the container. However, the approach you are taking is nice because it lets you add more met

Re: mod_python can't find settings

2007-08-11 Thread Graham Dumpleton
On Aug 11, 4:32 pm, george <[EMAIL PROTECTED]> wrote: > I have seen previous posts regarding this issue, and I'm pretty sure > that I'm not running into similar issues that others have faced. I'm > a bit stuck as to where to go. > > I'm running Apache2, python2.3,mod_python, latest django and Cen

Re: XML output

2007-08-11 Thread Nic
Alex Nikolaenkov <[EMAIL PROTECTED]> writes: > Hello guys, > I like just about everything in django, but at this point of me reading django > book I can't imagine the way of xmlizing django. > > Is there a way to use XSLT templates instead of standard django > template language? I have some stuf

Re: make-messages does not generate any message in .po except dummy header

2007-08-11 Thread Ramiro Morales
Peter, On 8/11/07, Peter Melvyn <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm trying to generate messages for transaltion in my project folder. > > As recommened in Wiki/Localization, I installed gettext utility for > SourceForge and if I run make-messages command with verbose option, it > produ

Windows XP - Repairing

2007-08-11 Thread John Travolta
Optimize your operating system, minimize background activities, repair registry base, uninstall unnecessary components, get rid of boring errors and make your operating system safer. http://windowsxpsp2pro.blogspot.com --~--~-~--~~~---~--~~ You received this messa

Maldives Holidays Boston Holidays Holidays in Dubai

2007-08-11 Thread ali öztürk
15/6/2007: Yahoo! hits flack from shareholders 15/6/2007: IBM avoids $1.6bn taxes days before loophole shut 15/6/2007: Intel targets developing world with basic laptop for childrenTom Bawden in New York

make-messages does not generate any message in .po except dummy header

2007-08-11 Thread Peter Melvyn
Hi all, I'm trying to generate messages for transaltion in my project folder. As recommened in Wiki/Localization, I installed gettext utility for SourceForge and if I run make-messages command with verbose option, it produces just a .po file containing dummy header : # SOME DESCRIPTIVE TITLE. #

Question concerning blank and null in model fields

2007-08-11 Thread [EMAIL PROTECTED]
Hi, I think I just stumbled across a something others must have encountered too. But I can'T find any documentation that enlightens me. I have a CharField in my model that looks like that. name = models.CharField(_('Projektname'), max_length = 255) The result is, that I can't create an instanc

Re: Don't Repeat Yourself!

2007-08-11 Thread sago
The more I think about this, the more I think the feed design could be improved. For example - what is the purpose of the get_object() method call? Why not get the feed class creator to implement a constructor, then pass the information to that? In that way you don't need to mess about with one

Developing and testing a model mixin

2007-08-11 Thread Ned
I'm new to Django and fairly new to Python. I'm developing an add-in for using for using models as nested set trees* At the moment it's a mixin class which provides methods such as parent(), descendants(), depth() etc. for examining the tree, and move_to() for relocating a node within the tree.

Re: Multilingual site best practices

2007-08-11 Thread yml
Hello, I have read something today about multi lingual database. There is a project hosted there: http://code.google.com/p/django-utils/wiki/TranslationService that seems to do what you are looking for. I have never used it myself. I hope that will help you On Aug 10, 9:52 pm, Francis <[EMAIL P

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Sat, 11 Aug 2007 14:36:50 +, Patrick Anderson wrote: > On Sat, 11 Aug 2007 14:34:05 +, Patrick Anderson wrote: > >> On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: >> >> > --- If I have 8 people, how sho

Re: Need some advice in new project

2007-08-11 Thread r_f_d
I am not sure why you would want "all companies bank accounts in different tables." Is it for security? to ensure that only appropriate people are able to view the records of any given company? There is the row-level-permissions branch, but I do not believe it has been maintained in a while so I

Re: django app for managing sending email to users...

2007-08-11 Thread James Tauber
On 10/08/2007, at 11:41 PM, Andrew wrote: > I'm so happy that you've taken the initiaive with this. I'm happy to > help code -- just let me know how. Would be great to have you on board. To help, I suggest you a) subscribe to the django-mailer list http://groups.google.com/group/django

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Sat, 11 Aug 2007 14:34:05 +, Patrick Anderson wrote: > On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: > >>> --- >>> >>> If I have 8 people, how should bind POST data to a form object in the >>> view? >> >> You can us

RE: Support for macros in templates

2007-08-11 Thread Michael Elsdoerfer
> If interested, take the library from here: > http://www.djangosnippets.org/snippets/363/ Interesting. I too was missing macro support, and implemented something similar a couple weeks ago: http://www.djangosnippets.org/snippets/343/ Michael > -Original Message- > From: django-users@g

Re: newforms + multiple sister forms submitted/processed in one user action

2007-08-11 Thread Patrick Anderson
On Fri, 10 Aug 2007 18:46:18 -0700, Doug B wrote: >> --- >> >> If I have 8 people, how should bind POST data to a form object in the >> view? > > You can use the 'prefix' option when instantiating the forms. Prefix > the form w

FileField / ImageField problem on update

2007-08-11 Thread Grupo Django
Hi, When I update a register that has a ImageField, the old file is not deleted from the disk, so I have created a custom save method like this: def save( self ): path = self.get_foto_filename() delete_file(path) super(Perfil, self).save() But path is set to the new file

Re: Don't Repeat Yourself!

2007-08-11 Thread Ivan Sagalaev
sago wrote: > The feed approach for routing urls is everything that django's url > system was designed not to be: it imposes a hierarchical structure on > the url, distributes the configuration over multiple representations, > and could be avoided by having a feed view that behaves more like > gen

Re: Support for macros in templates

2007-08-11 Thread Michal Ludvig
olivier wrote: > Hi Michal, > > On 11 août, 04:51, Michal Ludvig <[EMAIL PROTECTED]> wrote: > >> It works pretty well and the only drawback is that the defined macros >> are local to each template file, i.e. are not inherited through >> {%extends ...%} and you can't have for instance some common

Re: XML output

2007-08-11 Thread Ivan Sagalaev
Alex Nikolaenkov wrote: > Hello guys, > I like just about everything in django, but at this point of me reading django > book I can't imagine the way of xmlizing django. There are serializers in Django: http://www.djangoproject.com/documentation/serialization/ > Is there a way to use XSLT templ

XML output

2007-08-11 Thread Alex Nikolaenkov
Hello guys, I like just about everything in django, but at this point of me reading django book I can't imagine the way of xmlizing django. Is there a way to use XSLT templates instead of standard django template language? -- Best regards, Alex mailto:[EMAIL PROTECTED]

Re: return html snippet via XHR with simplejson

2007-08-11 Thread olivier
Hi, > This seems pretty appropriate to me, but as I am relatively new to > python and django, I was wondering if others are doing something > similar or if there are other suggestions for returning the html > formatted. Well, I'm doing roughly the same thing... I would be interested to see if o

Re: Support for macros in templates

2007-08-11 Thread olivier
Hi Michal, On 11 août, 04:51, Michal Ludvig <[EMAIL PROTECTED]> wrote: > It works pretty well and the only drawback is that the defined macros > are local to each template file, i.e. are not inherited through > {%extends ...%} and you can't have for instance some common macros > defined in a sep

EARN 1$ PER HOUR! EARN 1$ PER HOUR! EARN 1$ PER HOUR!

2007-08-11 Thread [EMAIL PROTECTED]
Paying to Surf with AGLOCO Please Trust Us EARN 1$ PER HOUR! EARN 1$ PER HOUR! EARN 1$ PER HOUR! Free 4 easy step to earn money while u surf 1. just go to the below link 2. sing-up & register 3. download the AGLOCO Viewbar 4. Restart u r computer & run AGLOGO Viewbar on ur co

Life (1) ; Working

2007-08-11 Thread Dr. Solve
. Life It is something that everyone has, yet very view people comprehend it, or at least try to. If I put a book on your hand and ask you, "What is a book? I bet you can answer it easily. If now I put a slice of bread on your hand and ask you, "What i

How to rewrite SQL for Django

2007-08-11 Thread Pythoni
I need to use this SQL command in my Django application select subject, count(subject) as 'count' from mimi_blogs group by subject order by count desc; How must I rewrite that command so that Django paginator can understand it properly? Thank you for help L. --~--~-~--~~