Re: Tutorial: Can't see my polls

2007-04-13 Thread risomt
Sorry, my mistake Since it wasnt display any data about the poll it also wouldn't display any data about the {{ poll.id }} thus giving a "//" On Apr 14, 11:58 am, "Evan H. Carmi" <[EMAIL PROTECTED]> wrote: > risomt wrote: > >http://binarymanipulations.com:8157/polls/1/vote/displays the Poll's >

request for generic views functionality...

2007-04-13 Thread watusee
Greetings all. I have a problem/concept I've been struggling with. I have an app called News with three models: Article, Press Release and Event. Each model has some fields in common (headline, date, body) and other fields unique to each model. I had initially thought to combine the three models i

Re: Tutorial: Can't see my polls

2007-04-13 Thread Evan H. Carmi
risomt wrote: > http://binarymanipulations.com:8157/polls/1/vote/ displays the Poll's > title and all of the poll's choices correctly - start from there I am not sure of how to start. I have been looking around with my views and models and templates but as the novice I am, I haven't found anything

Re: Search tables related by a foreign key in admin

2007-04-13 Thread Craig Kuhns
Thanks, that did it. Craig On 4/13/07, RajeshD <[EMAIL PROTECTED]> wrote: > > > > > > search_fields = ['question', 'choice_choice'] > > > > Where choice_choice is supposed to be pointing to the choice field in > > the choice model, but something is not working with that. I am sure > > that I am

Mashable Django: web-service access to views

2007-04-13 Thread Ramin Firoozye
I'm trying to figure out the best way to add a web-service API to Django views. Let's say I have an application that offers a calculator. My normal URL scheme might be: /calc/add .../calc/subtract .../calc/multiply .../calc/divide .../calc/clear The ordinary web-interface would return pl

Programmer Career!

2007-04-13 Thread Christine
Find Many Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMA

Re: Search tables related by a foreign key in admin

2007-04-13 Thread RajeshD
> > search_fields = ['question', 'choice_choice'] > > Where choice_choice is supposed to be pointing to the choice field in > the choice model, but something is not working with that. I am sure > that I am missing something very easy and I was wondering if someone > could point it out to me. Tr

Customer manipular checks

2007-04-13 Thread jeffhg58
Hi, I developed a customer manipulator and several of the fields contain the is_required check. The only thing I am having difficulty with is that when I submit the request and one of the fields is not populated the text of all the other fields are removed. I wanted to keep the text for all the f

temp tables

2007-04-13 Thread [EMAIL PROTECTED]
Is there a way to force the db connection to stay open if you are excecuting raw sql that is creating a temp table? When the connection closes...the temp tables go away. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Search tables related by a foreign key in admin

2007-04-13 Thread Craig Kuhns
I am going through the Poll tutorial and i am just messing around with the code so that i understand what is all going on. While doing this the great idea occured to me that one should be able to search for a poll in the admin site based on the choices associated with it. I was looking around an

Re: Loading JSON dump fails

2007-04-13 Thread Tyson
When I ran: ./manage.py dumpdata --indent=2 databases > apps/databases/ initial_data.json The dump loaded just fine into a new DB (it also works with no indent). For some reason, I am now unable to reproduce the original error, even though I'm following exactly the same steps that I followed whe

Re: trailing slash added to passed form data

