gloreus
[Свежие записи][Архив][Друзья][Личная информация]
Below are the 10 most recent journal entries recorded in the "gloreus" journal:[<< Previous 10 entries]
11:40 pm
[Ссылка] |
Хоккей 6:2 Удивительная игра, поздравляю
Но не характерно для финала, это даже не борьба а разгром, а где овертайм?
|
11:42 am
[Ссылка] |
График отключения горячей воды в Москве Оригинал взят у exler в График отключения горячей воды в Москве
|
10:52 am
[Ссылка] |
Редкая инфа Почему-то это нигде не описано в доке к app engine
As Adam points out, there is the webapp template, and the Django template, and you have to make them jive. Jiving requires to steps: 1. Create a django register 2. Tell webapp include/save that register. So when an HTTP request comes in, webapp saves the Django register into its own register. Webapp then tells Django to use fetch some template and return a response. At the same time webapp tells Django to fetch a template, webapp gives Django any registers that have been `registered` in the webapp’s template library. So when Django processes the template and sees the custom filter, it checks the register that webapp passed off to it, and sees the custom filter, and can use it. Here are how my files are setup: # customfilters.py — under src directory from django import template register = template.Library() def make_upper(s): return s.upper() register.filter(make_upper) # web_hooks.py – same directory as above
from google.appengine.ext.webapp import template template.register_template_library(‘customfilters’)
#in template {{ first_name|make_upper }}
Tags: django, google
|
10:33 am
[Ссылка] |
Воспоминания о Греция 2010, там оч хорошо :)
|
06:16 pm
[Ссылка] |
Мне в Бельдяжки нельзя (с) Оригинал взят у kononenkome в Неурожайка тожИдиоты набрали: 


Правда реки Вобля тут нет. Ночи спокойной. Запись опубликована Идiотъ. Вы можете оставить комментарии здесь или здесь.
|
11:05 am
[Ссылка] |
Толерантный гороскоп. Посмотреть свой гороскоп. Ещё интересное про Алису и про осень.
|
02:52 pm
[Ссылка] |
Не надо печалиться Сегодня беда прошла стороной А завтра - а завтра ты встретишься с ней..
|
01:40 pm
[Ссылка] |
Просто про меня с годами внутренний голос вместо того, чтобы советовать и спорить, всё чаще забивается в угол и бормочет: "боже, за что ты посадил меня в этого идиота?!"
Tags: bash.org
|
01:54 pm
[Ссылка] |
Суровый работадатель
|
11:03 pm
[Ссылка] |
Красный день календаря. Оригинал взят у proidemtes в Красный день календаря.С наступающим вас. 
|
[<< Previous 10 entries] |