"duplicate key" loading dumpdata

2008-03-26 Thread Carl Karsten
same code on both boxes: [EMAIL PROTECTED]:~/ridgemoor$ ../django/bin/django-admin.py dumpdata >ridgemoor.json [EMAIL PROTECTED]:~/ridgemoor$ django-admin.py loaddata ridgemoor.json Installing json fixture 'ridgemoor' from absolute path. Problem installing fixture 'ridgemoor.json': ERROR: dup

how to convert {{candidate.vote_set.filter(vote='TU').count()}} in template syntax

2008-03-26 Thread django
Hi, I want to use {[candidate.vote_set.filter(vote='TU').count()}} in my template but not able to do it. Its says Templatesyntaxerror... I want to know how I can use the above exp in my template?? Thanks.. --~--~-~--~~~---~--~~ You received this message because yo

Is identity map planned for Django ORM?

2008-03-26 Thread shabda
A test case showing the problem http://dpaste.com/41542/ . I always get bitten by this behaviour when I am writing tests. There was a discussion long ago about adding this feature of Identity maps http://groups.google.com/group/django-users/browse_thread/thread/56698424ae3708ea/88496cb950e75c37?ln

Could not parse the remainder in Template?

2008-03-26 Thread django
How do i convert {{ candidate.vote_set.filter(vote='TU').count()}} in my view_candidate to work it properly Right now it give me templatesyntax error On Mar 27, 10:48 am, django <[EMAIL PROTECTED]> wrote: > I tried using {{ candidate.vote_set.filter(vote='TU').count()}} in my > view_candidat

Could not parse the remainder in Template?

2008-03-26 Thread django
I tried using {{ candidate.vote_set.filter(vote='TU').count()}} in my view_candidate.html file but it gives me error Could not parse the remainder: (vote='TU').count() please help me out.. Thanks... django wrote: > hi, > I have a candidate model and a voting model. > Voting model is basically th

Re: User created in postgresql is not found when Adding Data to the API.

2008-03-26 Thread Chirolo
Hi again. I tried what Thomas suggested, but I still get the following error: NameError: name 'pwdtuple' is not defined [EMAIL PROTECTED]:~/django_projects/iFriends/iFriends$ python manage.py shell Traceback (most recent call last): File "manage.py", line 4, in import settings # Assumed to

Re: Customized ChoiceField doesn't save properly with newforms-admin

2008-03-26 Thread Julien
Hi, I was busy doing other things, and then I got back to that problem. I spent another couple of hours on it and I still don't get it... :( My custom widget displays correctly in the admin form and generates something like the following code: Category: All  |- Best Practices   |-

Template problem

2008-03-26 Thread django
hi, I have a candidate model and a voting model. Voting model is basically thumps up and down. I want to show my voting status in my Candidate profile.. Right now this is what I am doing 1) /template/ candidate/view_candidatelist.html 2) /template/vote/ view_vote.html view_candidatelist gives me

Template problem

2008-03-26 Thread django
hi, I have a candidate model and a voting model. Voting model is basically thumps up and down. I want to show my voting status in my Candidate profile.. Right now this is what I am doing 1) /template/ candidate/view_candidatelist.html 2) /template/vote/ view_vote.html view_candidatelist gives me

PayPal integration

2008-03-26 Thread e
Is there a tutorial or stand-alone django app somewhere that shows how to make a PayPal payment using their API? Especially the Name Value Pair stuff. There's nothing on PayPal's site and so far I've only found this: http://python.pastebin.com/f782d48d9 I've tried looking through the Satchmopr

Re: newforms image upload and validation

2008-03-26 Thread [EMAIL PROTECTED]
thanks karen..guess I'm overworked -- I was trying out something like "if self.cleaned_data['avatar'] == ' ' " failed to notice that the ImageField is 'None' if empty... thanks a bunch..you made my day :-) -pd. On Mar 26, 10:07 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Mar 26,

Re: (newcomer) Directly attributing a many-to-many relationship as in RoR possible?

2008-03-26 Thread Russell Keith-Magee
On Tue, Mar 18, 2008 at 4:54 AM, Spiderspanky <[EMAIL PROTECTED]> wrote: > > Hi Russ, Hi John. Apologies for the delay in replying - this message got buried in my inbox. > > 2) Longer term, this is something that will be addressed by ticket #6095 > > > > http://code.djangoproject.com/ticket/

