There's a small app I want to host so I figured I would generate an app using a scaffold to make sure I configure things right before filling in the missing pieces. My problem is that I dont know how to get my app running with Python3 instead of 2.
Here is what I have done:
So here's what I've done:
pcreate -s alchemy my_project
python3.3 setup.py develop --user
I then created a file called my_wsgi_file.py that looks like:
def make_application():
from pyramid.paster import get_app, setup_logging
ini_path = 'path/to/production.ini'
setup_logging(ini_path)
application = get_app(ini_path, 'main')
return application
And the main wsgi file looks like:
blah blah
from my_project import my_wsgi_file
application = my_wsgi_file.make_application()
When I run the app I get a server error and the error log reports a SyntaxError as I try to import my_wsgi_file that looks a little something like:
File "/usr/local/lib/python3.3/configparser.py", line 597
2013-03-19 14:21:04,585 : allow_no_value=False, *, delimiters=('=', ':'),
I used sys.version_info to check which version of Python is being used and it turns out it is 2.7
Can someone please tell me if I have made any errors? And/or give us a step by step guide on how to host a Python3 Pyramis app using PythonAnywhere