Re: strftime

2012-06-21 Thread robin nanola
i think i would be better if you read python datetime docs http://docs.python.org/library/datetime.html#datetime.date.strftime On Thu, Jun 21, 2012 at 4:47 PM, armagan wrote: > Hi, > > I'm trying to show the date in rss with this function > > def item_pubdate(self, item): > > date

Re: Weird Model question django

2011-08-23 Thread robin nanola
what is the use of the article foreignkey in the UserProfile model? On Tue, Aug 23, 2011 at 2:34 PM, raj wrote: > nvm, I think i'm starting to figure it out. Need to read up on many-to- > many fields. > > On Aug 23, 2:21 am, raj wrote: > > This may be difficult to explain. I'm a little new to d

Re: how to search data from tables

2011-03-13 Thread robin nanola
have you read the documentation already? i think this might help you http://docs.djangoproject.com/en/1.2/topics/db/queries/ On Mon, Mar 14, 2011 at 11:20 AM, django beginner wrote: > Hi all, > > I would like to know is there any way I can search any data from > tables given some parameters: > S

Re: Problem with overriding the default Django admin page.

2011-01-17 Thread robin nanola
try this, TEMPLATE_DIRS = ( "/Users/xuchen81/Django/mysite/admin", ) look here: http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs On Mon, Jan 17, 2011 at 4:25 PM, Chen Xu wrote: > Hi, Django group: > I am floowing the tutorial 1 on Django site, which is a poll application >

Re: newbie question: @login_required, can't get it to work

2010-12-08 Thread robin nanola
on your settings.py you can just add LOGIN_URL = '/login/' On Thu, Dec 9, 2010 at 3:04 PM, Charlietuna wrote: > Hi All, > > I'm a newbie. I would like to use the @login_required decorator, but I > don't want to redirect to the standard default accounts/login. I would > like to redirect to '/log

Re: cant see data with a Generic View

2010-02-18 Thread robin nanola
i solved it, it was just an encoding issue, i just put these #!/usr/bin/python # -*- coding: utf-8 -*- in the first two lines of the of my choices file and then make sure that all the choices are encoded also to utf-8 format. thanks for your time, i appreciate it. On Fri, Feb 19, 2010 at 3:09 AM,

Re: choices in model field error

2010-02-18 Thread robin nanola
yes its all working fine, when i change may choices like for example Z_CHOICES =(('9','nnn'),('10','na',),) without any non-ascii character the select box were shown with the choices list. On Fri, Feb 19, 2010 at 2:56 AM, Timothy Kinney wrote: > Can you successfully log in to the admin site using

Re: request.META['REMOTE_USER']

2009-10-14 Thread robin nanola
OTE_USER'] has to give the same value. > > On 14 Ott, 11:34, robin nanola wrote: > > try request.user > > > > you get a key error coz there is no 'REMOTE_USER' key in META. > > > > On Wed, Oct 14, 2009 at 5:29 PM, luca72 wrote: > > > >

Re: newbie. need help in validation

2009-10-14 Thread robin nanola
try reading this http://www.cotellese.net/2007/12/11/adding-model-field-validation-to-the-django-admin-page/ On Wed, Oct 14, 2009 at 5:34 PM, danin wrote: > > hi guys, >I am new to Django (started 2 weeks back). right now i am > designing one application having model- > class info(models.Mo

Re: request.META['REMOTE_USER']

2009-10-14 Thread robin nanola
try request.user you get a key error coz there is no 'REMOTE_USER' key in META. On Wed, Oct 14, 2009 at 5:29 PM, luca72 wrote: > > Hello if i use request.META['REMOTE_USER'] i get key error, but if i > use 'REMOTE_HOST' not > can you tell me how to get the user that is authenticate > I use the

Re: install django

2008-10-15 Thread robin nanola
i think you must be the root user to be able to install django.. On Thu, Oct 16, 2008 at 1:25 PM, limas <[EMAIL PROTECTED]> wrote: > > hai, > i want to install django in a local directory without the permission > of root in Mandriva linux. > please help meThe problem i suffered is could n