Permalink
Browse files

first...

  • Loading branch information...
0 parents commit 5dcb1996ea3a099a06e679d1caab3496a9906be8 @yangjiandong committed Jan 9, 2012
Showing 1,051 changed files with 154,637 additions and 0 deletions.
@@ -0,0 +1 @@
+*.pyc
@@ -0,0 +1,6 @@
+
+syntax: glob
+.pydevproject
+.project
+cache/*
+settings_secret.py
@@ -0,0 +1,3 @@
+The PRIMARY AUTHORS are (and/or have been):
+
+ * Felinx Lee (http://feilong.me)
17 LICENSE
@@ -0,0 +1,17 @@
+Copyright (c) 2011. zhimaq.com
+
+Copyright (c) 2010. OSQA
+Some portions Copyright (c) 2009 Chen Gang
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -0,0 +1,64 @@
+芝麻问答([www.zhimaQ.com][1])由[飞龙在天(Felinx Lee)][2]创立于2011年3月,旨在打造一个开放的问答社区平台,提供高质量的问答服务,目前只专注于IT知识领域。
+
+芝麻常用来比喻细小或微不足道的东西,我们日常工作生活中总会遇到些或大或小这样或那样的问题,往往一个芝麻大的问题却难倒多少英雄好汉,芝麻问答鼓励大家把这些问题放到网上,让广大网民群策群力来帮助你解决问题,同时通过问答的分享也可以帮助后面遇到同类问题的朋友,大家能够在问答中一起得到成长,何乐不为?
+
+域名zhimaQ的zhima取如上所述芝麻之意,同时zhima可以谐音知吗,即知道吗之意,Q则取问答和求之意。
+
+2011/05/23/ zhimaQ新开通[芝麻新闻][3]频道,用于发布IT业界新闻&博客等聚合资讯。
+
+芝麻问答足迹
+-----------
+你可以通过下列渠道获取芝麻问答的最新信息(目前同步的内容只包括问答部分),因为信息是同步的,所以大家可以根据自己的情况,选择其中的一到两种即可,推荐新浪微博,因为其它几个要翻墙或链接要翻墙。
+
+ 1. 豆瓣九点: 芝麻问答 [http://9.douban.com/subject/9431456/][4],芝麻新闻 [http://9.douban.com/subject/9435258/][5]
+ 2. 新浪微博: [http://weibo.com/zhimaq][6]
+ 3. RSS Feed: 芝麻问答 [http://www.zhimaq.com/feeds/rss][7] 芝麻新闻 [http://news.zhimaq.com/rss][8]
+ 4. Twitter: [http://twitter.com/zhimaq][9]
+ 5. Google Buzz: [https://profiles.google.com/113747313027111291167][10],或搜索“芝麻问答”。
+
+同时芝麻问答每日会有一封最新信息汇总的邮件通知(当然,如果你不喜欢,在个人设置里可去掉)。
+
+站长飞龙在天(Felinx Lee)
+----------
+
+ 1. 博客: [飞龙日志][11]
+ 2. Twitter: [http://twitter.com/felinxlee][12]
+ 3. Google Buzz: [https://profiles.google.com/113980832702226460762][13],或搜索“飞龙在天(Felinx Lee)”。
+ 4. 新浪微博: [http://weibo/felinx][14]
+ 5. 豆瓣: [http://www.douban.com/people/poweredsites/][15],这个永久名字poweredsites是历史问题了:(
+
+问题反馈
+-------
+
+ 1. 如果你对网站有任何意见或建议,请通过[意见&建议][16]来反馈。
+ 2. 如果你在网站使用过程中,发现网站的Bug或者有新的需求,请提交到[芝麻问答Issues][17]。
+ 3. 若要联系本站,请通过[联系芝麻问答][18]来联系站长。
+
+备注
+-----
+
+芝麻问答前身为Python问答网站ChinaPy,现扩大讨论话题至整个IT领域,域名相应的切换为zhimaQ.com,且已部署在国内的服务器上。芝麻问答采用的是OSQA系统,并做了些定制和bugfix,OSQA是一个
+StackOverflow的克隆产品,但芝麻问答不会只停留在StackOverflow的克隆上,飞龙正在全新打造自己的系统,建设[GuruStack项目][19],芝麻问答的内容最终将作为核心的问答部分并入GuruStack项目。
+
+PS:GuruStack只是一个项目代号。
+
+
+ [1]: http://www.zhimaq.com/
+ [2]: http://feilong.me
+ [3]: http://news.zhimaq.com
+ [4]: http://9.douban.com/subject/9431456/
+ [5]: http://9.douban.com/subject/9435258/
+ [6]: http://weibo.com/zhimaq
+ [7]: http://www.zhimaq.com/feeds/rss
+ [8]: http://news.zhimaq.com/rss
+ [9]: http://twitter.com/zhimaq
+ [10]: https://profiles.google.com/113747313027111291167
+ [11]: http://feilong.me
+ [12]: http://twitter.com/felinxlee
+ [13]: https://profiles.google.com/113980832702226460762#113980832702226460762/buzz
+ [14]: http:///weibo.com/felinx
+ [15]: http://www.douban.com/people/poweredsites/
+ [16]: http://www.zhimaq.com/pages/feedback/
+ [17]: https://bitbucket.org/felinx/zhimaq/issues?status=new&status=open
+ [18]: http://www.zhimaq.com/contact/
+ [19]: http://feilong.me/2011/04/gurustack-com-draft
No changes.
@@ -0,0 +1,56 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright(c) 2010 zhimaq.com
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+#!/usr/bin/env python
+
+# Run this with
+# PYTHONPATH=. DJANGO_SETTINGS_MODULE=testsite.settings testsite/tornado_main.py
+# Serves by default at
+# http://localhost:8080/hello-tornado and
+# http://localhost:8080/hello-django
+
+import os
+import sys
+
+from tornado.options import options, define, parse_command_line
+import django.core.handlers.wsgi
+import tornado.httpserver
+import tornado.ioloop
+import tornado.web
+import tornado.wsgi
+
+_HERE = os.path.dirname(os.path.abspath(__file__))
+sys.path.append(_HERE)
+
+os.environ['DJANGO_SETTINGS_MODULE'] = "settings"
+
+define('port', type=int, default=8000)
+
+def main():
+ parse_command_line()
+
+ wsgi_app = tornado.wsgi.WSGIContainer(
+ django.core.handlers.wsgi.WSGIHandler())
+
+ tornado_app = tornado.web.Application(
+ [('.*', tornado.web.FallbackHandler, dict(fallback=wsgi_app)),
+ ])
+ server = tornado.httpserver.HTTPServer(tornado_app, xheaders=True)
+ server.listen(options.port)
+ tornado.ioloop.IOLoop.instance().start()
+
+if __name__ == '__main__':
+ main()
@@ -0,0 +1 @@
+�GA�¬輋D.�}q(UvalueqM,Uidq�UkeyqUCIVIC_DUTY_VOTESqu.
@@ -0,0 +1 @@
+�GA�­46ȴ.�}q(Uvalueq�Uidq�(UkeyqUUSE_CUSTOM_FOOTERqu.
@@ -0,0 +1 @@
+�GA�­4�h.�}q(Uvalueq�Uidq�UkeyqUUSE_ANNOUNCEMENT_BARqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�­4'�w.�}q(Uvalueq�Uidq�%UkeyqUSIDEBAR_LOWER_SHOWqu.
@@ -0,0 +1 @@
+�GA�­3�`B.�}q(Uvalueq�Uidq�UkeyqUUSE_CUSTOM_CSSqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�­..V.�}q(UvalueqNUidq�UkeyqUMAINTAINANCE_MODEqu.
@@ -0,0 +1 @@
+�GA�­4/�.�}q(UvalueqKUidq�'UkeyqURECENT_AWARD_SIZEqu.
@@ -0,0 +1 @@
+�GA�­.1�.�}q(UvalueqU#/m/default/media/images/favicon.icoqUidq�UkeyqU APP_FAVICONqu.
@@ -0,0 +1,2 @@
+�GA�­=1.�}q(UvalueqK
+Uidq�4UkeyqUNICE_QUESTION_VOTES_UPqu.
@@ -0,0 +1 @@
+�GA�­4%��.�}q(Uvalueq�Uidq�$UkeyqUSIDEBAR_LOWER_DONT_WRAPqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�­4M�.�}q(Uvalueq�Uidq�UkeyqUUSE_CUSTOM_HEADERqu.
@@ -0,0 +1 @@
+�GA�¬��l�.�}q(UvalueqKUidq�UkeyqUNECROMANCER_UP_VOTESqu.
@@ -0,0 +1 @@
+�GA�¬���.�}q(UvalueqJ����Uidq�UkeyqUPEER_PRESSURE_MAX_SCOREqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�¬�_�.�}q(UvalueqKUidq�UkeyqUMIN_USERNAME_LENGTHqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�­94z�.�}q(Uvalueq}qUidq�+UkeyqUSTATIC_PAGE_REGISTRYqu.
@@ -0,0 +1 @@
+�GA�­={.�}q(UvalueqKUidq�.UkeyqUFAVORITE_QUESTION_FAVSqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�¬�J�.�}q(Uvalueq�Uidq�UkeyqUFORM_EMPTY_QUESTION_BODYqu.
@@ -0,0 +1 @@
+�GA�¬��1.�}q(UvalueqKUidq� UkeyqUSELF_LEARNER_UP_VOTESqu.
@@ -0,0 +1,2 @@
+�GA�¬�+.�}q(UvalueqK
+Uidq�UkeyqUPUNDIT_COMMENT_COUNTqu.
@@ -0,0 +1 @@
+�GA�¬����.�}q(UvalueqK2Uidq�UkeyqUTAXONOMIST_USE_COUNTqu.
@@ -0,0 +1 @@
+�GA�­=Q�.�}q(UvalueqKUidq�/UkeyqUGOOD_ANSWER_VOTES_UPqu.
@@ -0,0 +1 @@
+�GA�­4 �D.�}q(UvalueqUmarkdownqUidq�UkeyqUSIDEBAR_UPPER_RENDER_MODEqu.
@@ -0,0 +1 @@
+�GA�¬�ԛ�.�}q(UvalueqK<Uidq�UkeyqUNECROMANCER_DIF_DAYSqu.
@@ -0,0 +1 @@
+�GA�­=��.�}q(UvalueqKdUidq�1UkeyqUGREAT_ANSWER_VOTES_UPqu.
@@ -0,0 +1 @@
+�GA�­4��.�}q(Uvalueq�Uidq� UkeyqUSIDEBAR_UPPER_DONT_WRAPqu.
@@ -0,0 +1 @@
+�GA�­= �m.�}q(UvalueqM'Uidq�-UkeyqUFAMOUS_QUESTION_VIEWSqu.
@@ -0,0 +1 @@
+�GA�­=$�.�}q(Uvalueq�Uidq�,UkeyqUALLOW_UNICODE_IN_SLUGSqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�¬�.�}q(UvalueqKUidq�UkeyqUDISCIPLINED_MIN_SCOREqu.
@@ -0,0 +1 @@
+�GA�¬�[33.�}q(UvalueqKUidq�UkeyqUFORM_MAX_NUMBER_OF_TAGSqu.
@@ -0,0 +1 @@
+�GA�­=�\.�}q(UvalueqKUidq�0UkeyqUGOOD_QUESTION_VOTES_UPqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�­4* J.�}q(UvalueqKUidq�&UkeyqURECENT_TAGS_SIZEqu.
@@ -0,0 +1,2 @@
+�GA�­=�7.�}q(UvalueqK
+Uidq�3UkeyqUNICE_ANSWER_VOTES_UPqu.
@@ -0,0 +1,2 @@
+�GA�­=
+=.�}q(UvalueqKdUidq�2UkeyqUGREAT_QUESTION_VOTES_UPqu.
@@ -0,0 +1 @@
+�GA�­4ƨ.�}q(UvalueqU/upfiles/logo.pngqUidq�UkeyqUAPP_LOGOqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�­="=q.�}q(UvalueqM�Uidq�6UkeyqUPOPULAR_QUESTION_VIEWSqu.
@@ -0,0 +1 @@
+�GA�­4|�.�}q(Uvalueq�Uidq�UkeyqUSHOW_WELCOME_BOXqu.
Binary file not shown.
@@ -0,0 +1,2 @@
+�GA�¬�Ƨ�.�}q(UvalueqKdUidq�
+UkeyqUSTRUNK_AND_WHITE_EDITSqu.
@@ -0,0 +1 @@
+�GA�­3�K�.�}q(Uvalueq�Uidq�UkeyqUUSE_CUSTOM_HEADqu.
@@ -0,0 +1 @@
+�GA�¬�ҏ\.�}q(UvalueqK(Uidq� UkeyqUGURU_UP_VOTESqu.
@@ -0,0 +1,2 @@
+�GA�¬��$�.�}q(UvalueqK
+Uidq� UkeyqUENLIGHTENED_UP_VOTESqu.
Binary file not shown.
@@ -0,0 +1 @@
+�GA�­=&V.�}q(UvalueqKdUidq�7UkeyqUSTELLAR_QUESTION_FAVSqu.
@@ -0,0 +1 @@
+�GA�­=+.�}q(UvalueqM� Uidq�5UkeyqUNOTABLE_QUESTION_VIEWSqu.
@@ -0,0 +1 @@
+�GA�­4\).�}q(Uvalueq�Uidq�!UkeyqUSIDEBAR_UPPER_SHOWqu.
@@ -0,0 +1 @@
+�GA�­4!G�.�}q(UvalueqUmarkdownqUidq�"UkeyqUSIDEBAR_LOWER_RENDER_MODEqu.
@@ -0,0 +1,5 @@
+this directory contains sample commands to be executed
+by cron
+
+files with names ending "virtuanenv" should work under Python virtualenv system
+other files - with standard unix setup
@@ -0,0 +1,5 @@
+#!/bin/sh
+PYTHONPATH=/home/local/zhimaq
+export PYTHONPATH
+PROJECT_ROOT=$PYTHONPATH/zhimaq
+python2.5 $PROJECT_ROOT/manage.py send_email_alerts
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+WORKON_HOME=~/envs/osqa
+PROJECT_ROOT=~/webapps/osqa_server/projects/osqa/
+
+# activate virtual environment
+. $WORKON_HOME/bin/activate
+
+cd $PROJECT_ROOT
+python manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_mail.log 2>&1
No changes.
@@ -0,0 +1,4 @@
+from meta import *
+from node import *
+from user import *
+from page import *
Oops, something went wrong.

0 comments on commit 5dcb199

Please sign in to comment.