Hi,
I have the following model:
class product(models.Model):
productId = models.AutoField(primary_key=True)
name = models.CharField(max_length=200, unique=True)
description = models.CharField(max_length=200, blank=True)
class Wishlist(models.Model):
Hi,
I have this problem which is probably right in front of my eyes but I
just cannot get it. Maybe someone can point me in the right direction:
I am trying to iterate through form.fields in a template.
The form is rather simple:
class ProductForm(forms.Form):
name =
hi,
I need to create 2 objects, one containing a reference to the other,
in one shot. I get an IntegrityError exception while trying to do so,
claiming that the foreign key is None on creation. Hope someone can
help...
(when I refresh the browser and rePOST the data it works as the
Product
wrote:
> On Mar 10, 12:45 pm, nivhab <yaniv.ha...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > I am trying to access a simple session attribute in the following way
> > (this is inside a view function):
>
> > def setSessionData(request):
> &
Hi,
I am trying to access a simple session attribute in the following way
(this is inside a view function):
def setSessionData(request):
if not request.session.get('data_was_set', False):
comLen=get_comment_count()
request.session['alert_count'] = comLen
Hi Arbi,
Seems like a problem with the python path. Django should be a part of
your google app-engine installation: Check under //lib
and see if 'django' folder exist there. Also check to see that the
appcfg.py file under the google_appengine directory contains the line:
> As far as I know you can't use django ModelForms with google app
engine.
Google provides a "djangoforms" module in which the copy-paste much of
the ModeForm functionality adjusted to their meta-model (see
http://code.google.com/appengine/articles/djangoforms.html) so it
should work.
el=_(u'I have read and agree to the
Terms of Service'),
error_messages={ 'required': u"You must
agree to the terms to register" })
---
On Mar 3, 10:20 pm, Alex Gaynor <alex.g
Hi,
I am using django on google app engine, and also using the app-engine-
patch package.
I am getting this error when trying to save a form:
Exception Value:'NoneType' object has no attribute 'properties'
Exception Location: \Development\google_appengine\google\appengine\ext
Thanks!
On Feb 16, 10:51 am, Jarek Zgoda <jarek.zg...@redefine.pl> wrote:
> Wiadomość napisana w dniu 2009-02-16, o godz. 08:32, przez nivhab:
>
> > Does anyone know if Django 1.0 is already supported out-of-the-box on
> > the Google app engine?
>
> Yes. It is not
Hi,
Does anyone know if Django 1.0 is already supported out-of-the-box on
the Google app engine?
Thanks!
Yaniv
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
.
On Feb 15, 9:57 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Sun, Feb 15, 2009 at 2:47 PM, nivhab <yaniv.ha...@gmail.com> wrote:
>
> > Does anyone know of a way to traverse a list in templates in a dynamic
> > way?
> > Let's say I have the following
If you'd like JavaScript to calculate values before you submit the
form then do the following:
1. Add a "onSubmit" attribute on your "form" tag which calls a JS
function like:
2. In the implementation of that function calculate whatever you need
and plant the result into a hidden input field
Does anyone know of a way to traverse a list in templates in a dynamic
way?
Let's say I have the following list:
{'message': [u'This field is required.'], 'sender': [u'Enter a valid e-
mail address.']}
and I do not know in advance the keys for this list. I would like to
iterate through it and
14 matches
Mail list logo