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 inst
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 metho
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
>
>
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?
>
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 29, 2012 at 3:33 PM, furby
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 pur
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 fou
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 Regards,
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
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()
> Fi
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 gr
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
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 th
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):
> PUBLISHED_ST
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, o
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 i
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 ea
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 render_
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,
>
Hello List,
After a successful password change I want users to be redirected to a
confirmation page. I don't want to use the default page so I want to set
the post_change_redirect argument on
django.contrib.auth.views.password_change in my urls.py.
I don't want to hardcode the redirect url, so
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 =
21 matches
Mail list logo