Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config and Docs problem #5

Open
mountainpaul opened this issue Nov 5, 2009 · 3 comments
Open

Config and Docs problem #5

mountainpaul opened this issue Nov 5, 2009 · 3 comments

Comments

@mountainpaul
Copy link

After following docs I had two problems the first was the docs said to run it as follows.
./manage.py testmaker APP
generates the following error:
Error: 'APP' is not a valid port number
So I reran it as
./manage.py testmaker 8000 APP
That starts okay, but when I view the home page I get the following error:
Traceback (most recent call last):

File "/home/paul/.virtualenvs/waypoints-env/lib/python2.5/site-packages/Django-1.0.3-py2.5.egg/django/core/servers/basehttp.py", line 279, in run
self.result = application(self.environ, self.start_response)

File "/home/paul/.virtualenvs/waypoints-env/lib/python2.5/site-packages/Django-1.0.3-py2.5.egg/django/core/servers/basehttp.py", line 651, in call
return self.application(environ, start_response)

File "/home/paul/.virtualenvs/waypoints-env/lib/python2.5/site-packages/Django-1.0.3-py2.5.egg/django/core/handlers/wsgi.py", line 230, in call
self.load_middleware()

File "/home/paul/.virtualenvs/waypoints-env/lib/python2.5/site-packages/Django-1.0.3-py2.5.egg/django/core/handlers/base.py", line 41, in load_middleware
raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)

ImproperlyConfigured: Error importing middleware test_utils.testmaker.middleware.testmaker: "cannot import name importlib"

@ericholscher
Copy link
Owner

I will fix the documentation. If you don't have importlib, what version of django are you running on? I believe it was introduced in 1.0 or 1.1. I should probably mark what version of Django this supports (probably trunk/latest release)

@mountainpaul
Copy link
Author

I'm running Django 1.0.3 importlib appears to be installed
Searching for importlib
Best match: importlib 1.0.1
Processing importlib-1.0.1-py2.5.egg
importlib 1.0.1 is already the active version in easy-install.pth

Using /home/paul/.virtualenvs/pinax-env/lib/python2.5/site-packages/importlib-1.0.1-py2.5.egg
Processing dependencies for importlib
Finished processing dependencies for importlib

@mountainpaul
Copy link
Author

Ahhh, I see it is a different importlib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants