Video sharing social network Teenwag seeks great Python hackers we ll wear Python T-shirts at startup school $100K $5K sign on $2k referral

2007-03-23 Thread krypton
Video sharing social network Teenwag seeks great Python hackers we ll wear Python T-shirts at startup school $100K $5K sign on $2k referral http://www.teenwag.com/showvideo/352 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Announcing Django 0.96!

2007-03-23 Thread [EMAIL PROTECTED]
Well done everyone! Take the weekend off :-) --Simon --~--~-~--~~~---~--~~ 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

Re: Combine two queries/models?

2007-03-23 Thread Andrew M.
It worked great... finally. I really appreciate it. I learned something too, so it's even better. Thanks again, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Announcing Django 0.96!

2007-03-23 Thread Kenneth Gonsalves
On 24-Mar-07, at 3:52 AM, David M. Besonen wrote: >> There are also a few backwards-incompatible changes, documented >> in the release notes[1] > > what are the django devs' intentions wrt backwards-compatibility? > > eg. will backwards-compatibility be guaranteed for any 1.xx > release? that i

Dynamically List By Category

2007-03-23 Thread makebelieve
Ok, from a previous post I've found that the best way to list items by a category is to use _set: {% for c in categories %} {{ c }} {% for i in c.item_set.all %} {{ v }} {% endfor %} {% endfor %} However, what if I want to limit the items based upon one of their

Re: Different subdomain for each application (again)

2007-03-23 Thread Michael Cuddy
I have exactly the same issue. Here's how I dealt with it ... First, the threadlocals module, this is used to keep track of the site the user is browsing, once it's determined ... mware/threadlocals.py try: from threading import local except ImportError: from django.utils._th

Re: Announcing Django 0.96!

2007-03-23 Thread mariuss
I downloaded 0.96 and installed it using "python setup.py install" But it is still Django 0.95.1 (previously installed) that shows up. How can I uninstall the old version? Thanks, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Application for Google Summer of Code

2007-03-23 Thread Nathan R. Yergler
On 3/23/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > > I've started to write an application for Google Summer of > > Code, and I would LOVE any feedback you can possibly give me. > > Please comment on both language and content. > > I guess my first concern/interest/question would be "what makes >

View this page "Freelance django developer needed"

2007-03-23 Thread [EMAIL PROTECTED]
Click on http://groups.google.com/group/django-users/web/freelance-django-developer-needed - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Application for Google Summer of Code

2007-03-23 Thread Tim Chase
> I've started to write an application for Google Summer of > Code, and I would LOVE any feedback you can possibly give me. > Please comment on both language and content. I guess my first concern/interest/question would be "what makes your proposal different from {{revision_control_system}}?" Si

Re: MySQL-problem with NULL values (svn rev. 4788)

2007-03-23 Thread Frank Tegtmeyer
Malcolm Tredinnick <[EMAIL PROTECTED]> writes: > http://www.djangoproject.com/documentation/model-api/#overriding-default-model-methods > . Found it two minutes before :) Many thanks! Regards, Frank --~--~-~--~~~---~--~~ You received this message because you ar

Re: MySQL-problem with NULL values (svn rev. 4788)

2007-03-23 Thread Malcolm Tredinnick
On Fri, 2007-03-23 at 23:31 +0100, Frank Tegtmeyer wrote: > Hi Malcolm, > > thanks for your replies. > > > In your form processing code, check for empty strings and update it with > > the default value if you wish. > > I use the create_object generic view. I looked for the mentioned > pre_save

Re: MySQL-problem with NULL values (svn rev. 4788)

2007-03-23 Thread Frank Tegtmeyer
Hi Malcolm, thanks for your replies. > In your form processing code, check for empty strings and update it with > the default value if you wish. I use the create_object generic view. I looked for the mentioned pre_save hook in all the docs but couldn't find any hint how to use this. I assume pr

Re: Announcing Django 0.96!

