On Friday, April 10, 2015 at 3:33:36 PM UTC-7, Ramiro Morales wrote:
>
> On Fri, Apr 10, 2015 at 6:31 PM, John Matthew Ian Davis <
> johnmatth...@gmail.com > wrote:
>
>> obviously one needs to change:
>>
>> from django.http import HttpResponse,
>>
>&g
obviously one needs to change:
from django.http import HttpResponse,
to
from django.http import HttpResponse, Http404
but that's a speed-bump that should not be in the tutorial.
NameError at /polls/34/
global name 'Http404' is not defined
Request Method: GET Request URL: http://localhost
Sounds like AJAX is your answer, there are lots of AJAX libraries out
there that have examples on this.
J
On Nov 2, 10:31 am, d wrote:
> URGENT!
> The following is my django code. I would like to have 3 column drop-
> down list.
>
> a member can select his location.
> when a country is selected,
Russ,
This is GREAT stuff, thank you so much.
Since I'm so new to this web stuff, and django is really the only thing I've
ever used for web programming, I hadn't gotten into the GET dictionary (or
parameters as I call them).
Given that, I assume that the cache will look at the http://.../model3
Wow, very cool, I didn't know that James! Again, thank you!
I was trying
obj.portfolio = portid and then
obj.portfolio.id = portid < that was really bad according to django :-)
J
On 5/16/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
>
> On 5/16/07, John M <[EMAIL PROTECTED]> wrote:
> > p
WOW, I hadn't seen that first one, and the second one is the 'standard' for
most newforms replies, great work!
Thanks again Michael.
John
On 5/16/07, Michael Trier <[EMAIL PROTECTED]> wrote:
>
>
> These two posts gave me everything I needed to tackle these type of
> issues:
>
> http://weblog.big
James,
Thanks again so much.
I think i tried the commit=False bit but it still didn't like my FK being
blank for some reason. I'll have to look through the django source and
double check.
So, assuming my commit=false works, i should be able to say something like:
form.clean_data['fk_id'] = fko
Thank you Grigoriy, It's given me some new ideas.
John
On 5/16/07, Grigoriy Petukhov <[EMAIL PROTECTED]> wrote:
>
>
> John M wrote:
> > I have checked the forum, and still can't believe I can't find a
> > solution to what I perceive as a simple problem:
> >
> > I have two models:
> >
> > Custome
Ah Ha, now we're getting somewhere!
Let me start searching for that, thank you!!
John
On 5/15/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
>
> On 5/15/07, John M <[EMAIL PROTECTED]> wrote:
> > I wish the custom form option would allow me to bind to a data object,
> > based on field names being
James, thanks for the quick reply!
Ok, I like what you have there, but it doesn't solve the problem of when I
want to edit an existing record, how do I use the customform? I guess I'm
just missing something super simple here, no?
I would think code like
instance = objects.get(id=1)
form = Order
Thank you for the reply.
On 1/10/07, Brian Beck <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> object_list takes an allow_empty argument, try settings it to True.
> >From the docs:
>
> allow_empty: A boolean specifying whether to display the page if no
> objects are available. If this is False and no ob
Now you're talking!!! Thanks for that, it's exactly what I was thinking.
Basically I am trying to make a system where you show a list of records,
allow the user to view the record, edit the record or add a new one.
Similar to the admin interface, but with only a view option, so in case your
a 'p
Thanks Chris,I looked at that but it only gives me one record. What i need is the last price for each stock. Maybe im using the latest() function wrong?ThanksJohn
On 8/4/06, Chris Long wrote:This might help:
http://www.djangoproject.com/documentation/db_api/#latest-field-name-noneChris
--~--~---
13 matches
Mail list logo