2007-04-13 Thread Ian Clelland
On 4/13/07, Tipan <[EMAIL PROTECTED]> wrote: > I am passing a parameter from a template to an inclusion tag {% > show_tag %}. This value is then returned from the inclusion > tag defintion in a dictionary (return {'form':form, 'value':id}) to > render the form for use in a hidden field ( name="x

trailing slash added to passed form data

2007-04-13 Thread Tipan
I've encountered a strange occurence whereby I am seeing a trailing slash added to an item of form data. I am passing a parameter from a template to an inclusion tag {% show_tag %}. This value is then returned from the inclusion tag defintion in a dictionary (return {'form':form, 'value':id}) t

Re: Choice newforms field not auto updating...

2007-04-13 Thread dballanc
>From what I understand of Python, your choices code is only getting called once when Python loads your form class for the first time. To get around this you can assign choices from within the __init__() of the form (which is called when the form is instantiated) This snippet explains better tha

Re: Tutorial part 4 IndexError

2007-04-13 Thread jonathan_ou
Thanks! That was exactly it. I was using Mac OSX to develop and they use a different line ending character than Unix. Everything works correctly now. Thanks again. On Apr 13, 8:27 am, "Niels" <[EMAIL PROTECTED]> wrote: > I smell the sense of an end-of-line convention problem in django's > deb

Free music downloads

2007-04-13 Thread [EMAIL PROTECTED]
http://www.freemuiscforum.com http://www.freemp3sky.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, se

Re: Music E-zine development in Django

2007-04-13 Thread temnoregg
i sent you private mail that I am interested, but without response... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from

Re: Music E-zine development in Django

2007-04-13 Thread temnoregg
i sent you private mail. did you get it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EM

new forms - processing the form without rebuilding the entire view

2007-04-13 Thread Tipan
I've created a view that is made up of several elements such as main content, sidebar information navigation bar. The main content is derived from specific data dependent on the parameter passed to the view. .../page/3 etc. The view is rendered as a series of template extensions from a master bas

Re: content type for html parts

2007-04-13 Thread Atilla
The correct type for HTML documents is text/html. The correct type for XHTML documents "should" be application/xhtml+xml, however - IE (maybe not all versions) will bork on that and will not render, but instead give you a save dialog. If your validator fails on "partial" documents, that should be

Choice newforms field not auto updating...

2007-04-13 Thread Ryan Alexander
I've got this little bit of code in my Views.py file: def get_suite_choices(): for suite in Suite.objects.all().order_by('title'): yield (suite.id, suite.title) class StartSuiteForm(Form): suite = ChoiceField(choices=get_suite_choices()) username = CharField('username',widget

Re: How can I order foreign key items presented in the admin?

2007-04-13 Thread Ryan Alexander
Perfect, thank you! On 13/04/07, Niels <[EMAIL PROTECTED]> wrote: > > > class SuitetoTest(models.Model): > runorder = models.IntegerField(core=True) > test = models.ForeignKey(Test) > suite = models.ForeignKey(Suite, edit_inline=models.TABULAR, > num_in_admin=10) > class Meta

Re: integratin Django to an old site

2007-04-13 Thread sjol
Great!! this is better than I thought of working things out. Does it matter where I enter it in the httpd.conf file ? (ie should it be at the top ? ) Thank you Doug, I will also investigate your method, running php code with django's url handling can make things easier for some pages, especialy

Re: DJANGO and modpy reloading hell...

2007-04-13 Thread Luciano Adamiak
It's for the whole thing... I guess But it will prevent your restarting every change.. On 4/13/07, durumdara <[EMAIL PROTECTED]> wrote: > > > Hi! > > On Apr 13, 2:00 pm, "Luciano Adamiak" <[EMAIL PROTECTED]> > wrote: > > Just set "MaxRequestsPerChild 1" in your httpd.conf > > > > And this paramet

Re: DJANGO and modpy reloading hell...

2007-04-13 Thread durumdara
Hi! On Apr 13, 2:00 pm, "Luciano Adamiak" <[EMAIL PROTECTED]> wrote: > Just set "MaxRequestsPerChild 1" in your httpd.conf > And this parameter is used for whole webserver, or I can set it by virtualhosts? (The last solution is better, because the server is handle 15 site... (python and php)).

content type for html parts

2007-04-13 Thread Michael Radziej
Hi, some of my views serve part of an html (or, actually, xhtml document), such as: """ ... """ or """ ... ... """ I'm running into problems whatever content type I use. I use an automatic validator during testing, that validates all text/html or application/xhtml+xml doc

Re: Tutorial part 4 IndexError

2007-04-13 Thread Niels
I smell the sense of an end-of-line convention problem in django's debug view. Could it be your sourcefile uses '\r' for end of line where django expects a '\n' ?? On Apr 13, 8:12 am, "jonathan_ou" <[EMAIL PROTECTED]> wrote: > I am using python 2.5 with django 0.96 rev 5005 using mysql database.

Programmer Career

2007-04-13 Thread Jessica
Find Many Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMA

Re: DJANGO and modpy reloading hell...

2007-04-13 Thread Luciano Adamiak
Just set "MaxRequestsPerChild 1" in your httpd.conf On 4/13/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > On Apr 13, 5:20 pm, "durumdara" <[EMAIL PROTECTED]> wrote: > > Hi ! > > > > I want to substitute my modpy based website to any framework system, > > but I have a question: > > > > Th

Re: How can I order foreign key items presented in the admin?

2007-04-13 Thread Niels
class SuitetoTest(models.Model): runorder = models.IntegerField(core=True) test = models.ForeignKey(Test) suite = models.ForeignKey(Suite, edit_inline=models.TABULAR, num_in_admin=10) class Meta: ordering = ("runorder",) On Apr 13, 12:17 pm, "Ryan Alexander" <[EMAIL

Re: gettext & UnicodeDecodeError

2007-04-13 Thread Sandro Dentella
> sandro.dentella a écrit : > > Thanks! that was it. Now I can reproduce the error. Which is the > > "correct" solution? > > > > An easy and not really nice one is to encode title into > > DEFAULT_CHARSET, but I'd rather > > have _() return an unicode object. How should I do to obtain this? > >

Re: gettext & UnicodeDecodeError

2007-04-13 Thread xav4django
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sandro.dentella a écrit : > Thanks! that was it. Now I can reproduce the error. Which is the > "correct" solution? > > An easy and not really nice one is to encode title into > DEFAULT_CHARSET, but I'd rather > have _() return an unicode object. How

Re: gettext & UnicodeDecodeError

2007-04-13 Thread Michael Radziej
On Thu, Apr 12, sandro.dentella wrote: > > Thanks! that was it. Now I can reproduce the error. Which is the > "correct" solution? > > An easy and not really nice one is to encode title into > DEFAULT_CHARSET, but I'd rather > have _() return an unicode object. How should I do to obtain this? N

How can I order foreign key items presented in the admin?

2007-04-13 Thread Ryan Alexander
So I have the following bit of model code: class SuitetoTest(models.Model): runorder = models.IntegerField(core=True) test = models.ForeignKey(Test) suite = models.ForeignKey(Suite, edit_inline=models.TABULAR, num_in_admin=10) So the SuitetoTest model shows up in the Suite admin page

Re: Providing action specific feedback messages to users and HttpResponseRedirects

2007-04-13 Thread Atilla
If you're simply trying to display error messages, if something is invalid - check carefully how this is being done in the examples in the documentation. The idea here is that you issue a redirect only when your data is validated, your object is saved and you must proceed to a different step. Now

Re: DJANGO and modpy reloading hell...

2007-04-13 Thread Graham Dumpleton
On Apr 13, 5:20 pm, "durumdara" <[EMAIL PROTECTED]> wrote: > Hi ! > > I want to substitute my modpy based website to any framework system, > but I have a question: > > The development under modpy sometimes became very hard, because the > python in the normal working mode does not reload the module

Re: Tutorial: Can't see my polls

2007-04-13 Thread risomt
http://binarymanipulations.com:8157/polls/1/vote/ displays the Poll's title and all of the poll's choices correctly - start from there Sorry for the weak answer, but its pretty late. I did notice an error with your form in poll_detail (http://binarymanipulations.com:8157/ polls/1/) - should be

DJANGO and modpy reloading hell...

2007-04-13 Thread durumdara
Hi ! I want to substitute my modpy based website to any framework system, but I have a question: The development under modpy sometimes became very hard, because the python in the normal working mode does not reload the modules are loaded before. But in web development when we change something i