Re: Hi guyz . iam just a beginner in google app engine..plz help me "abt deleting datas from DATASTORE"

2012-11-09 Thread Kev Dwyer
muhammed riyas wrote: > hi, > while trying to delete the datas from the datastore it shows the > error... > > > > > BadArgumentError at /employee/removeall/ Expected an instance or iterable > of (, 'google.appengine.api.datastore_types.Key'>, ); > received object at 0xb090aac>> (a

Re: how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert

2012-09-16 Thread Kev Dwyer
Navnath Gadakh wrote: > > Hello Navnath, You can either submit the form via javascript and display the alert based on the response from the view, or submit the form normally and in your javascript code poll another view to check the result. The first method is better, in my view. Both

Re: CSS not appearing in production mode.

2012-06-17 Thread Kev Dwyer
Jak wrote: > Hello All, > > I am having a difficult time getting the CSS for my web app to appear when > I turn debug mode to false. When debug mode = True all the images show up > fine, but when I turn it to false only the html appears. What do you think > could be happening? > > > Thanks >

Re: How to Detect Current Page as Homepage?

2012-03-25 Thread Kev Dwyer
easypie wrote: > I'm trying to check {% if homepage %} then show {% endif %} > > I'm not sure how to go about a test to check the current page if it's my > homepage. Do I need to mess around with context processors? What's the > usual way of doing it? And how would the {% if ... %} look like? >

Re: Error while importing URLconf 'permitprint.urls': day is out of range for month

2012-02-29 Thread Kev Dwyer
furby wrote: > Caught it. Haha. What a funny bug. From models.py: > > 196 d = dt.datetime.today() > 197 expires = d.replace(year=d.year+1) > > There is no Feb. 29th, 2013. So this breaks. Thx for the help! > > On Feb 29, 9:50 am, Tom Evans wrote: >> On Wed, Feb

Re: Help Me With This Form

2012-01-24 Thread Kev Dwyer
coded kid wrote: > Hi guys, I’m trying to let this form display but it’s not displaying > in my browser. When I open up the browser, only a blank page shows up. > How can I go about it? Below are my codes: > Hello, In the template, you probably want {{ mobForm.as_table }} For debugging

Re: django-admin.py startproject will NOT work.

2011-12-30 Thread Kev Dwyer
Chris Kavanagh wrote: > Hi, I'm using WinXP, Python27, django 1.3.1. > > When I try django-admin.py startproject mysite, I get a "Usage django- > admin.py subcommand [options] [args]" listing of commands instead of > starting the project in mysite folder. . .I've tried every workaround > I've

Re: Best way to show/hide the logout link in a template?

2011-08-18 Thread Kev Dwyer
Andre Lopes wrote: > Hi, > > I am new to Django... I have made a logout link, but now I am in doubt > on which the best way to show/hide this template tag: > > [code] > Logout > [/code] > > Which is the best way of show/hide this link? > > Sorry if it is a basic question. > > > Best

Re: Nested formsets at Django 1.3

2011-07-31 Thread Kev Dwyer
Kev Dwyer wrote: > Hello List, > > I've been upgrading an old Django 1.1.x app to use Django 1.3, and am > having a problem with nested formsets. > ... > > > I omitted one important fact in this write-up. In Nathan's original code, the lowest level

Re: upgrade Django 1.2.3 to 1.3

2011-07-31 Thread Kev Dwyer
veva...@yandex.ru wrote: > After upgraging I entered python manage.py runserver and got error > messages: > File "manage.py", line 11, in > execute_manager(settings) > File "c:\python26\lib\site-packages\django\core\management > \__init__.py", line 438, in execute_manager > utility.execute() >

Nested formsets at Django 1.3

2011-07-30 Thread Kev Dwyer
Hello List, I've been upgrading an old Django 1.1.x app to use Django 1.3, and am having a problem with nested formsets. The structure of my formsets is based on the structure outline in Nathan Yerger's blog post http://yergler.net/blog/2009/09/27/nested- formsets-with-django/, i.e. I have a

Re: WEB SERVICE IN DJANGO USING ZSI

2010-11-27 Thread Kev Dwyer
On Sat, 27 Nov 2010 20:57:17 +0530, sami nathan wrote: > for creating server.py from wsdl file i am using this following code i > dont na weather its right but its not creating any file but its throwing > error wsdl2py --extended --file=D;\soap\FlyppSms.wsdl > File "", line 1 > wsdl2py

Re: django+modelform+Foreignkey

2010-03-07 Thread Kev Dwyer
On Sat, 06 Mar 2010 23:39:59 +0200, Arkeoloji.web.tr wrote: > Hi all, > I have some ModelForms.. This ModelForms based some ForeignKey included > models. When i want to create a ModelForm I got these ForeignKey fields > something like (in a dropdown menu) "BlaBla object". But i want to get > in

Re: newbie - query not working!! Help please!!

2010-03-07 Thread Kev Dwyer
On Sat, 06 Mar 2010 09:52:06 -0800, uthaman wrote: > url: > url(r'top25/(?P\d{1})/$', views.top25_test, name='top25_test'), > > view: > def top25_test(request, poll): > entry = Poll.objects.filter(poll_id=poll) > > model: > class Poll(models.Model): >

Re: Ajax request, json object, fields with instance of inherits class converted in regular string

2010-02-21 Thread Kev Dwyer
On Fri, 19 Feb 2010 07:00:36 -0800, manixor wrote: > > The very big problem is, when I loop into object on template, in the > monday field is not enymore the Day instance, but the string 1. How can > I convert to an json object the week object, and to keep the instance of > the inherits class,

Re: Delete a data row that is inherit by another one.

2010-02-14 Thread Kev Dwyer
On Sun, 14 Feb 2010 10:24:08 -0800, manixor wrote: > Hy, how can I check if a field is inherit by another one. If I delete > that field, it delete cascade, the foreign data too. Hello, It's not clear what you mean by "field". If you're talking about cascades in the database the documentation

Re: RequestContext and user.is_authenticated confusion

2010-02-14 Thread Kev Dwyer
On Sun, 14 Feb 2010 08:30:05 -0800, Achim Domma wrote: > Hi Kev, > > thanks for the hint. Trying different solutions I introduced indeed a > typo. Now I can see the username and is_authenticated works as expected. > But still curious: Is there a good reason, why I have to pass > RequestContext

Re: RequestContext and user.is_authenticated confusion

2010-02-14 Thread Kev Dwyer
On Sun, 14 Feb 2010 01:19:41 -0800, Achim Domma wrote: > Hi, > > depending on if a user is logged in or not, I want to display a "login" > form or a "logout" button. I tried to use this code snippet: > > http://docs.djangoproject.com/en/1.1/topics/auth/#id6 > > If I render my view using

Re: Reversing post_change_redirect argument in django.contrib.auth.views.password_change

2010-02-13 Thread Kev Dwyer
On Sat, 13 Feb 2010 13:22:54 +, Kev Dwyer wrote: > Hello List, > > > Does anyone know how I can avoid hardcoding the post_change_redirect > argument to change_password, either in urls.py or perhaps by some > trickery in the template or form? > > Many thanks, >

ModelFormSet foreign keys display

2009-12-05 Thread Kev Dwyer
Hello List, I am having problems getting the forms within a modelformset to display as I wish. I'm using Django 1.1 with python 2.6. The model class is: class Availability(DefaultColumns): """Record analyst availability.""" date = django.db.models.ForeignKey(WorkShift) analyst