2007-03-23 Thread David M. Besonen
On Fri, March 23, 2007 2:32 pm, James Bennett wrote: > There are also a few backwards-incompatible changes, documented > in the release notes[1] what are the django devs' intentions wrt backwards-compatibility? eg. will backwards-compatibility be guaranteed for any 1.xx release? --~--~---

Re: Announcing Django 0.96!

2007-03-23 Thread Jeremy Dunck
Sorry, too fast with the tab and enter sequence. :) Ahem. Please see http://www.djangoproject.com/documentation/api_stability/ But for a short answer, yes, at 1.0, there is a commitment to backwards compatibility. Some APIs are already stable, and it's documented at the previous URL. Cheers

Re: Announcing Django 0.96!

2007-03-23 Thread Jeremy Dunck
David, On 3/23/07, David M. Besonen <[EMAIL PROTECTED]> wrote: > > On Fri, March 23, 2007 2:32 pm, James Bennett wrote: > > > There are also a few backwards-incompatible changes, documented > > in the release notes[1] > > what are the django devs' intentions wrt backwards-compatibility? > > eg.

Re: MySQL-problem with NULL values (svn rev. 4788)

2007-03-23 Thread Malcolm Tredinnick
On Fri, 2007-03-23 at 22:15 +0100, Frank Tegtmeyer wrote: [...] > Questions: > > 1. Why is the default value in the database not set to 0? The 'default' attribute in Django is intentionally not passed through as a database constraint when the table is constructed. This is partly because there ar

Re: How to add a calendar to my app

2007-03-23 Thread Masida
I've used the snippet on the following site: http://www.silenus.nl/calendar/ (It's Dutch though, but it should adapt to the language you've specified in your settings.py) - Matthias Pythoni wrote: > Thank you for the posting. > Is there a working example of the calendar where I can test it? >

Application for Google Summer of Code

2007-03-23 Thread Christoffer Carlborg
Howdy everybody, I've already posted message similar to this one in django-devel, but I hope to get even more feedback by posting here too. :-) I've started to write an application for Google Summer of Code, and I would LOVE any feedback you can possibly give me. Please comment on both languag

Re: How to handle a preview page

2007-03-23 Thread Malcolm Tredinnick
On Fri, 2007-03-23 at 16:31 -0400, Todd O'Bryan wrote: > I'm trying to create the following workflow for a website where teachers > can create questions for their students: > > 1. The teacher click a link to create a new question. > 2. A form appears where the teacher can enter information, inclu

Re: syncdb & postgreSQL

2007-03-23 Thread Malcolm Tredinnick
On Fri, 2007-03-23 at 17:54 +, jewe wrote: > Hi everbody, > > I'm trying to create tables with help of models (use postgreSQL; > engin: postgresql_psycopg2). > My model (part): > > ... > class Team(models.Model): > team_id = models.IntegerField(primary_key=True) > name= models.CharFi

Re: How to add a calendar to my app

2007-03-23 Thread Pythoni
Thank you for the posting. Is there a working example of the calendar where I can test it? Thank you. L. On Mar 23, 10:14 pm, "Masida" <[EMAIL PROTECTED]> wrote: > Ok, here you go:http://www.djangosnippets.org/snippets/129/ > > Hope you find it usefull. > If you have any questions, do not hesita

Announcing Django 0.96!

2007-03-23 Thread James Bennett
We're pleased to announce the release of Django 0.96 today; this release involves cleanup and stabilization of features from the 0.95 release, along with some nice new features: an integrated testing framework, the first release of the newforms library, and a ton of useful improvements. There are

Re: Paginating default list view

2007-03-23 Thread Malcolm Tredinnick
On Fri, 2007-03-23 at 17:14 +0100, Alessandro Ronchi wrote: > Hi to all. > > I've add a generic list view with: > # Picture list: > (r'^museo/galleria/(?P[0-9]+)/$', > 'django.views.generic.list_detail.object_list', > dict(picture_list_info)), > > and I want to add previous and next link

