Skip to content

Commit 29bc346

Browse files
Clean up setup.py and wsgi/application
1 parent 8b5b763 commit 29bc346

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

setup.py

100644100755
+11-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
#!/usr/bin/env python
2+
13
from setuptools import setup
24

3-
setup(name='YourAppName',
4-
version='1.0',
5-
description='OpenShift App',
6-
author='Your Name',
7-
author_email='[email protected]',
8-
url='http://www.python.org/sigs/distutils-sig/',
9-
install_requires=['Django>=1.3'],
10-
)
5+
setup(
6+
name='YourAppName',
7+
version='1.0',
8+
description='OpenShift App',
9+
author='Your Name',
10+
author_email='[email protected]',
11+
url='http://www.python.org/sigs/distutils-sig/',
12+
install_requires=['Django>=1.3'],
13+
)

wsgi/application

100644100755
+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import os, sys
1+
#!/usr/bin/env python
2+
3+
import os
4+
import sys
5+
26
os.environ['DJANGO_SETTINGS_MODULE'] = 'openshift.settings'
3-
sys.path.append(os.environ['OPENSHIFT_REPO_DIR'] + '/wsgi/openshift')
7+
sys.path.append(os.path.join(os.environ['OPENSHIFT_REPO_DIR'], 'wsgi', 'openshift'))
8+
49
import django.core.handlers.wsgi
510
application = django.core.handlers.wsgi.WSGIHandler()
6-

wsgi/openshift/templates/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)