Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Brandon Taylor
Thank you very much to everyone for your help. It took a few tries, but I finally got the paths configured correctly in my setup.conf for psycopyg. I'm working through the first tutorial. Looks like I need to grab the newest Django source from subversion. But, I'm able to create and sync my

Re: Signals Question - Firing off an email after a save

2007-09-02 Thread Jeremy Dunck
On 9/2/07, Jack E. Wilkinson <[EMAIL PROTECTED]> wrote: ... > I've got a very simple model, two databases and I'm using the admin > interface. What I need is when one of the databases gets a change made > to it, for an email to be sent out to a specific group (the group never > changes, however,

Re: Signals Question - Firing off an email after a save

2007-09-02 Thread Thejaswi Puthraya
> I've got a very simple model, two databases and I'm using the admin > interface. What I need is when one of the databases gets a change made > to it, for an email to be sent out to a specific group (the group never > changes, however, the subject and message content should change). Use Django

How to do a recursive inclusion forloop in a django template

2007-09-02 Thread Arik Jones
I have a pages model that has a recursive relationship to itself. Lets say I list only pages that are root parents. In my forloop, how do I display with each root parent page all its children, including children of children as well? Your help and input is greatly appreciated. Thank you!

Hi!

2007-09-02 Thread Uncensored
Check out my recording your sure to get a laugh!! http://www.loudio.com/Podcasts/Psyco-Goes-Nuts-on-the-Cable-Representative-LMFAO.40918 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Signals Question - Firing off an email after a save

2007-09-02 Thread Jack E. Wilkinson
Good day, Being a *VERY* new admirer of Django, I've started an application that I've gotten slightly hung on due to a lack of understanding the documentation. I've got a very simple model, two databases and I'm using the admin interface. What I need is when one of the databases gets a change

redirect with query

2007-09-02 Thread james_027
hi, is there a django/pythonic way to do this return HttpResponseRedirect('/main?app_message=you have no permission on %s vs ' % (function)) can the reverse() help? I think the args and kwargs are for the methods parameters ... Thanks james

Re: web site

2007-09-02 Thread Amirouche
I almost forgot... welcome ! On Sep 3, 5:48 am, Amirouche <[EMAIL PROTECTED]> wrote: > You may find this usefull toohttp://www.djangosites.org/tag/game/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: web site

2007-09-02 Thread Amirouche
You may find this usefull too http://www.djangosites.org/tag/game/ --~--~-~--~~~---~--~~ 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

[ANN] Django Check Constraints

2007-09-02 Thread Thejaswi Puthraya
Hello Django Users, I am happy to announce the release of Django Check Constraints, a Google Summer of Code Project. This project implements Value-based and Range-based constraints in Django's models. The project will help in server side validation at the database-level without writing extra

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Nick Fishman
On Sep 2, 9:37 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > Looks like you're missing some header files... > > Maybe postgres didn't put everything where it needed to be. You also may > need the dev packages for postgres. The problem is, indeed, in the development packages. There's a package

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread James Bennett
On 9/2/07, Brandon Taylor <[EMAIL PROTECTED]> wrote: > I have Python 2.5.1 and Django installed and running on OS X 10.4.10, > but can't seem to get either the Psycopg2 or MySQL-python bindings > installed so I can actually use a database with Django. For Mac, this is the easiest way to get the

Re: Sharing models between applications

2007-09-02 Thread qwerty
You mean like having a "neutral" application? I was thinking in this, is a good solution I just don't wanna miss some already built-in solution for this. Thanks! Angel 2007/9/2, Tim Chase <[EMAIL PROTECTED]>: > > > > I've a projects that should share the db models > > > > I know I can create a

Re: Another UnicodeError: django-registration or send_mail

2007-09-02 Thread James Bennett
On 9/2/07, patrickk <[EMAIL PROTECTED]> wrote: > I´m using django-registration and changed line 80 of models.py from > subject = "Account activation for %s" % current_domain > to > subject = "Account-Aktivierung für %s" % current_domain Try subject = u"Account-Aktivierung für %s" %

Re: WordPress to Django Migration App

2007-09-02 Thread Austin Govella
On 8/31/07, Peter Baumgartner <[EMAIL PROTECTED]> wrote: > My goal for this app was to lower the bar as much as possible for WP > users wanting to try out Django. This is the path of least resistance > for WP users to get their feet wet w/ Django. That's a load of crap. Until deploying Django

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Todd O'Bryan
Looks like you're missing some header files... On Sun, 2007-09-02 at 16:14 -0700, Brandon Taylor wrote: > Hi Todd, > > Here is a copy of my terminal session: > > running install > running build > running build_py > running build_ext > Warning: /bin/sh: line 1: pg_config: command not found

Re: Sharing models between applications

2007-09-02 Thread Tim Chase
> I've a projects that should share the db models > > I know I can create a models.py file in the project's home dir but > manage.py syncdb doesn't read it from there (and I really want to keep > it all on Python code without need to run mysql -u app -p) I've done this in one project by

Sharing models between applications

2007-09-02 Thread [EMAIL PROTECTED]
Hi all, First I'm new to this list, so be patient with me as english isn't my first lang :D I've a projects that should share the db models, I know this is easy as any app can use the models from other app with a simple "from app.models import *" but as those models doesn't really go in any of

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Griffin Caprio
You may need to edit the setup.cfg file to point to the correct location of your pg_config file. For example: /usr/local/pgsql/bin. - Griffin On Sep 2, 2007, at 6:14 PM, Brandon Taylor wrote: > > Hi Todd, > > Here is a copy of my terminal session: > > running install > running build >

Re: Problem in current svn TRUNK

2007-09-02 Thread Peter Nixon
On Tue 28 Aug 2007, Michael Radziej wrote: > On Tue, Aug 28, Michael Radziej wrote: > > On Mon, Aug 27, Peter Nixon wrote: > > > On Wed 11 Jul 2007, Michael Radziej wrote: > > > > Hi, > > > > > > > > you're using the alpha version of SuSE ... well ... there might very > > > > well be a problem

Money: Make $3k in a week!

2007-09-02 Thread john jacob jingleheimer schmidt
Unbelievable and easy money solutions can be found at http://www.digitalyfe.com. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Brandon Taylor
Hi Todd, Here is a copy of my terminal session: running install running build running build_py running build_ext Warning: /bin/sh: line 1: pg_config: command not found building 'psycopg2._psycopg' extension gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - fno-strict-aliasing

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Todd O'Bryan
On Sun, 2007-09-02 at 16:04 -0700, Brandon Taylor wrote: > Hi everyone, > > I have Python 2.5.1 and Django installed and running on OS X 10.4.10, > but can't seem to get either the Psycopg2 or MySQL-python bindings > installed so I can actually use a database with Django. > > I have the latest

Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Brandon Taylor
Hi everyone, I have Python 2.5.1 and Django installed and running on OS X 10.4.10, but can't seem to get either the Psycopg2 or MySQL-python bindings installed so I can actually use a database with Django. I have the latest version of PostgreSQL and MySQL5 installed and running. Can someone

Re: web site

2007-09-02 Thread SmileyChris
On Sep 3, 5:12 am, "Alfredo Alessandrini" <[EMAIL PROTECTED]> wrote: > I'm a newby..:-) > > Is Django good for make a web site like this? > > These are a web site for playing correspondence chess. > > The moves are stored with a database, with information about the players, > tournament,

newsform question

2007-09-02 Thread pinco
Hi, I'm new to Django and I'm evaluating this promising framework by migrating a part of our e-commerce application from rails to Django (and we are really amazed from the results, expecially for the speed of the framework when compared to rails). At the moment I'm implementing a prototype of

Re: truncating posts with markdown

2007-09-02 Thread SmileyChris
On Sep 3, 9:34 am, "Evan H. Carmi" <[EMAIL PROTECTED]> wrote: > Hi, > > I ran across a problem today with the list view of my blog. I am using > markdown to create html tags for my post. In the list view I use the > template tag truncate to cut off the number of words. This leaves open > the html

Re: markdown issue

2007-09-02 Thread Tim Chase
> but this is the same as enter twice, user must remember to end with > one or more space. > > is there other plugin like markdown which is a truely what they is > what they get? Well, it's possible to pre-process the user's input with something like import re add_br_re = re.compile('\n+')

Re: markdown issue

2007-09-02 Thread [EMAIL PROTECTED]
thx ,Johnathan. but this is the same as enter twice, user must remember to end with one or more space. is there other plugin like markdown which is a truely what they is what they get? thx On Sep 2, 11:25 pm, Jonathan Buchanan <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > i use

truncating posts with markdown

2007-09-02 Thread Evan H. Carmi
Hi, I ran across a problem today with the list view of my blog. I am using markdown to create html tags for my post. In the list view I use the template tag truncate to cut off the number of words. This leaves open the html tags that markdown created. I am wondering what ways people get around

Re: web site

2007-09-02 Thread eXt
Yes, Django works with databases very well. Yes, Django has much more to offer than just interaction with db. Yes, Django has nice and really helpful community. No... err.. anybody? ;) Go through a Django's tutorial you'll find at a documentation section on Django's home page, and you should