Re: Combine two queries/models?

2007-03-23 Thread Malcolm Tredinnick
On Fri, 2007-03-23 at 21:09 +, Andrew M. wrote: > I lied, I don't know what I'm doing... > > Malcolm/Anyone with the time to provide some, or all :-), example code > for the above, I would really appreciate it... The simplest solution would be something like this: You must have a way to com

Re: tuples into a select list

2007-03-23 Thread Marcelo Ramos
2007/3/23, Greg Donald <[EMAIL PROTECTED]>: > > I have some tuples like this: > > categories = ( ( 'a', 'abc' ), ( 'b', 'def' ) ) > > How can I build select options from that in a template? > > When I try this: > > {% for c in categories %} > {{ c[1] }} > {% endfor %} Try: {{c|slice:"1:2"|first}

MySQL-problem with NULL values (svn rev. 4788)

2007-03-23 Thread Frank Tegtmeyer
Hi, I just upgraded my two months old Django installation, MySQLdb was already at the required level. I have now the problem that MySQL-warnings come through and throw a Warning exception. The reason is that some smallint values are filled with empty strings when a choice-Field got no selection

Re: How to add a calendar to my app

2007-03-23 Thread Masida
Ok, here you go: http://www.djangosnippets.org/snippets/129/ Hope you find it usefull. If you have any questions, do not hesitate to contact! Ciao, - Matthias On Mar 23, 8:49 pm, "Pythoni" <[EMAIL PROTECTED]> wrote: > Please post it. > Thank you > L. > > On Mar 23, 7:01 pm, "Masida" <[EMAIL PRO

Re: 404 Error custumization

2007-03-23 Thread SlavaSh
I'm calling {{ request.method }} end it's empty while {{ request_path }} returns request.path It's realy strange On Mar 23, 8:46 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > Thanks, it solves the problem partially. > > When I put 404.html in the templates root, I still cannot to pass > > request

Re: Combine two queries/models?

2007-03-23 Thread Andrew M.
I lied, I don't know what I'm doing... Malcolm/Anyone with the time to provide some, or all :-), example code for the above, I would really appreciate it... Thanks a lot, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Combine two queries/models?

2007-03-23 Thread Andrew M.
Thanks for the help. I'll see what I can do, but I might be back. I don't know much Python... Thanks, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

How to handle a preview page

2007-03-23 Thread Todd O'Bryan
I'm trying to create the following workflow for a website where teachers can create questions for their students: 1. The teacher click a link to create a new question. 2. A form appears where the teacher can enter information, including formatting information in some kind of wiki-like language. A

Re: How to add a calendar to my app

2007-03-23 Thread Pythoni
Please post it. Thank you L. On Mar 23, 7:01 pm, "Masida" <[EMAIL PROTECTED]> wrote: > I've written a very simple calendar template_tag, if you're interested > I can post it here or put it on djangosnippets.org. > > Ciao, > - Matthias > > > > Pythoni wrote: > > How much difficult is to add calend

Re: post_save and M2M

2007-03-23 Thread RajeshD
> > Maybe the related objects are manipulated in a post_save signal, but > after 'my' post_save, so I can't see them at all. Yes. The post_save signal is sent out right at the end of the save method of your main model object. The M2M objects are saved later than this. > Any clues? 1. Use your o

Re: Custom SQL - Do I need to close the connection?

2007-03-23 Thread RajeshD
> Do I need to close the connection after I'm done with the results? You shouldn't have to. Django closes the connection at the end of the request. > I've also recently started receiving 'too many connections' errors... > and thought this might be the reason? What database are you using? Can yo

Different subdomain for each application (again)

2007-03-23 Thread Tom Smith
A while ago Doug and Eivind asked about using subdomains for each app. I'd like to do this, but in the example they had a stab at they were using Apache whereas I'm using Lighttpd... ideally I'd like subdomainone.wherever.com and subdomaintwo.wherever.com to pass through without anything AFT

