Setting up FreeHG

Jonathan Stott jonathan.stott at gmail.com
Fri Aug 1 04:50:25 CDT 2008


Hi,

I'm trying to install FreeHG for my group at work, so we can all use
mercurial and share work easily :)

I'm running an FC9 system, with Python 2.5.1 and Django 0.96.2 (and
mercurial 1.0.1). I applied your views patch, and setup my settings
file (I'm using mysql, not sqlite3)

However when I attempt to run the script locally, I get this:

# ./manage.py runserver
Validating models...
freehg.repos: __init__() got an unexpected keyword argument 'max_length'
1 error found.

Django version 0.96.2, using settings 'freehg.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Which in the browser is expanded out to a stack trace like so:

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py"
in get_response
 68. callback, callback_args, callback_kwargs = resolver.resolve(request.path)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve
 160. for pattern in self.urlconf_module.urlpatterns:
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in
_get_urlconf_module
 177. self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
File "/root/freehg/../freehg/urls.py" in
 39. from freehg.htpasswdutils import monkeypatch_user_model
File "/root/freehg/../freehg/repos/models.py" in
 49. class Repo(models.Model):
File "/root/freehg/../freehg/repos/models.py" in Repo
 51. name = models.CharField(max_length=30)

 TypeError at /
 __init__() got an unexpected keyword argument 'max_length'

Any hints would be appreciated.

Regards,
Jon


More information about the Mercurial mailing list