Re: Postgres and Fixtures

2008-03-26 Thread Russell Keith-Magee
On Mon, Mar 24, 2008 at 7:32 PM, SlowLearner <[EMAIL PROTECTED]> wrote: > > I tried this with JSON and XML back up files using Ubuntu 7.10, Django > 0.96 from the Ubuntu repository. ... > Searching on this group I found a reference to a manage.py > sequencereset (or something close) but also i

Re: newforms image upload and validation

2008-03-26 Thread Karen Tracey
On Wed, Mar 26, 2008 at 5:15 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm using an avatar imagefiled in the model and have defined an > imagefield in the registration form I'm using for the user to sign up. > avatar is not a required field (both in the form as well as in the > model) >

Re: Filter ManyToMany options by Site in adming interface

2008-03-26 Thread Michael
Django.contrib.flatpages does exactly what you are trying to accomplish. It might be a bit of code to sort through but it is the tried and true method to accomplish the multiple site one object idea. Hope that helps, Michael On Tue, Mar 25, 2008 at 1:47 PM, Josh <[EMAIL PROTECTED]> wrote: > >

Re: doubts about query

2008-03-26 Thread Michael
Book.objects.filter(author__name='some name').filter(publisher__name='editorname') Then you filter a date field with a timedelta that matches the time that you want. It's really simple actually. Hope that helps, Michael On Tue, Mar 25, 2008 at 2:23 PM, Vladimir Sanjinez <[EMAIL PROTECTED]> wr

Re: Using an INSERT...SELECT... type of query

2008-03-26 Thread Brian Armstrong
Sorry for the spam here, but I came across something going through the code switching process that I think may actually call for more than the standard MtM Field. What happens if you need to add additional fields to your join table? For example, let's say you had an employees table and a project

Re: Forms not same fields than Models

2008-03-26 Thread [EMAIL PROTECTED]
Read this: http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ On Mar 26, 8:02 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 26-Mar-08, at 6:44 PM, didier rano wrote: > > > I need to have a Form (newforms) with different fields than my > > Model.

Re: Forms not same fields than Models

2008-03-26 Thread Kenneth Gonsalves
On 26-Mar-08, at 6:44 PM, didier rano wrote: > I need to have a Form (newforms) with different fields than my > Model. In fact, one form instance will generate several models > instances. Haves you seen it before ? How create and update it ? http://www.djangosnippets.org/snippets/463/ --

Re: Dynamically storing files in Amazon S3

2008-03-26 Thread Jacob
I somehow missed this http://code.djangoproject.com/wiki/AmazonSimpleStorageService That is a big help, and I'm going to toy with it first. Thanks everyone. j On Mar 26, 5:48 pm, Jacob <[EMAIL PROTECTED]> wrote: > Hi there everyone. > > In keeping with the 'DRY' theme of django, I'm looking f

Dynamically storing files in Amazon S3

2008-03-26 Thread Jacob
Hi there everyone. In keeping with the 'DRY' theme of django, I'm looking for a good way to do the following. * My application allows users to upload files, which their clients then view on a sister site. * To allow for scale, I want to use Amazon S3 or similar, so that I don't have to ov

embedding django-contact-form in a generic view

2008-03-26 Thread Evan H. Carmi
Hi, I have a archive index generic view that is working at /portfolio/. I also have a http://code.google.com/p/django-contact-form/ contact form at /contact/. I want to have the form currently located at /contact/ be on the same page as my generic view at /portfolio/. I am wondering what is th

Re: user authentication permissions

2008-03-26 Thread cmccomas80
thnx karen. another related question, currently the site is using paypal for it's subscriptions, they charge $25/month. how difficulty would it be to automate the user subscription process? so when someone pays their $25 and paypal approves the transaction they're acct is good to go and they can

Re: Loop Counter

2008-03-26 Thread DuncanM
Ahh thanks very much On Mar 27, 12:03 am, Brian Armstrong <[EMAIL PROTECTED]> wrote: > On Mar 26, 6:56 pm, DuncanM <[EMAIL PROTECTED]> wrote: > > > > > I have a template that looks like such: > > > {% if object_list %} > > > {% for menu in object_list %} > > > >

Re: Loop Counter