Re: limit_choices_to has no effect on list_filter?

2007-09-02 Thread patrickk
I already found a patch from 25.2.2007. Don´t know why it´s not in the trunk yet, but it seems to work. Patrick On 2 Sep., 21:27, patrickk <[EMAIL PROTECTED]> wrote: > I thought this has been working, but I´m not sure: > > content_type = models.ForeignKey(ContentType, limit_choices_to = >

limit_choices_to has no effect on list_filter?

2007-09-02 Thread patrickk
I thought this has been working, but I´m not sure: content_type = models.ForeignKey(ContentType, limit_choices_to = {'pk__in': [10, 24, 25, 26, 51]}) ... list_filter = ('createdate', 'updatedate', 'category', 'content_type',) in the filter, alle the content_types show up, although I´ve been

Re: auth.view.login acting very weird

2007-09-02 Thread jfagnani
Thanks, That makes sense. I guess could either patch the login view, AuthenticationForm or call set_test_cookie() on unauthenticated users on their first page view, probably through middleware. One odd thing though: I'm using the sample code from the docs in my login.html template that tests

Another UnicodeError: django-registration or send_mail

2007-09-02 Thread patrickk
With all the UnicodeErrors I got within the last couple of days, I really regret switching to current trunk. However, since there´s no step backwards, I´m going to post another error here: I´m using django-registration and changed line 80 of models.py from subject = "Account activation for %s" %

Re: Obtain a range of values out of the database

2007-09-02 Thread Ramiro Morales
On 9/2/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > Hi there! > > I'd like to obtain a range of possible values out of the database. So, > if for a certain field, the values in the database are [3,7,5,1,8,12,6], > I'd like to push those into a dropdown. No problem with the dropdown > part.

web site

2007-09-02 Thread Alfredo Alessandrini
I'm a newby..:-) Is Django good for make a web site like this? http://www.ficgs.com/ http://www.chessmail.org/ These are a web site for playing correspondence chess. The moves are stored with a database, with information about the players, tournament, rating, ecc.. Alfredo

Obtain a range of values out of the database

2007-09-02 Thread Chris Hoeppner
Hi there! I'd like to obtain a range of possible values out of the database. So, if for a certain field, the values in the database are [3,7,5,1,8,12,6], I'd like to push those into a dropdown. No problem with the dropdown part. But how do I manage to get such a list? And what about sorting it?

Re: markdown issue

2007-09-02 Thread Jonathan Buchanan
[EMAIL PROTECTED] wrote: > i use markdown for beautify content, but i found if enter once, there > will be no new line. > i need to enter twice to get a new line (as ) > > how can i get a new line when enter once, you know our user do not > know they need to enter twice. "When you do want to

markdown issue

2007-09-02 Thread [EMAIL PROTECTED]
i use markdown for beautify content, but i found if enter once, there will be no new line. i need to enter twice to get a new line (as ) how can i get a new line when enter once, you know our user do not know they need to enter twice. thx!

sending mails to users

2007-09-02 Thread T-u-N-i-X
Hey there, I'm currently developing a Django application.. When the user changes his/her mail address, an activation mail is sent. It waits until it sends the email which is not very nice.. So I guess that I should use threading for that purpose.. Any suggestions for this one ? Can't I start a

Re: deleting a foreign key object deletes all related items

2007-09-02 Thread kan
John, Thank you. I have taken up your advice and chosen to override the delete method of people. regards suresh. On Sep 2, 2:38 am, john <[EMAIL PROTECTED]> wrote: > > advisor.delete() I expect should just delete the advisor object and > > change p2.advisor and p4.advisor to None but

Re: Error from URLs with non-ascii characters and that need login

2007-09-02 Thread web-junkie
Okay, I did that. http://code.djangoproject.com/ticket/5308 On Aug 14, 11:09 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-08-10 at 05:05 -0700, web-junkie wrote: > > Okay, after further investigation the error appears for me too, not > > just googlebot. When I browse the site