Permalink
Browse files

config file

  • Loading branch information...
1 parent 229f1c8 commit 36d4a44339601604d5804e778a823b351f0b3d05 @fanzeyi committed Mar 7, 2012
Showing with 35 additions and 0 deletions.
  1. +35 −0 config.example.py
View
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# AUTHOR: Zeray Rice <fanzeyi1994@gmail.com>
+# FILE: config.example.py
+# CREATED: 02:35:50 08/03/2012
+# MODIFIED: 02:36:05 08/03/2012
+# DESCRIPTION: site config
+
+import os
+
+mysql_config = {
+ 'mysql_host' : '',
+ 'mysql_user' : '',
+ 'mysql_password' : '',
+ 'mysql_database' : ''
+}
+
+accept_lang = {
+ 'zh_cn' : 'zh_CN',
+ 'en' : 'en_US',
+}
+
+site_config = {
+ 'site_title' : u'Online Judge',
+ 'base_domain' : '',
+ 'login_url' : '/signin',
+ 'template_path' : os.path.join(os.path.dirname(__file__), 'tpl'),
+ 'static_path' : os.path.join(os.path.dirname(__file__), "static"),
+ 'i18n_path' : os.path.join(os.path.dirname(__file__), 'i18n'),
+ 'xsrf_cookies' : True,
+ 'cookie_secret' : '', #
+ 'bcrypt_salt' : '', # import bcrypt; bcrypt.gensalt(log_rounds=4)
+ 'default_mail' : 'no-reply@fanhe.org',
+ 'mail_server' : '127.0.0.1',
+}
+

0 comments on commit 36d4a44

Please sign in to comment.