Re: ERROR: current transaction is aborted, commands ignored until end of transaction block SET TIME ZONE 'America/Chicago'

2007-03-23 Thread RajeshD
> > 1) /var/log/pgsql is empty... The PgSQL log should not be empty. 1. Check that pgsql is actually running :) 2. Check that pgsql is not set to log to your system log (syslog) Once you see the pg log, it will show you which query failed. --~--~-~--~~~---~--~--

Re: tracking per-object-permissions branch, merging in from trunk, and fixing problems, adding features.

2007-03-23 Thread Scanner
On Mar 22, 5:50 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote: > I'm definitely interested in the results. Why don't you apply to get > check-in permissions on the per-object-permissions branch? That way it > can be accessible to the whole django community. Contact Jacob > Kaplan-Moss to get

Date field widget for generic views...

2007-03-23 Thread mediumgrade
I am writing an app that makes heavy use of generic views. I have several forms which include date fields and I want to know how to attach a widget to the field for entering the date (like the one used in the admin site). Am I making sense? --~--~-~--~~~---~--~~

post_save and M2M

2007-03-23 Thread Enrico
Hi, I want to access the selected values in a M2M field after saving. But overriding the save method or using a post_save signal, I always get an empty list. Maybe the related objects are manipulated in a post_save signal, but after 'my' post_save, so I can't see them at all. Any clues? Best

Re: How to add a calendar to my app

2007-03-23 Thread Masida
I've written a very simple calendar template_tag, if you're interested I can post it here or put it on djangosnippets.org. Ciao, - Matthias Pythoni wrote: > How much difficult is to add calendar ,like that in the admin , to my > templates? > Or is there an easier way to add any different calen

syncdb & postgreSQL

2007-03-23 Thread jewe
Hi everbody, I'm trying to create tables with help of models (use postgreSQL; engin: postgresql_psycopg2). My model (part): ... class Team(models.Model): team_id = models.IntegerField(primary_key=True) name= models.CharField(maxlength=100) class Player(models.Model): player_id = model

Re: tuples into a select list

2007-03-23 Thread Doug Van Horn
> > How can I build select options from that in a template? > I think your subscripting syntax is wrong. Try: {{ c.1 }} Using newforms makes it pretty straight forward as well: FOODS = ( ('spam', 'The Spam'), ('ham', 'The Ham'), ('eggs', 'The Eggs')) class FoodForm(forms.Form): food =

Re: tuples into a select list

2007-03-23 Thread Greg Donald
On 3/23/07, Greg Donald <[EMAIL PROTECTED]> wrote: > Could not parse the remainder: [0] Solved. I found it was c.0 and c.1 that I needed. -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

How to add a calendar to my app

2007-03-23 Thread Pythoni
How much difficult is to add calendar ,like that in the admin , to my templates? Or is there an easier way to add any different calendar to my templates? Thank you for help L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Paginating default list view

2007-03-23 Thread Alessandro Ronchi
Hi to all. I've add a generic list view with: # Picture list: (r'^museo/galleria/(?P[0-9]+)/$', 'django.views.generic.list_detail.object_list', dict(picture_list_info)), and I want to add previous and next links. It seems I must write an absolute url, in template, with: {% if has_previo

tuples into a select list

2007-03-23 Thread Greg Donald
I have some tuples like this: categories = ( ( 'a', 'abc' ), ( 'b', 'def' ) ) How can I build select options from that in a template? When I try this: {% for c in categories %} {{ c[1] }} {% endfor %} I get this error: Could not parse the remainder: [0] Thanks, -- Greg Donald http://des

Admin Quick Menu

2007-03-23 Thread Enrico
I've changed my 'admin/base.html' template to show a quick menu of apps/models. It's easier to switch between pages without having to go back to the admin home. It works on Firefox and maybe on other non-IE browsers, it uses only CSS but shouldn't be hard to use some Javascript to make it work o