2008-03-26 Thread Brian Armstrong
On Mar 26, 6:56 pm, DuncanM <[EMAIL PROTECTED]> wrote: > I have a template that looks like such: > > {% if object_list %} > > {% for menu in object_list %} > > {{ menu.name }} > Description: {{ menu.description }} > > > {% endfor %} >

Loop Counter

2008-03-26 Thread DuncanM
I have a template that looks like such: {% if object_list %} {% for menu in object_list %} {{ menu.name }} Description: {{ menu.description }} {% endfor %} {% else %} No menus have been created yet, please check bac

edit_inline and the Django Admin interface

2008-03-26 Thread ocamljohn
My model includes a class called "Topic", and there exists a many-to- many relationship between Topics. This relationship between topics also includes a field named "source" that describes the nature of the relationship. Thus, I declare a model named TopicRelationship (see below) rather than using

Re: Unexpected TypeError in m2m relationship

2008-03-26 Thread Karen Tracey
On Wed, Mar 26, 2008 at 5:16 PM, J. Cliff Dyer <[EMAIL PROTECTED]> wrote: > > So it did. I had stripped down my original one to get rid of a couple > hundred lines of unimportant cruft, but accidentally created some > inconsistencies. However, I ran it again before submitting and didn't > get an

Re: admin login returns 500 error

2008-03-26 Thread Graham Dumpleton
On Mar 27, 2:10 am, Floyd Arguello <[EMAIL PROTECTED]> wrote: > Ok, I'll help you help me :) > > Running latest svn on Apache 2.2 with mod_python Which version of mod_python? > - error log doesn't > show a thing. The 500 error really isn't too helpful... just tells me > it's something with the s

Re: File upload doesn't work

2008-03-26 Thread Karen Tracey
On Tue, Mar 25, 2008 at 8:51 PM, Carl <[EMAIL PROTECTED]> wrote: > On 26 Mrz., 00:29, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > On Tue, 2008-03-25 at 16:19 -0700, Carl wrote: > > > Hi Djangonauts, > > > > > i've a problem here driving me nuts - obviously I don't get it how to > > > do a

Re: Using an INSERT...SELECT... type of query

2008-03-26 Thread Brian Armstrong
Oh, wait, duh, that's what the Many-to-Many relationship is. Sorry about that. I feel rather dumb now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: Using an INSERT...SELECT... type of query

2008-03-26 Thread Brian Armstrong
On Mar 26, 4:40 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > What is the use-case for something like this in Django? The only times > we do SQL inserts are when we're saving a model instance or updating a > many-to-many relation. I can't see either of those really needing this > type of fun

Re: customize forms

2008-03-26 Thread Juanjo Conti
Rocio Figueroa escribió: > 2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>: >> 2008/3/26, Rocio Figueroa <[EMAIL PROTECTED]>: >> >> > 2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>: >> > >> > > >> > > You could generate the form based on the model: >> > > >> > > UsuarioForm = fo

Re: Trouble running dev server after upgrade to Leopard.

2008-03-26 Thread Evert Rol
> I recently upgraded from OS X Tiger to 10.5 Leopard. I've been trying > for the last two days to get my Django development setup working > again. There seems to be a row of pitfalls involved in this but I > think I've gotten at least a part of the way. Apple did change several settings re: Pyth

Re: Trouble running dev server after upgrade to Leopard.

