now it works.
thanks a lot.
On Thu, Feb 5, 2009 at 12:10 PM, Alex Gaynor wrote:
>
>
> On Wed, Feb 4, 2009 at 11:05 PM, jason wrote:
>
>>
>> hello all.
>> i followed the django tutorial, to the second part ,when activate the
>> admin site, typing url 'http://localhost:8000/admin/' in the browser
Hi -
I'm working on a very similar problem (displaying data on a Google
map). I haven't totally implemented this yet, but my way forward is to
use AJAX to request the map data from my Django application, which
will serve it as JSON (by serializing it). You then "deserialize" it
in the Javascript
On Thu, Feb 5, 2009 at 1:09 PM, issya wrote:
>
> Thanks for the reply. I was aware of that but I guess I don't
> understand how to go about using it. I do understand that I can
> serialize a queryset. But I cannot just go and use the serialized data
> as template context. From the options I've se
i also feel confused about the django version. it develops so fast that i
cannot catch up. different versions have so many changes. Could it be
possible to find the the exact version of the tutorial in the official
djangoproject website?
i think the differences of the version of django may confuse
On Wed, Feb 4, 2009 at 11:33 PM, ethan zou wrote:
> i also feel confused about the django version. it develops so fast that i
> cannot catch up. different versions have so many changes. Could it be
> possible to find the the exact version of the tutorial in the official
> djangoproject website?
>
Looks like I figured it out, it was my mad Python skillz. I cast the
blah_id object as a string when feeding it to the GetFeed function.
Works now.
On Feb 4, 11:50 am, Karen Tracey wrote:
> On Wed, Feb 4, 2009 at 2:37 PM, bfellows wrote:
>
> > Traceback:
> > File "/var/lib/python-support/python
Heyas
So I'm sure this is pretty basic, but I don't seem to be able to get
the following to work and I cant seem to find suitable info on google
or the django site.
I've got my model:
class person(models.Model):
gender = models.CharField(max_length=1, choices=(('M','male'),
('F','female))
got it,:-)
On Thu, Feb 5, 2009 at 12:37 PM, Alex Gaynor wrote:
>
>
> On Wed, Feb 4, 2009 at 11:33 PM, ethan zou wrote:
>
>> i also feel confused about the django version. it develops so fast that i
>> cannot catch up. different versions have so many changes. Could it be
>> possible to find the
On Wed, Feb 4, 2009 at 11:39 PM, Silfheed wrote:
>
> Heyas
>
> So I'm sure this is pretty basic, but I don't seem to be able to get
> the following to work and I cant seem to find suitable info on google
> or the django site.
>
> I've got my model:
>
> class person(models.Model):
>gender = mo
Thanks for the reply Russ. I will check into different things, you
make it sound easier than it looks. :)
On Feb 4, 11:33 pm, Russell Keith-Magee
wrote:
> On Thu, Feb 5, 2009 at 1:09 PM, issya wrote:
>
> > Thanks for the reply. I was aware of that but I guess I don't
> > understand how to go ab
Brian, I can get data on the maps with no problem. It is just making
it change when the user selects something. If you are trying to get
data on a map, I have a handy way for you to do it. This is only for
your template. You will have to find a way to geocode everything ahead
of time. GeoDjango ca
hi Django floks
i'm newbie to Django ,i have a task like
People have to register with their email in the index page , to enter
into my site and, to protect my site from unwanted usage, i need to
integrate captcha .i will be glad to find a help from you
thanks in advance
--~--~-~--~~-
hi all,
As i'm new to the Django framework,
i want to know the how can i insert the form data into the database.
Plz let me know the solution and necessary changes that have to be
done
program is like
-
in m
Thanks Ramior for info
In Models is it possible to name to Fields as primary keys
as exmaple, there are two fields
gid = models.IntegerField()
business_id = models.ForeignKey(Business)
how to make both of them as primary keys , following isn't work
gid = models.IntegerField(primary_k
My problem is that I want to pass additional variables to index.html.
So I thought I can do it if I add these variables to view that renders
index.html.
Regards, Alex A.
On Feb 4, 10:55 am, Kenneth Gonsalves wrote:
> On Wednesday 04 Feb 2009 2:05:37 pm knight wrote:
>
> > Thanks for the fast re
On Thu, Feb 5, 2009 at 12:54 AM, gganesh wrote:
>
> hi Django floks
> i'm newbie to Django ,i have a task like
> People have to register with their email in the index page , to enter
> into my site and, to protect my site from unwanted usage, i need to
> integrate captcha .i will be glad to find
On Thu, Feb 5, 2009 at 12:55 AM, Neeru wrote:
>
> hi all,
>
> As i'm new to the Django framework,
> i want to know the how can i insert the form data into the database.
> Plz let me know the solution and necessary changes that have to be
> done
>
> program is like
>
>
> -
I have a ModelForm subclass where I define a special field. How do I
make that special field appear first in the rendered form (using a
form.as_* method)?
Here is an example:
class MyModelForm(forms.ModelForm):
mySpecialField = forms.ChoiceField(label='Special', choices=(('a',
'aa')))
cl
Thank you all for the replies.
I will try the middleware solution and tell you how it's going. :)
It's nice to see that our group is big enough to get ~15 replies in 2
days.
Thanks,
Arshavski Alexander.
On Feb 5, 5:14 am, Graham Dumpleton
wrote:
> On Feb 5, 1:25 am, Adam Stein wrote:
>
> > I
On Thu, Feb 5, 2009 at 12:58 AM, Waruna de Silva wrote:
> Thanks Ramior for info
>
> In Models is it possible to name to Fields as primary keys
>
> as exmaple, there are two fields
> gid = models.IntegerField()
> business_id = models.ForeignKey(Business)
>
> how to make both of them as pri
Thanks
What is the best possible way to handle that type of a problem
On Thu, Feb 5, 2009 at 11:45 AM, Karen Tracey wrote:
> On Thu, Feb 5, 2009 at 12:58 AM, Waruna de Silva wrote:
>
>> Thanks Ramior for info
>>
>> In Models is it possible to name to Fields as primary keys
>>
>> as exmaple, the
On Thu, Feb 5, 2009 at 1:14 AM, Brian wrote:
>
> I have a ModelForm subclass where I define a special field. How do I
> make that special field appear first in the rendered form (using a
> form.as_* method)?
>
> Here is an example:
>
> class MyModelForm(forms.ModelForm):
>mySpecialField = for
thxs,
I have the Problem in accessing the values from the form.
On Feb 5, 11:13 am, Karen Tracey wrote:
> On Thu, Feb 5, 2009 at 12:55 AM, Neeru wrote:
>
> > hi all,
>
> > As i'm new to the Django framework,
> > i want to know the how can i insert the form data into the database.
> > Plz l
On Thu, Feb 5, 2009 at 1:23 AM, Neeru wrote:
>
> thxs,
>
> I have the Problem in accessing the values from the form.
>
What Problem? You haven't described any problem, you just dumped a bunch of
code in an email and said "hi all, please fix this (quick!) for me". You
need to describe what is n
Russ,
Thanks so much for the thorough response and explanation.
As you can probably tell, I am a bit new to Django. :) You're right,
I have been interpreting django as "some monolithic block that needs
to be installed." Your insight certainly grants me a whole new
perspective and gives me a lo
On Thu, Feb 5, 2009 at 1:19 AM, Waruna de Silva wrote:
> Thanks
>
> What is the best possible way to handle that type of a problem
>
>
I don't know, it is not something I've ever needed. If you Google
"composite primary keys" and Django you'll get hits that point to the ticket
where the feature i
Hello,
I have seperate django forms wrapper in one html form tag in my
template.
When i render, both forms display fully. When I post, errors display
for the first form but not for the second. I am using a tag by tag
approach to the the template.
Interesting thing is I did a test to see if form
On Thu, Feb 5, 2009 at 2:03 AM, Gordon wrote:
>
> Hello,
> I have seperate django forms wrapper in one html form tag in my
> template.
>
> When i render, both forms display fully. When I post, errors display
> for the first form but not for the second. I am using a tag by tag
> approach to the t
sorry for not tell u in problem detail in detail.
i'm new to this kind of stuff. i havn't done this before.
I will try to figure out a way to explain u.
I tried all the stuff that u have said with example.
anyway thanks.
comming to my problem...
as far this code works fine. there is no e
Form 1 Template (rendered from view):
http://dpaste.com/116827/
Form 2 Template (included in Form 1):
http://dpaste.com/116826/
View Code:
http://dpaste.com/116828/
Form 2 Code:
http://dpaste.com/116829/
Once again, the problem is that Form 2 won't display any errors while
Form 1 will display
The is no public/documented API for reorder fields, but you can do some
trick with SortedDict:
class MyModelForm(forms.ModelForm):
mySpecialField = forms.ChoiceField(label='Special', choices=(('a','aa')))
class Meta:
model = MyModelType
MyModelForm.base_fields.keyOrder = ["mySpecialF
101 - 131 of 131 matches
Mail list logo