Работа с локалью (locale) в Python. import locale loc=locale.getlocale() #изменяем локаль locale.setlocale(locale.LC_ALL, (‘RU’,’UTF8′)) #что то делаем a=time.strptime(datetime,format1) a=time.strftime (format2,a) # меняем локаль назад locale.setlocale(locale.LC_ALL, loc)
Monthly Archives:: Июль 2011
Django-CMS: Какая разница между application, plugin, snippet?
Официальный ответ с группы Django-cms: A snippet is just any piece of text. You can define them in your Django admin. Plugins are pieces of django-cms code (that you can write yourself) that have a template and that can add any variables to the context for that template. You could for example create a cms… Read more »
Свежие комментарии