only utf-8 letters regex pattern

2013-01-16 Thread armagan
Hi, I'm trying to use regex patterns in django form. I successed in only letters regex pattern. But form controler declines Turkish chars. I think I must use utf-8 regex. Can you help me? name = forms.RegexField(regex =r'^[a-zA-Z]+$') Thanks for help. -- You received this message because

admin save_model parameter 'change' is always true

2012-08-31 Thread armagan
Hi, I'm trying to use admin save_model method. I have a model called 'Project' and in admin.py 'Project' has a method save_model. I added a project to my admin panel then I try to save again without changing. But the parameter 'change' of save_model method is always 'true'. Why? Can you help

language

2012-06-26 Thread armagan
Hi, I'm trying to write the month name from number. I have done. But month's name is English. I want to change the name to Turkish. *In [35]: m = calendar.month_name[3]* *In [36]: m* *Out[36]: 'March'* Can you help me? -- You received this message because you are subscribed to the Google

Re: convert str to datetime

2012-06-25 Thread armagan
(_(u'Teslim Tarihi'), blank=True, null=True) On Monday, June 25, 2012 2:27:13 PM UTC+3, Melvyn Sopacua wrote: > > On 25-6-2012 10:42, armagan wrote: > > Hi, > > > > I'm trying to convert to str to datetime. "date object" must be datetime > > object. Can you h

convert str to datetime

2012-06-25 Thread armagan
Hi, I'm trying to convert to str to datetime. "date object" must be datetime object. Can you help me? def item_pubdate(self, item): # Yayinlanma Tarihi if item.delivery_date: date = item.delivery_date dt = datetime.combine(date, time()) return dt

strftime

2012-06-21 Thread armagan
Hi, I'm trying to show the date in rss with this function def item_pubdate(self, item): date = item.delivery_date return date.strftime("%d/%m/%y") But I have an error 'str' object has no attribute 'tzinfo'. Can you help me? How I code the function? -- You received this

RSS Reader

2012-06-14 Thread armagan
Hi, I wrote a rss custom feed class and I add an item element with 'handler.addQuickElement(u"city", item['city'])' this function. It's ok I can see the city tags in xml but mozilla's rss reader can't read my city tags. What can I do to fix the problem? Thank you for your advice. -- You

Rss custom feed and add an item eleman

2012-06-14 Thread armagan
Hi, I want to add an item element to my rss. I used below code class CustomFeed(Atom1Feed): def add_item_elements(self, handler, item): super(CustomFeed, self).add_item_elements(handler, item) handler.addQuickElement(u"city", item['city']) And in my rss feed def

django limited char

2012-06-12 Thread armagan
Hi, I'm trying rss for django project. I want to show limited char not at all in spot field. Can you help me? def item_spot(self, item): return item.spot Thanks, -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: RSS Feed

2012-06-08 Thread armagan
I solved the problem. I used application's urls.py not project's urls.py and update urls like (r'^rss/$', LatestEntriesFeed()). Thanks for help. On Jun 8, 3:45 pm, Diego pascual lopez <azoti...@gmail.com> wrote: > On Fri, Jun 8, 2012 at 2:23 PM, armagan <armagan.er...@gmai

Re: RSS Feed

2012-06-08 Thread armagan
> Hi, > > Do you have in your blogum directory a feeds.py? > > > > > > > > On Fri, Jun 8, 2012 at 1:53 PM, armagan <armagan.er...@gmail.com> wrote: > > Hi, > > > I'm trying to implemente an rss to my project. I have done a simple > > example

RSS Feed

2012-06-08 Thread armagan
Hi, I'm trying to implemente an rss to my project. I have done a simple example in django doc. But I have an error in urls.py. from 'blogum.feeds import LatestEntriesFeed' ==> I've imported this, I have an error 'No module named feeds'. Thanks in advance for any help provided. Armağan --

Re: Django News App

2012-05-16 Thread armagan
o was developed for a news room, so you should be > fine with it as is (if you learn how to use it... maybe go through the > docs) > > > > > > > > On Tue, May 15, 2012 at 12:28 AM, armagan <armagan.er...@gmail.com> wrote: > > Hi, > > I am trying to pra

Django News App

2012-05-14 Thread armagan
Hi, I am trying to practice a news app. I've tried to set up Django-cms app, it's running but it's a bit complex for a news application. And now I started to set up zinnia blog app. Do you suggest another one? -- You received this message because you are subscribed to the Google Groups "Django