rancavil / django-py3-openshift-quickstart Goto Github PK
View Code? Open in Web Editor NEWDjango 1.6 git repository for OpenShift with Python 3.3
Django 1.6 git repository for OpenShift with Python 3.3
Can use jango 1.7 ?
Thanks for these starter projects, they're very helpful.
In https://github.com/rancavil/django-openshift-quickstart, you had a nice little tutorial on how to set up a virtualenv to run the app locally. You didn't include this in the py3 version of the project, so I performed all the same steps as in the other tutorial.
But it doesn't work. I get
(venv) % python manage.py runserver wsgi/openshift (master ⚡) lanchester
Validating models...
0 errors found
May 14, 2014 - 06:23:03
Django version 1.6, using settings 'settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x106142a70>
Traceback (most recent call last):
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/utils/module_loading.py", line 21, in import_by_path
module = import_module(module_path)
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1529, in _find_and_load_unlocked
ImportError: No module named 'wsgi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/utils/autoreload.py", line 93, in wrapper
fn(*args, **kwargs)
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/core/management/commands/runserver.py", line 118, in inner_run
handler = self.get_handler(*args, **options)
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/contrib/staticfiles/management/commands/runserver.py", line 24, in get_handler
handler = super(Command, self).get_handler(*args, **options)
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/core/management/commands/runserver.py", line 41, in get_handler
return get_internal_wsgi_application()
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/core/servers/basehttp.py", line 57, in get_internal_wsgi_application
error_prefix="WSGI application '%s' could not be loaded; " % app_path
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/utils/module_loading.py", line 26, in import_by_path
sys.exc_info()[2])
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/utils/six.py", line 490, in reraise
raise value.with_traceback(tb)
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/site-packages/Django-1.6-py3.3.egg/django/utils/module_loading.py", line 21, in import_by_path
module = import_module(module_path)
File "/Volumes/WorkHD/web/lobby2/venv/lib/python3.3/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1529, in _find_and_load_unlocked
django.core.exceptions.ImproperlyConfigured: WSGI application 'wsgi.application' could not be loaded; Error importing module wsgi: "No module named 'wsgi'"
But the little main program 'wsgi.py' at the root of the directory does start a local Django.
Is there no way to use manage.py
on a local dev setup?
I'm using python 3.3.5 from homebrew on OSX.
Im trying to use openshift for my django 1.8 project. What sorts of changes am I expected to make from this django 1.6 example?
Hi, I just built a cartridge to run nginx and python (2.7 and 3.3) under openshift. Would you like to test/merge/port with your django install?
EDIT: Sorry, almost forgot to paste the link: https://github.com/caruccio/openshift-nginx-python
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.