Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Installation of communitydraft

Hi,

i just wanted to give sphene a try and downloaded the actual communitytools and communitydraft from svn. I was following the installation guide for communitydraft, set the DB to sqlite3 but at the syncdb i got following errors:

andre@andre-desktop:~/projects/sct/communitydraft/community$ ./manage.py syncdb
ROOT_PATH: /home/andre/projects/sct/communitydraft/community / LIB_PATH: /home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll
ROOT_PATH: /home/andre/projects/sct/communitydraft/community / LIB_PATH: /home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll
Executing module body.
Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 272, in execute_manager
    utility.execute()
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 219, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 72, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 85, in execute
    self.validate()
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 112, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.5/site-packages/django/core/management/validation.py", line 57, in get_validation_errors
    if isinstance(f.choices, basestring) or not is_iterable(f.choices):
  File "/usr/lib/python2.5/site-packages/django/utils/itercompat.py", line 64, in is_iterable
    iter(x)
  File "/home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll/sphene/sphboard/models.py", line 107, in __iter__
    for ct in categorytyperegistry.get_category_type_list():
  File "/home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll/sphene/sphboard/categorytyperegistry.py", line 126, in get_category_type_list
    __assure_initialized();
  File "/home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll/sphene/sphboard/categorytyperegistry.py", line 131, in __assure_initialized
    __init_category_types()
  File "/home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll/sphene/sphboard/categorytyperegistry.py", line 138, in __init_category_types
    mod = __import__(app_name, {}, {}, ['categorytypes'])
  File "/home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll/sphene/sphblog/categorytypes.py", line 15, in <module>
    class BlogPostForm(PostForm):
  File "/home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll/sphene/sphblog/categorytypes.py", line 20, in BlogPostForm
    tags = TagField(model = Post, required = False)
  File "/home/andre/projects/sct/communitydraft/community/../../communitytools/sphenecoll/sphene/community/fields.py", line 17, in __init__
    content_type_id = ContentType.objects.get_for_model(model).id
  File "/usr/lib/python2.5/site-packages/django/contrib/contenttypes/models.py", line 28, in get_for_model
    defaults = {'name': smart_unicode(opts.verbose_name_raw)},
  File "/usr/lib/python2.5/site-packages/django/db/models/manager.py", line 72, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)
  File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line 286, in get_or_create
    return self.get(**kwargs), False
  File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line 261, in get
    obj_list = list(clone)
  File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line 114, in __iter__
    return iter(self._get_data())
  File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line 486, in _get_data
    self._result_cache = list(self.iterator())
  File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line 189, in iterator
    cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params)
  File "/usr/lib/python2.5/site-packages/django/db/backends/util.py", line 18, in execute
    return self.cursor.execute(sql, params)
  File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/base.py", line 133, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: django_content_type


I am using the django trunk version and my own small blog app is just working as expected. What am i doing wrong?

Regards,

Andre
hi,

do you have 'django.contrib.contenttypes' in your INSTALLED_APPS ?
how are you trying community draft + community tools ? have you downloaded both and are running ./manage.py ... from within communitydraft/community ?
Hey, we have Signatures !!! Great, isn't it ? ;)
do you have 'django.contrib.contenttypes' in your INSTALLED_APPS ?
It is in communitydraft/community/settings.py

how are you trying community draft + community tools ?

I just downloaded both projects via subversion into the same directory, made and edited a settings_local.py (sqlite3 and filename of DB), and then the run of syncdb gives the error message quoted above.

have you downloaded both and are running ./manage.py ... from within communitydraft/community ?

Yes, i have.

Because communitydraft was not running, i tried the simpleproject from the examples directory of the communitytools. Everything runs as expected, so i am doing something wrong within comunitydraft.

Regards,

Andre


--- Last Edited by Rotlaus at 2008-03-24 11:02:06 ---
i found the problem .. please update from subversion and try again .. (communitytools)


--- Last Edited by Herbert Poul at 2008-03-24 11:15:04 ---
Hey, we have Signatures !!! Great, isn't it ? ;)
i found the problem .. please update from subversion and try again .. (communitytools)
Works like a charm! :-)
Thank you very much,

Andre

Please login to post a reply.



Powered by Sphene Community Tools