Buying and selling Electronics on the internet

2007-03-23 Thread New and used Electronics
Browsing the internet for the best and cheap prices on electronics is not easy. However, to enjoy the power of the internet, it's easy as www.amirelectronics.com. Buying is very cheap, selling is too easy. --~--~-~--~~~---~--~~ You received this message because yo

Re: Django Powered Tabblo to be acquired by HP

2007-03-23 Thread limodou
On 3/23/07, Ned Batchelder <[EMAIL PROTECTED]> wrote: > > We at Tabblo are of course very excited about the acquisition by HP. > One of the things that HP valued in Tabblo was our ability to innovate > quickly and deliver solid products in a short amount of time. We > definitely feel like Django

Re: 404 Error custumization

2007-03-23 Thread Tim Chase
> Thanks, it solves the problem partially. > When I put 404.html in the templates root, I still cannot to pass > request object information to the template: > > in django/views/defaults.py: > def page_not_found(request, template_name='404.html'): > t = loader.get_template(template_name) >

ordering on a ForeignKey field in the admin

2007-03-23 Thread omat * gezgin.com
I have two models, Artist and Album. I am able to add new albums via the admin interface but the list of artists in the album edit / add pages are not ordered. If I am not getting the documentation wrong, this should be achieved simply by stating the default ordering in the meta class. My (simpli

Re: 404 Error custumization

2007-03-23 Thread SlavaSh
Thanks, it solves the problem partially. When I put 404.html in the templates root, I still cannot to pass request object information to the template: in django/views/defaults.py: def page_not_found(request, template_name='404.html'): t = loader.get_template(template_name) return http.Htt

Re: manage.py startapp suggestions

2007-03-23 Thread Tom Smith
> Unfortunatly given your example, 90% of what you want (urls.py with > static file handling, a media directory, building the actual model) > are things I expressly do NOT want the wizard to do for ME. (I have my > own genapp.py tool I use for creating new apps.) Interesting... I'd like to know wh

Re: 404 Error custumization

2007-03-23 Thread js
Hi. There's no defualt 404 page. http://code.djangoproject.com/ticket/3335 Hope this helps On 3/23/07, SlavaSh <[EMAIL PROTECTED]> wrote: > > How can I use "default" 404 page in Django ? > When I disable debugging i just get an error: > > Mod_python error: "PythonHandler django.core.handlers.

404 Error custumization

2007-03-23 Thread SlavaSh
How can I use "default" 404 page in Django ? When I disable debugging i just get an error: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result

Re: Django Powered Tabblo to be acquired by HP

2007-03-23 Thread Ned Batchelder
We at Tabblo are of course very excited about the acquisition by HP. One of the things that HP valued in Tabblo was our ability to innovate quickly and deliver solid products in a short amount of time. We definitely feel like Django was one of the reasons we were able to do that, and to make

generic view object_list

2007-03-23 Thread paulh
The code of views.generic.list_detail. object_list has the following line: queryset = queryset._clone(), Looking at the rest of the code I can't quite see why this 'cloning' operation takes place, but I have probably missed something. If the code were to read: try: queryset = queryset._clone() e

Re: Trouble setting up Django and Apache

2007-03-23 Thread Graham Dumpleton
On Mar 23, 6:47 pm, "benrawk" <[EMAIL PROTECTED]> wrote: > Thank you again for helping. FYI, I am using Fedora Core 6. I set > 'PythonHandlermod_python.testhandler' in httpd.conf and got a bunch > of info. The sys.path appears to be correct...relevant bits, and then > full text beneath. > > sys.pa

Django Powered Tabblo to be acquired by HP

2007-03-23 Thread Mitja
Just for the records: HP has revealed plans to acquire Tabblo Vyomesh Joshi, EVP at HP said: "By acquiring Tabblo's technology and making it available to companies that host popular websites, HP will be firmly on the path to becoming the print engine of the web." As Ned Batchelder wrote, acquiri