Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Ask
website
Commits
7711154a
Commit
7711154a
authored
Jun 23, 2012
by
Giuseppe Terrasi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
795d73a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
osqa.wsgi
osqa.wsgi
+27
-0
No files found.
osqa.wsgi
0 → 100644
View file @
7711154a
#!/src/CHANGE_THE_PATH/env python
ALLDIRS
=
[
'/srv/CHANGE_THE_PATH/env/lib/python2.6/site-packages'
]
import
os
import
sys
import
site
sys
.
path
.
append
(
'/srv/CHANGE_THE_PATH/www'
)
sys
.
path
.
append
(
'/srv/CHANGE_THE_PATH/www/osqa'
)
activate_this
=
'/srv/CHANGE_THE_PATH/env/bin/activate_this.py'
execfile
(
activate_this
,
dict
(
__file__
=
activate_this
))
prev_sys_path
=
list
(
sys
.
path
)
for
directory
in
ALLDIRS
:
site
.
addsitedir
(
directory
)
new_sys_path
=
[]
for
item
in
list
(
sys
.
path
):
if
item
not
in
prev_sys_path
:
new_sys_path
.
append
(
item
)
sys
.
path
.
remove
(
item
)
sys
.
path
[:
0
]
=
new_sys_path
os
.
environ
[
'DJANGO_SETTINGS_MODULE'
]
=
'osqa.settings'
import
django.core.handlers.wsgi
application
=
django
.
core
.
handlers
.
wsgi
.
WSGIHandler
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment