Commit b1b19d25 authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

parent 91d08109
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>osqa-pydev</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.python.pydev.django.djangoNature</nature>
</natures>
</projectDescription>
K 25
svn:wc:ra_dav:version-url
V 33
/svnroot/!svn/ver/1272/osqa/trunk
END
rmpyc
K 25
svn:wc:ra_dav:version-url
V 37
/svnroot/!svn/ver/17/osqa/trunk/rmpyc
END
urls.py
K 25
svn:wc:ra_dav:version-url
V 41
/svnroot/!svn/ver/1077/osqa/trunk/urls.py
END
osqa.wsgi.dist
K 25
svn:wc:ra_dav:version-url
V 47
/svnroot/!svn/ver/618/osqa/trunk/osqa.wsgi.dist
END
manage.py
K 25
svn:wc:ra_dav:version-url
V 43
/svnroot/!svn/ver/1077/osqa/trunk/manage.py
END
LICENSE
K 25
svn:wc:ra_dav:version-url
V 39
/svnroot/!svn/ver/79/osqa/trunk/LICENSE
END
osqa.iml
K 25
svn:wc:ra_dav:version-url
V 42
/svnroot/!svn/ver/1261/osqa/trunk/osqa.iml
END
settings_local.py.dist
K 25
svn:wc:ra_dav:version-url
V 56
/svnroot/!svn/ver/1122/osqa/trunk/settings_local.py.dist
END
.project
K 25
svn:wc:ra_dav:version-url
V 41
/svnroot/!svn/ver/186/osqa/trunk/.project
END
__init__.py
K 25
svn:wc:ra_dav:version-url
V 45
/svnroot/!svn/ver/1077/osqa/trunk/__init__.py
END
INSTALL
K 25
svn:wc:ra_dav:version-url
V 40
/svnroot/!svn/ver/361/osqa/trunk/INSTALL
END
settings.py
K 25
svn:wc:ra_dav:version-url
V 45
/svnroot/!svn/ver/1242/osqa/trunk/settings.py
END
K 10
svn:ignore
V 90
.pydevproject
cache
settings_local.py
.settings
.idea
*.iml
osqa.wsgi
jambazov.ipr
K 13
svn:mergeinfo
V 182
/osqa/branches/cacheimp:874-939
/osqa/branches/carpenter:691-725
/osqa/branches/hernani:772-832
/osqa/branches/jambazov:675-831
/osqa/branches/notification-config:809,811-812,825-827
K 19
svnmerge-integrated
V 33
/osqa/branches/experimental:1-105
END
10
dir
1272
http://svn.osqa.net/svnroot/osqa/trunk
http://svn.osqa.net/svnroot
2012-06-15T18:17:36.689322Z
1272
jordan
has-props
0cfe37f9-358a-4d5e-be75-b63607b5c754
locale
dir
tmp
dir
cron
dir
settings_local.py.dist
file
2012-06-22T20:34:49.081240Z
7eb057d1a82797568b14d5e6ec98a360
2011-07-17T18:20:29.006551Z
1122
jordan
1342
INSTALL
file
2012-06-22T20:34:49.081240Z
1ebe0341bc13bafab9b49e1fdc16abd0
2010-06-03T01:55:59.867375Z
361
matt
159
urls.py
file
2012-06-22T20:34:49.081240Z
2ab53b48e9974e3f0284d56180af472e
2011-06-25T03:50:15.766114Z
1077
jordan
has-props
417
osqa.wsgi.dist
file
2012-06-22T20:34:49.081240Z
5f6118efa1353e400c19dfbde9646622
2010-11-23T22:39:56.121718Z
618
claycarpenter
495
manage.py
file
2012-06-22T20:34:49.077242Z
18a5768ff203b109efc389760a4eef5a
2011-06-25T03:50:15.766114Z
1077
jordan
has-props
590
forum_modules
dir
log
dir
LICENSE
file
2012-06-22T20:34:49.077242Z
780ed67b633b197f1165ed05b1182609
2010-04-27T21:31:30.438705Z
79
rick
681
osqa.iml
file
2012-06-22T20:34:49.077242Z
bac9c1a592576ad4c6ef59990ffe5009
2012-05-09T20:59:46.733114Z
1261
jordan
1066
.project
file
2012-06-22T20:34:49.077242Z
c88742221eebb0ad28590009c876a103
2010-05-09T16:37:31.070203Z
186
rick
602
__init__.py
file
2012-06-22T20:34:49.077242Z
d41d8cd98f00b204e9800998ecf8427e
2011-06-25T03:50:15.766114Z
1077
jordan
has-props
0
settings.py
file
2012-06-22T20:34:49.081240Z
c27b585afca8fb14dfcd889811b976f5
2012-04-03T23:01:24.940723Z
1242
jordan
has-props
4660
forum
dir
rmpyc
file
2012-06-22T20:34:49.081240Z
ef04cd0870a8a5c4e7b84f7aadf4afcf
2010-04-10T04:19:53.735481Z
17
hernani
26
K 13
svn:eol-style
V 6
native
END
K 13
svn:eol-style
V 6
native
END
K 13
svn:eol-style
V 6
native
K 13
svn:mergeinfo
V 250
/osqa/branches/cacheimp/settings.py:874-931
/osqa/branches/carpenter/settings.py:691-725
/osqa/branches/hernani/settings.py:772-832
/osqa/branches/jambazov/settings.py:675-831
/osqa/branches/notification-config/settings.py:693-794,809,811-812,825-827
END
K 13
svn:eol-style
V 6
native
END
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>osqa-pydev</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.python.pydev.django.djangoNature</nature>
</natures>
</projectDescription>
For installation instruction go to:
http://wiki.osqa.net/display/docs/Home
The wiki contains many recipes to help you install on different hosting providers.
\ No newline at end of file
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/>.
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError, e:
import traceback
traceback.print_exc()
import sys
sys.stderr.write("Error: Can't find the file 'forms.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file forms.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
sys.exit(1)
if __name__ == "__main__":
execute_manager(settings)
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="FacetManager">
<facet type="django" name="Django">
<configuration>
<option name="rootFolder" value="$MODULE_DIR$" />
<option name="settingsModule" value="settings.py" />
<option name="manageScript" value="manage.py" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 2.7.1 (/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TemplatesService">
<option name="templateLanguage" value="Django" />
<option name="TEMPLATE_CONFIGURATION" value="Django" />
<option name="TEMPLATE_FOLDERS">
<list>
<option value="$MODULE_DIR$/templates" />
</list>
</option>
</component>
</module>
import os
import sys
sys.path.append('/path/to_dir_above')
sys.path.append('/path/to_dir_above/osqa')
# The first part of this module name should be identical to the directory name
# of the OSQA source. For instance, if the full path to OSQA is
# /home/osqa/osqa-server, then the DJANGO_SETTINGS_MODULE should have a value
# of 'osqa-server.settings'.
os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
rm `find . -name '*.pyc'`
# encoding:utf-8
import os.path
import sys
SITE_ID = 1
ADMIN_MEDIA_PREFIX = '/admin_media/'
SECRET_KEY = '$oo^&_m&qwbib=(_4m_n*zn-d=g#s0he5fx9xonnym#8p6yigm'
CACHE_MAX_KEY_LENGTH = 235
MIDDLEWARE_CLASSES = [
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.csrf.CsrfResponseMiddleware',
'forum.middleware.django_cookies.CookiePreHandlerMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'forum.middleware.extended_user.ExtendedUser',
'forum.middleware.anon_user.ConnectToSessionMessagesMiddleware',
'forum.middleware.request_utils.RequestUtils',
'forum.middleware.cancel.CancelActionMiddleware',
'forum.middleware.admin_messages.AdminMessagesMiddleware',
'forum.middleware.custom_pages.CustomPagesFallbackMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'forum.middleware.django_cookies.CookiePostHandlerMiddleware',
]
TEMPLATE_CONTEXT_PROCESSORS = [
'django.core.context_processors.request',
'forum.context.application_settings',
'forum.user_messages.context_processors.user_messages',
'django.core.context_processors.auth',
]
ROOT_URLCONF = 'urls'
APPEND_SLASH = True
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__),'forum','skins').replace('\\','/'),
)
FILE_UPLOAD_TEMP_DIR = os.path.join(os.path.dirname(__file__), 'tmp').replace('\\','/')
FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.MemoryFileUploadHandler",
"django.core.files.uploadhandler.TemporaryFileUploadHandler",)
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
ALLOW_FILE_TYPES = ('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.tiff')
ALLOW_MAX_FILE_SIZE = 1024 * 1024
# User settings
from settings_local import *
if DEBUG:
TEMPLATE_LOADERS = [
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'forum.modules.template_loader.module_templates_loader',
'forum.skins.load_template_source',
]
else:
TEMPLATE_LOADERS = [
('django.template.loaders.cached.Loader',(
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'forum.modules.template_loader.module_templates_loader',
'forum.skins.load_template_source',
)),
]
try:
if len(FORUM_SCRIPT_ALIAS) > 0:
APP_URL = '%s/%s' % (APP_URL, FORUM_SCRIPT_ALIAS[:-1])
except NameError:
pass
app_url_split = APP_URL.split("://")
APP_PROTOCOL = app_url_split[0]
APP_DOMAIN = app_url_split[1].split('/')[0]
APP_BASE_URL = '%s://%s' % (APP_PROTOCOL, APP_DOMAIN)
FORCE_SCRIPT_NAME = ''
for path in app_url_split[1].split('/')[1:]:
FORCE_SCRIPT_NAME = FORCE_SCRIPT_NAME + '/' + path
if FORCE_SCRIPT_NAME.endswith('/'):
FORCE_SCRIPT_NAME = FORCE_SCRIPT_NAME[:-1]
#Module system initialization
MODULES_PACKAGE = 'forum_modules'
MODULES_FOLDER = os.path.join(SITE_SRC_ROOT, MODULES_PACKAGE)
MODULE_LIST = filter(lambda m: getattr(m, 'CAN_USE', True), [
__import__('forum_modules.%s' % f, globals(), locals(), ['forum_modules'])
for f in os.listdir(MODULES_FOLDER)
if os.path.isdir(os.path.join(MODULES_FOLDER, f)) and
os.path.exists(os.path.join(MODULES_FOLDER, "%s/__init__.py" % f)) and
not f in DISABLED_MODULES
])
[MIDDLEWARE_CLASSES.extend(
["%s.%s" % (m.__name__, mc) for mc in getattr(m, 'MIDDLEWARE_CLASSES', [])]
) for m in MODULE_LIST]
[TEMPLATE_LOADERS.extend(
["%s.%s" % (m.__name__, tl) for tl in getattr(m, 'TEMPLATE_LOADERS', [])]
) for m in MODULE_LIST]
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.humanize',
'django.contrib.sitemaps',
'django.contrib.markup',
'forum',
]
if DEBUG:
try:
import debug_toolbar
MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware')
INSTALLED_APPS.append('debug_toolbar')
except:
pass
try:
import south
INSTALLED_APPS.append('south')
except:
pass
# Try loading Gunicorn web server
try:
import gunicorn
INSTALLED_APPS.append('gunicorn')
except ImportError:
pass
if not DEBUG:
try:
import rosetta
INSTALLED_APPS.append('rosetta')
except:
pass
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend',]
# encoding:utf-8
import os.path
SITE_SRC_ROOT = os.path.dirname(__file__)
LOG_FILENAME = 'django.osqa.log'
#for logging
import logging
logging.basicConfig(
filename=os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME),
level=logging.ERROR,
format='%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
)
#ADMINS and MANAGERS
ADMINS = ()
MANAGERS = ADMINS
DEBUG = False
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': True
}
TEMPLATE_DEBUG = DEBUG
INTERNAL_IPS = ('127.0.0.1',)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'osqa',
'USER': 'root',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
CACHE_BACKEND = 'file://%s' % os.path.join(os.path.dirname(__file__),'cache').replace('\\','/')
#CACHE_BACKEND = 'dummy://'
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
# This should be equal to your domain name, plus the web application context.
# This shouldn't be followed by a trailing slash.
# I.e., http://www.yoursite.com or http://www.hostedsite.com/yourhostapp
APP_URL = 'http://'
#LOCALIZATIONS
TIME_ZONE = 'America/New_York'
#OTHER SETTINGS
USE_I18N = True
LANGUAGE_CODE = 'en'
DJANGO_VERSION = 1.1
OSQA_DEFAULT_SKIN = 'default'
DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']
from django.conf.urls.defaults import *
from django.utils.translation import ugettext as _
from django.conf import settings
urlpatterns = patterns('',
(r'', include('forum.urls')),
)
if 'rosetta' in settings.INSTALLED_APPS:
urlpatterns = patterns('',
url(r'^rosetta/', include('rosetta.urls')),
) + urlpatterns
handler404 = 'forum.views.meta.page'
handler500 = 'forum.views.meta.error_handler'
......@@ -19,8 +19,8 @@ WSGISocketPrefix ${APACHE_RUN_DIR}
Allow from all
</Directory>
Alias /admin_media/ /srv/CHANGE_THIS_PATH/env/lib/python2.7/site-packages/Dja$
<Directory /srv/CHANGE_THIS_PATH/env/lib/python2.7/site-packages/Django-1.3-p$
Alias /admin_media/ /srv/CHANGE_THIS_PATH/env/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/contrib/admin/media/
<Directory /srv/CHANGE_THIS_PATH/env/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/contrib/admin/media>
Order allow,deny
Allow from all
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment