Hi, Thanks for your comments on version numbers, but moving to 1.4 isn't a quick option for me/us so I'm stuck on 1.1 for a while.
Trying to run the app and instead of getting the "welcome" page I get the following, see below. Not withstanding my version issue, anyone got any ideas on this. Thanx, Tim Traceback (most recent call last): File "/Users/timmorris/Sites/django/django-trunk/django/core/servers/basehttp.py", line 279, in run self.result = application(self.environ, self.start_response) File "/Users/timmorris/Sites/django/django-trunk/django/core/servers/basehttp.py", line 651, in __call__ return self.application(environ, start_response) File "/Users/timmorris/Sites/django/django-trunk/django/core/handlers/wsgi.py", line 230, in __call__ self.load_middleware() File "/Users/timmorris/Sites/django/django-trunk/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e) ImproperlyConfigured: Error importing middleware django.middleware.common: "cannot import name force_text" On Tuesday, September 11, 2012 11:45:17 AM UTC+1, Cal Leeming [Simplicity Media Ltd] wrote: > > Ouch, 1.1 is very old indeed. > > I have seen compatibility issues before when running django/py apps on a > mac, but can't say I've ever ran into this before. > > Could you upgrade to the latest (1.4.1) and see if you still experience > the same issue? > > Cal > > On Tue, Sep 11, 2012 at 11:03 AM, Morrti <sirr...@googlemail.com<javascript:> > > wrote: > >> Hi, >> >> I'm a total newbie to Django and I'm trying to follow the build your >> first app tutorial from the site >> https://docs.djangoproject.com/en/1.1/intro/tutorial01/ but have soon >> run into problems, please see below. This is as a result of running the >> python manage.py runserver command. >> >> If anyone can help, I believe I'm running version 1.1 of django, not sure >> what else you may want to know. >> >> Thanx, >> >> python manage.py runserver >> Validating models... >> >> Unhandled exception in thread started by <bound method Command.inner_run >> of <django.contrib.staticfiles.management.commands.runserver.Command object >> at 0x10114d0d0>> >> Traceback (most recent call last): >> File >> "/Users/timmorris/Sites/django/django-trunk/django/core/management/commands/runserver.py", >> >> line 91, in inner_run >> self.validate(display_num_errors=True) >> File >> "/Users/timmorris/Sites/django/django-trunk/django/core/management/base.py", >> line 277, in validate >> num_errors = get_validation_errors(s, app) >> File >> "/Users/timmorris/Sites/django/django-trunk/django/core/management/validation.py", >> >> line 32, in get_validation_errors >> for (app_name, error) in get_app_errors().items(): >> File >> "/Users/timmorris/Sites/django/django-trunk/django/db/models/loading.py", >> line 163, in get_app_errors >> self._populate() >> File >> "/Users/timmorris/Sites/django/django-trunk/django/db/models/loading.py", >> line 69, in _populate >> self.load_app(app_name, True) >> File >> "/Users/timmorris/Sites/django/django-trunk/django/db/models/loading.py", >> line 93, in load_app >> models = import_module('.models', app_name) >> File >> "/Users/timmorris/Sites/django/django-trunk/django/utils/importlib.py", >> line 35, in import_module >> __import__(name) >> File >> "/Users/timmorris/Sites/django/django-trunk/django/contrib/auth/models.py", >> line 18, in <module> >> from django.contrib.contenttypes.models import ContentType >> File >> "/Users/timmorris/Sites/django/django-trunk/django/contrib/contenttypes/models.py", >> >> line 125, in <module> >> class ContentType(models.Model): >> File >> "/Users/timmorris/Sites/django/django-trunk/django/db/models/base.py", line >> 64, in __new__ >> new_class.add_to_class('_meta', Options(meta, **kwargs)) >> TypeError: Error when calling the metaclass bases >> __init__() keywords must be strings >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/django-users/-/xxWivGGykWYJ. >> To post to this group, send email to django...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> django-users...@googlegroups.com <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/NBUbUejFjbgJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.