V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  moyan  ›  全部回复第 1 页 / 共 1 页
回复总数  19
2011-04-06 21:04:37 +08:00
回复了 Livid 创建的主题 站长 V2EX 上的站长们
做给学生用的,学校体育
www.tygk.info
2011-02-23 10:44:36 +08:00
回复了 apple 创建的主题 Project Babel 怎么取消注册的验证
补充:
class SignupHandler(webapp.RequestHandler):
def get(self):里面
chtml =--------后面省略-----
删除
template_values['captchahtml'] = chtml
删除

成功
删除
2011-01-07 13:56:12 +08:00
回复了 moyan 创建的主题 V2EX 刚才gae有好像不能访问了
是的!
怎么这里可以访问?v2ex怎么能访问?
2010-12-23 11:34:05 +08:00
回复了 moyan 创建的主题 Project Babel favicon.ico图片怎么改成自己的?
问一个picky问题!!

Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 515, in __call__
handler.get(*groups)
File "C:\Program Files\Google\google_appengine\hyezbbs\writer.py", line 130, in get
if CheckAuth(self) is False:
File "C:\Program Files\Google\google_appengine\hyezbbs\v2ex\picky\security\__init__.py", line 14, in CheckAuth
if str(auth) != hashlib.sha1(SECRET + ':' + site_domain).hexdigest():
TypeError: cannot concatenate 'str' and 'NoneType' objects
2010-12-22 15:03:07 +08:00
回复了 mamimoluo 创建的主题 Project Babel 对V2EX做了点改动
收进代码就好了
2010-12-22 15:01:30 +08:00
回复了 mamimoluo 创建的主题 Project Babel 对V2EX做了点改动
File "C:\Program Files\Google\google_appengine\cdhyez\v2ex\templatetags\filters.py", line 159
value = value.replace('<a href="', '<a target="_blank" href="')
^
请问这是什么问题?
我是这样写的
def urlize(value):
from django.template.defaultfilters import urlize
value = urlize(value)
value = value.replace('<a href="', '<a target="_blank" href="')
return value
register.filter(urlize)
2010-12-21 21:04:04 +08:00
回复了 plidezus 创建的主题 分享创造 跟朋友合作的二手书交换网站,有兴趣的各位来内测啦~
2010-12-21 20:53:23 +08:00
回复了 paloalto 创建的主题 Project Babel 关于V2EX内容链接里的rel="nofollow"
2010-12-21 20:45:09 +08:00
回复了 fanzeyi 创建的主题 Project Babel 如何弄一个带链接的文字
2010-12-21 10:32:11 +08:00
回复了 moyan 创建的主题 Project Babel 请教,我的本地测试怎么不能成功
换台机子上传成公,修改app.yaml以前是用notepad++ ,后来用Python edit修改后上传成功,
2010-12-21 10:27:51 +08:00
回复了 mamimoluo 创建的主题 Project Babel 对V2EX做了点改动
@mamimoluo
全站刷新很好!!
2010-12-19 23:15:03 +08:00
回复了 moyan 创建的主题 Project Babel 请教,我的本地测试怎么不能成功
大侠帮帮忙!!
2010-12-19 16:56:09 +08:00
回复了 moyan 创建的主题 Project Babel 请教,我的本地测试怎么不能成功
补充 安装的是Python2.5
2010-12-19 16:49:31 +08:00
回复了 moyan 创建的主题 Project Babel 请教,我的本地测试怎么不能成功
- url: /block/(.*)
script: member.py

- url: /unblock/(.*)
script: member.py

- url: /webluker-verif.html
script: misc.py

- url: /favorite/(.*)
script: favorite.py

- url: /unfavorite/(.*)
script: favorite.py

- url: /follow/(.*)
script: favorite.py

- url: /unfollow/(.*)
script: favorite.py

- url: /my/(.*)
script: my.py

- url: /add/star/(.*)
script: queue.py
login: admin

- url: /minus/star/(.*)
script: queue.py
login: admin

- url: .*
script: main.py

inbound_services:
- mail
- xmpp_message

builtins:
- datastore_admin: off
2010-12-19 16:49:12 +08:00
回复了 moyan 创建的主题 Project Babel 请教,我的本地测试怎么不能成功
application: tiyugk
version: 1
runtime: python
api_version: 1

default_expiration: "10d"

derived_file_type:
- python_precompiled

handlers:
- url: /favicon.ico
static_files: static/img/favicon.ico
upload: static/img/favicon.ico

- url: /apple-touch-icon.png
static_files: static/img/apple-touch-icon.png
upload: static/img/apple-touch-icon.png

- url: /static
static_dir: static

- url: /settings
script: member.py

- url: /settings/.*
script: member.py

- url: /member/.*
script: member.py

- url: /backstage
script: backstage.py

- url: /backstage/.*
script: backstage.py

- url: /new/.*
script: topic.py

- url: /t/.*
script: topic.py

- url: /r/.*
script: topic.py

- url: /edit/.*
script: topic.py

- url: /delete/.*
script: topic.py

- url: /hit/.*
script: topic.py

- url: /index/.*
script: topic.py

- url: /avatar/.*
script: avatar.py

- url: /index.xml
script: feed.py

- url: /feed/v2ex.rss
script: feed.py

- url: /feed/.*
script: feed.py

- url: /about
script: page.py

- url: /faq
script: page.py

- url: /mission
script: page.py

- url: /advertise
script: page.py

- url: /advertisers
script: page.py

- url: /notes/?
script: notes.py

- url: /notes/.*
script: notes.py

- url: /api/.*
script: api.py

- url: /twitter/?
script: t.py

- url: /twitter/.*
script: t.py

- url: /time/?
script: misc.py

- url: /mapreduce(/.*)?
script: mapreduce/main.py
login: admin

- url: /images(/.*)?
script: images.py

- url: /place/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})
script: place.py

- url: /remove/place_message/(.*)
script: place.py

- url: /_ah/mail/.+
script: mail.py
login: admin

- url: /_ah/xmpp/.+
script: xmpp.py
login: admin

- url: /remote_api
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
login: admin
2010-12-19 16:48:32 +08:00
回复了 moyan 创建的主题 Project Babel 请教,我的本地测试怎么不能成功
config.py

import os

mobileme_enabled = False
mobileme_username = ''
mobileme_password = ''

if os.environ['SERVER_SOFTWARE'] == 'Development/1.0':
twitter_consumer_key = ''
twitter_consumer_secret = ''
else:
twitter_consumer_key = ''
twitter_consumer_secret = ''

fts_enabled = False
fts_server = ''
fts_username = ''
fts_password = ''

# change this for deploy is you can registration from http://www.google.com/recaptcha
recaptcha_public_key = '6LdQvL8SAAAAAGWmh3nrBdIOtWyRqQVW - G0dSZjD'
recaptcha_private_key = '6LdQvL8SAAAAAH4XxMCVverEZEpRjSpshMtpW3Vy'
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1510 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 16:49 · PVG 00:49 · LAX 08:49 · JFK 11:49
Developed with CodeLauncher
♥ Do have faith in what you're doing.