Giter Site home page Giter Site logo

django-py3-openshift-quickstart's People

Contributors

rancavil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-py3-openshift-quickstart's Issues

virtualenv?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.