2008-03-26 Thread John Melesky
On Mar 26, 2008, at 3:08 PM, Emil wrote: > Is there a way for me to know which python interpreter is used by > manage.py? Try invoking the django shell ("manage.py shell"), and then checking sys.executable. Looks something like this on my machine: $ ./manage.py shell Python 2.5 (r25:51918, Se

Re: Using an INSERT...SELECT... type of query

2008-03-26 Thread Malcolm Tredinnick
On Wed, 2008-03-26 at 14:36 -0700, Brian P Armstrong wrote: > Hi, > > I was working on moving an old site from php to django and found that > I was using INSERT...SELECT... queries in a couple places. The point > of these queries is to take a group of rows using the SELECT subquery > and insert

Using an INSERT...SELECT... type of query

2008-03-26 Thread Brian P Armstrong
Hi, I was working on moving an old site from php to django and found that I was using INSERT...SELECT... queries in a couple places. The point of these queries is to take a group of rows using the SELECT subquery and insert them all at once without having to iterate over them in your code. Idea

Re: admin login returns 500 error

2008-03-26 Thread Malcolm Tredinnick
On Wed, 2008-03-26 at 08:10 -0700, Floyd Arguello wrote: > Ok, I'll help you help me :) > > Running latest svn on Apache 2.2 with mod_python - error log doesn't > show a thing. The 500 error really isn't too helpful... just tells me > it's something with the server. It might not be too helpf

Re: Unexpected TypeError in m2m relationship

2008-03-26 Thread J. Cliff Dyer
On Wed, 2008-03-26 at 16:28 -0400, Karen Tracey wrote: > > > Thanks. Models file at: http://dpaste.com/41448/ > > > > That models.py has a couple of problems that make me think it can't > really be the one you are running with. __str__ for Artifact

newforms image upload and validation

2008-03-26 Thread [EMAIL PROTECTED]
I'm using an avatar imagefiled in the model and have defined an imagefield in the registration form I'm using for the user to sign up. avatar is not a required field (both in the form as well as in the model) I've got validation included in the Registration Form for the uploaded image size: def

Re: user authentication permissions

2008-03-26 Thread Karen Tracey
On Wed, Mar 26, 2008 at 4:49 PM, <[EMAIL PROTECTED]> wrote: > > reading chapter 12 of the django book ( > http://www.djangobook.com/en/1.0/chapter12/ > ) to try and figure out the best way to use the User system to make > sure users are registered and signed in before viewing page content. > > I'm

Re: What happened to the template engine in SVN?

2008-03-26 Thread Malcolm Tredinnick
On Wed, 2008-03-26 at 06:24 -0700, Vincent Foley wrote: > Hello, > > I have been looking at the Jinja templating engine lately to be used > in our web sites. Their web site claims that it is in average three > times faster than Django's templating engine. I decided to see that > for myself by

Re: ManyToManyField: Error in Admin Interface

2008-03-26 Thread Karen Tracey
On Tue, Mar 25, 2008 at 9:08 AM, tom <[EMAIL PROTECTED]> wrote: > > Hi, > > I try to add some data through the Admin interface but I get an SQL > Error when I try to add a ManyToMany Relation. > > The model: > class Artist(models.Model): >name = models.CharField(max_length=200, blank=True) >

Re: ManyToManyField: Error in Admin Interface

2008-03-26 Thread Karen Tracey
On Tue, Mar 25, 2008 at 9:08 AM, tom <[EMAIL PROTECTED]> wrote: > > Hi, > > I try to add some data through the Admin interface but I get an SQL > Error when I try to add a ManyToMany Relation. > > The model: > class Artist(models.Model): >name = models.CharField(max_length=200, blank=True) >

Re: Cookie-handling for django apps on subdomains, and failing gracefully

2008-03-26 Thread Joe Murphy
Okay, found this, which is pretty relevant: http://groups.google.com/group/django-users/msg/204d91beb2e2344b and this, which is tangential: http://code.djangoproject.com/ticket/2806 ...going to see if python2.5 deals with this any better... --~--~-~--~~~---~--~~ Yo

user authentication permissions

2008-03-26 Thread cmccomas80
reading chapter 12 of the django book ( http://www.djangobook.com/en/1.0/chapter12/ ) to try and figure out the best way to use the User system to make sure users are registered and signed in before viewing page content. I'm currently using date_based generic views, here's my urls.py http://dpas

Re: Forms and Models question

2008-03-26 Thread didier rano
It is not my case, because I have only one form, and there is an one-to-many relationship between form and model. 2008/3/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Check out this guide: > http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ > > On Mar

Re: Unexpected TypeError in m2m relationship

2008-03-26 Thread Karen Tracey
On Wed, Mar 26, 2008 at 3:47 PM, J. Cliff Dyer <[EMAIL PROTECTED]> wrote: > On Wed, 2008-03-26 at 15:08 -0400, Karen Tracey wrote: > > > > The "TypeError: Cannot resolve keyword 'display' into field" is hit > > before any SQL is executed for the call that triggered it. I believe > > this SQL SELE

Re: Forms and Models question

2008-03-26 Thread [EMAIL PROTECTED]
Check out this guide: http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ On Mar 26, 3:02 pm, "didier rano" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a model like that: > > REF(Model) > M2(Model): > title > ForeignKey(REF) > > I need to create a fo

Trouble running dev server after upgrade to Leopard.

2008-03-26 Thread Emil
I recently upgraded from OS X Tiger to 10.5 Leopard. I've been trying for the last two days to get my Django development setup working again. There seems to be a row of pitfalls involved in this but I think I've gotten at least a part of the way. Right now, I get the "No module named ..."-error w

Forms and Models question

2008-03-26 Thread didier rano
Hi, I have a model like that: REF(Model) M2(Model): title ForeignKey(REF) I need to create a form with M2Form(Form): title MultipleChoice(REF) This form should generate many M2 with the same title. Is it possible to use NewForms for it ? Didier Rano --~--~-~--~~-

Re: Unexpected TypeError in m2m relationship

2008-03-26 Thread J. Cliff Dyer
On Wed, 2008-03-26 at 15:08 -0400, Karen Tracey wrote: > On Wed, Mar 26, 2008 at 2:43 PM, J. Cliff Dyer <[EMAIL PROTECTED]> > wrote: > > On Wed, 2008-03-26 at 14:08 -0400, J. Cliff Dyer wrote: > > I've got a funky error when traversing a m2m relationship. > > >

Cookie-handling for django apps on subdomains, and failing gracefully

2008-03-26 Thread Joe Murphy
Hi, I'm moving an app I've been building from its test environment to production. The production environment url is, say, production.denverpost.com . The problem I've got is that there are cookies set by www.denverpost.com, and some of those cookies are set to just live at denverpost.com . The co

Re: Unexpected TypeError in m2m relationship

2008-03-26 Thread Karen Tracey
On Wed, Mar 26, 2008 at 2:43 PM, J. Cliff Dyer <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-03-26 at 14:08 -0400, J. Cliff Dyer wrote: > > I've got a funky error when traversing a m2m relationship. > > > > TypeError: Cannot resolve keyword 'display' into field > > > > Code snippet and full tracebac

Re: Log a user in after registration?

2008-03-26 Thread truebosko
Woohoo .. simple enough, totally did not remember that :) Thanks, works great now On Mar 26, 2:02 pm, shabda <[EMAIL PROTECTED]> wrote: > You need to call authenticate() before you can call > login()http://www.djangoproject.com/documentation/authentication/#how-to-log... > > On Mar 26, 10:52 pm,

Re: Unexpected TypeError in m2m relationship

2008-03-26 Thread J. Cliff Dyer
On Wed, 2008-03-26 at 14:08 -0400, J. Cliff Dyer wrote: > I've got a funky error when traversing a m2m relationship. > > TypeError: Cannot resolve keyword 'display' into field > > Code snippet and full traceback here: http://dpaste.com/41417/ > > Anyone have any ideas where this is coming from

Re: How do you make a CMS in Django (trying to get the big picture)?

2008-03-26 Thread Jeff Anderson
jmDesktop wrote: I'm not really asking you for steps. I'm trying to understand why I'm using Django. I started out wanting to learn Python, and needing to do more web than anything, eventually deciding on Django. I keep reading that Django can help you make your own CMS, which is what I want.

Re: Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-03-26 Thread Davorin
Hmm, I thought the two tricks will get my Django working, but instead I got this: [EMAIL PROTECTED]:~/django-projects$ django-admin startproject myproject The program 'django-admin' is currently not installed. You can install it by typing: sudo apt-get install python-django bash: django-admin: c

Re: Error with database encoding in UTF8

2008-03-26 Thread Karen Tracey
On Wed, Mar 26, 2008 at 10:10 AM, sabrina.miller <[EMAIL PROTECTED]> wrote: > I have a little problem. My data base is a mysql ENGINE=MyISAM > CHARSET=utf8. I'm using Django revision: 6411 > > mysql> select id,name from core_category; > ++--+ > | id | name

Re: Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-03-26 Thread jeffself
bobhaugen wrote: > Following http://www.djangoproject.com/documentation/install/ > > I'm stuck at the steps of setting up the symlinks to django. > Step 3. ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django > Step 4. ln -s `pwd`/django-trunk/django/bin/django-admin.py /usr/local/ > bin > >

Re: Newbie trying to install django-trunk from svn on Ubuntu 7.10

2008-03-26 Thread Davorin
:blush: Forgot to type django-admin.py ... I saw that just after I posted :( OK, it works with trunk versin, yeeey. On Mar 26, 7:06 pm, Davorin <[EMAIL PROTECTED]> wrote: > Hmm, I thought the two tricks will get my Django working, but instead > I got this: > > [EMAIL PROTECTED]:~/django-project

Unexpected TypeError in m2m relationship

2008-03-26 Thread J. Cliff Dyer
I've got a funky error when traversing a m2m relationship. TypeError: Cannot resolve keyword 'display' into field Code snippet and full traceback here: http://dpaste.com/41417/ Anyone have any ideas where this is coming from? --~--~-~--~~~---~--~~ You received

Re: Log a user in after registration?

2008-03-26 Thread shabda
You need to call authenticate() before you can call login() http://www.djangoproject.com/documentation/authentication/#how-to-log-a-user-in On Mar 26, 10:52 pm, truebosko <[EMAIL PROTECTED]> wrote: > I want to log a user in after they have registered on my site. > > Right now, I am using django-r

Re: tutorial __str__() method not working

2008-03-26 Thread Erik Vorhes
It looks like the issue is one of indentation. There's nothing for "self" to refer to if the method isn't part of the class. --And you're probably better off using __unicode__ than __str__ Try: class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateF

Log a user in after registration?

2008-03-26 Thread truebosko
I want to log a user in after they have registered on my site. Right now, I am using django-registration to handle user registration but it is modified to not have activation. I know it doesn't really matter what I am using as all the login is handled by django.contrib.auth I've looked in the fi

Re: tutorial __str__() method not working

2008-03-26 Thread Evert Rol
> I'm just going through the mysite tutorial and can't seem to get the > __str__() method to work when adding it to the two classes, I still > get []. > > polls/models.py: > > from django.db import models > import datetime > > class Poll(models.Model): >question = models.CharField(maxlength=20

Re: How do you make a CMS in Django (trying to get the big picture)?

2008-03-26 Thread David Reynolds
On 26 Mar 2008, at 3:16 pm, jmDesktop wrote: > > I'm not really asking you for steps. I'm trying to understand why I'm > using Django. I started out wanting to learn Python, and needing to > do more web than anything, eventually deciding on Django. I keep > reading that Django can help you mak

Re: tutorial __str__() method not working

2008-03-26 Thread Tim Sawyer
Looks like your indentation is wrong (assuming it's not just a copy/paste issue). Remember python code needs to be indented correctly in order to work. Your def __str__(self): line needs to start at the same indentation as the attributes (question/pub_date) inside your class. Tim. On Wednes

Re: How to do background processing with Django

2008-03-26 Thread Joseph Heck
You can certainly hide this additional complexity with your application either using Django as a pass through or configuring up something with a reverse proxy in Apache or such. There's no reason that I can think of that the complexity of maintaining a queueing system for asynchronous processing w

Re: help

2008-03-26 Thread Joseph Heck
The docs at http://www.djangoproject.com/documentation/i18n/ really do outline what you need to do. make-messages.py can take a little tweaking to work properly under Win32 (i.e. instead of invoking ./make-messages.py you invoke python make-messages.py), but it all works quite smoothly. -joe On

tutorial __str__() method not working

2008-03-26 Thread [EMAIL PROTECTED]
Hello, I'm just going through the mysite tutorial and can't seem to get the __str__() method to work when adding it to the two classes, I still get []. polls/models.py: from django.db import models import datetime class Poll(models.Model): question = models.CharField(maxlength=200) pub

need help

2008-03-26 Thread AlexGor
need help! visit site http://www.cyberbeg.com/m.php?id=19447 --~--~-~--~~~---~--~~ 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: User created in postgresql is not found when Adding Data to the API.

2008-03-26 Thread Thomas Guettler
Hi, I use the same name for database user and linux user. file pg_hba.conf: (unchanged from SuSE default) {{{ # "local" is for Unix domain socket connections only local all all trust }}} {{{ # in settings.py import os import pwd USER=pwdtuple[0] DATABASE_

Re: customize forms

2008-03-26 Thread Rocio Figueroa
2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>: > > 2008/3/26, Rocio Figueroa <[EMAIL PROTECTED]>: > > > > > 2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>: > > > > > > > > You could generate the form based on the model: > > > > > > UsuarioForm = forms.models.form_for_model(Usu

Re: Using a Read-Only model for data, second database for "django stuff"

2008-03-26 Thread James Bennett
On Wed, Mar 26, 2008 at 11:26 AM, James Bennett <[EMAIL PROTECTED]> wrote: > To transfer data to another DB, simply import the appropriate database > adapter and grab a cursor, then starting INSERT'ing or UPDATE'ing > away. (or, if you *must* use the ORM, use the serializer to spit out the Bug

Re: Using a Read-Only model for data, second database for "django stuff"

2008-03-26 Thread James Bennett
On Wed, Mar 26, 2008 at 8:08 AM, Jesse Noller <[EMAIL PROTECTED]> wrote: > I've been handed the task of doing a bit of data-mining on a bugzilla > database, and rather than work through the straight SQL, or using the > somewhat awful bugzilla query interface, I would much rather build out > my

Re: Howto execute custom SQL from the command line

2008-03-26 Thread Amit Ramon
You can do that easily enough without django... one way is to do: mysql -u -p < file.sql the other is to go into mysql and there do: \. file.sql You can open a mysql shell with: manage.py dbshell --- Amit * Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-03-25 17:32 +0100]: > > Hello, >

Re: Object paginator deprecated?

2008-03-26 Thread canen
This might help http://www.djangoproject.com/documentation/models/pagination/ On Mar 26, 3:16 am, shabda <[EMAIL PROTECTED]> wrote: > What are he new capbilities of the new paginator? Is there some wiki > page tracking the deprications, like the backwardsincompatible changes? --~--~-~--~-

Re: 'classes': 'collapse' not providing 'click to expand' link

2008-03-26 Thread Josh
Ok. I determined that the problem was with my jsi18n URL. Going to / admin/jsi18n/ got me a 404. I figured the problem was related to some custom admin URLs I had written. So I commented out all my custom admin URLs and everything started working again. Here's where it gets weird. I uncommented t

Re: How often do you update your django?

2008-03-26 Thread Thierry
Svn externals for django, so i update pretty much continously. Can't go without those sweet and new feautures :) Besides Django trunk is pretty stable --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: How to do background processing with Django

2008-03-26 Thread shabda
Not the end user but the people who would be downloading this application, and want to use this, in a shared hosting environment. On Mar 26, 7:39 pm, "Ian Lawrence" <[EMAIL PROTECTED]> wrote: > Hi > > > are django and apache. Adding a HTTP server or configuring django- > > queuing is too painfu

Need advice on design of models

2008-03-26 Thread jeffself
I'm creating an election site and I have created the following 4 main classes: class Election(models.Model): election_name = models.CharField(max_length=100, unique=True) slug = models.SlugField(prepopulate_from=("election_name",), unique=True) election_date = models.DateField() clas

Re: 'classes': 'collapse' not providing 'click to expand' link

2008-03-26 Thread Josh
Got some more info. Apparently I'm getting a 'gettext is not defined' error in my JavaScript. This is not only affecting collapsing, but all JavaScript in the admin interface. So things like date widgets are not working either. Hopefully this should make it much easier to track down and fix the

Re: customize forms

2008-03-26 Thread Esteban Saavedra L.
2008/3/26, Rocio Figueroa <[EMAIL PROTECTED]>: > > 2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>: > > > > > You could generate the form based on the model: > > > > UsuarioForm = forms.models.form_for_model(Usuario) > > > > And then customize each field both at the views and the templa

Re: customize forms

2008-03-26 Thread Rocio Figueroa
2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>: > > You could generate the form based on the model: > > UsuarioForm = forms.models.form_for_model(Usuario) > > And then customize each field both at the views and the template to > put an order or special effect > howto i customize each field

Re: admin login returns 500 error

2008-03-26 Thread jmDesktop
Does everything work with runserver? On Mar 26, 11:10 am, Floyd Arguello <[EMAIL PROTECTED]> wrote: > Ok, I'll help you help me :) > > Running latest svn on Apache 2.2 with mod_python - error log doesn't > show a thing. The 500 error really isn't too helpful... just tells me > it's something with

How do you make a CMS in Django (trying to get the big picture)?

2008-03-26 Thread jmDesktop
I'm not really asking you for steps. I'm trying to understand why I'm using Django. I started out wanting to learn Python, and needing to do more web than anything, eventually deciding on Django. I keep reading that Django can help you make your own CMS, which is what I want. Are there any exa

Re: admin login returns 500 error

2008-03-26 Thread Floyd Arguello
Ok, I'll help you help me :) Running latest svn on Apache 2.2 with mod_python - error log doesn't show a thing. The 500 error really isn't too helpful... just tells me it's something with the server. Using latest stable Postgres and Python 2.4.3. RHEL5 64bit. Using lighttpd to serve the media

Anyone have experience with Satchmo in a shared hosting environment?

2008-03-26 Thread Brandon Taylor
Hello everyone, I'm about to embark on a Django/Satchmo project and was interested to hear your experiences with deploying this combination into a shared environment. Thanks, Brandon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How to do background processing with Django

2008-03-26 Thread Ian Lawrence
Hi > are django and apache. Adding a HTTP server or configuring django- > queuing is too painful for the average user. :( what does the end user have to do with this? you have a server by doing wget http://svn.cherrypy.org/trunk/cherrypy/wsgiserver/__init__.py -O wsgiserver.py and setting up xm

Re: moving django users to LDAP

2008-03-26 Thread Dan Ellis
On Mar 20, 7:44 pm, "Katz, Aryeh \(akatz\)" <[EMAIL PROTECTED]> wrote: > The downside of this method is that the user can still authenticate against > Django. I set my passwords in Django to something like 'get password from LDAP'. This is an invalid hash, so no one would ever be able to authenti

Error with database encoding in UTF8

2008-03-26 Thread sabrina.miller
I have a little problem. My data base is a mysql ENGINE=MyISAM CHARSET=utf8. I'm using Django revision: 6411 mysql> select id,name from core_category; ++--+ | id | name | ++--+ | 1 | a�os ha que no te v� | | 2 | ámigo que onda!!!

Error with database encoding in UTF8

2008-03-26 Thread sabrina.miller
I have a little problem. My data base is a mysql ENGINE=MyISAM CHARSET=utf8. I'm using Django revision: 6411 mysql> select id,name from core_category; ++--+ | id | name | ++--+ | 1 | a�os ha que no te v� | | 2 | ámigo que onda!!!

Re: customize forms

2008-03-26 Thread Esteban Saavedra L.
Hi 2008/3/25, Rocio Figueroa <[EMAIL PROTECTED]>: > > Hello friends of the list, and I started to do some testing Newforms. > I tried to generate forms from the model automatically and Also > customizing forms manually (by specifying Characteristics of each > field). > > Now my query is as f

Re: OT: Django logo

2008-03-26 Thread Chris Czub
Yes, I am 95% sure the line below is Verdana - note the shape of the a, o, and d. On Tue, Mar 25, 2008 at 10:01 PM, Ned Batchelder <[EMAIL PROTECTED]> wrote: > The "perfectionists with deadlines" tagline is also in Prokyon, but a > different weight (regular or light). The line below that on the

Re: 'classes': 'collapse' not providing 'click to expand' link

2008-03-26 Thread Josh
As far as I can tell, the javascript is importing properly, and the URL that it's including from in the HTML output works when I put it straight into my browser. Here's the full definition of a model including the fieldset definitions. When I view it in the admin interface the 'Details' field is c

Re: Django ad server?

2008-03-26 Thread Josh
I figured that would be the case, was mostly just checking for a Django based one. Thanks. :) On Mar 26, 9:04 am, Zack <[EMAIL PROTECTED]> wrote: > I'm not aware of any django based ad servers. Why would there be a > problem using OpenX? The output of a django site is still HTML. You > just need

What happened to the template engine in SVN?

2008-03-26 Thread Vincent Foley
Hello, I have been looking at the Jinja templating engine lately to be used in our web sites. Their web site claims that it is in average three times faster than Django's templating engine. I decided to see that for myself by designing a few, simple test cases. The biggest surprise came not f

Re: How to do background processing with Django

2008-03-26 Thread shabda
The problem with these aproaches is that they add an extra layer of things to do. I want to package it so that the only required things are django and apache. Adding a HTTP server or configuring django- queuing is too painful for the average user. :( On Mar 26, 2:28 pm, Graham Dumpleton <[EMAIL P

Forms not same fields than Models

2008-03-26 Thread didier rano
Hi, I need to have a Form (newforms) with different fields than my Model. In fact, one form instance will generate several models instances. Haves you seen it before ? How create and update it ? Thanks -- Didier Rano [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You r

  1   2   >