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
>
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
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
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
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
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
>
> 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
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
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
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
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
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
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
>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
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
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
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
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
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
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
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
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
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
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
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)).
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
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.
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
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
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
> 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?
>
>
-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
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
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
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
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
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
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
38 matches
Mail list logo