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 you
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 me
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 Gr
y_date = models.DateField(_(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
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
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
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 rece
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 item_extr
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, s
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 wrote:
> On Fri, Jun 8, 2012 at 2:23 PM, armagan wrote:
> > No, I just reali
t; Hi,
>
> Do you have in your blogum directory a feeds.py?
>
>
>
>
>
>
>
> On Fri, Jun 8, 2012 at 1:53 PM, armagan wrote:
> > Hi,
>
> > I'm trying to implemente an rss to my project. I have done a simple
> > example in django doc. But I have an err
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
--
You
s 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 wrote:
> > Hi,
> > I am trying to practice a news app. I've tried to set up Djang
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
14 matches
Mail list logo