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

Markup presence should not be checked on import time #1

Closed
Almad opened this issue Jun 17, 2009 · 1 comment
Closed

Markup presence should not be checked on import time #1

Almad opened this issue Jun 17, 2009 · 1 comment

Comments

@Almad
Copy link
Contributor

Almad commented Jun 17, 2009

If form using markupfield is imported before database is synced, following error occurs.

Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/nose/loader.py", line 379, in loadTestsFromName
    addr.filename, addr.module)
File "/usr/lib64/python2.6/site-packages/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
File "/usr/lib64/python2.6/site-packages/nose/importer.py", line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
File "./../unit_project/tests/test_forms.py", line 4, in <module>
    from esus.phorum.forms import *
File "./../../esus/phorum/forms.py", line 28, in <module>
    class CommentCreationForm(forms.Form):
File "./../../esus/phorum/forms.py", line 33, in CommentCreationForm
    field_name="text",
File "/home/almad/project/django-markup/djangomarkup/fields.py", line 70, in __init__
    self.processor = TextProcessor.objects.get(name=syntax_processor_name or getattr(settings, "DEFAULT_MARKUP", "markdown"))
File "/home/almad/project/django/django/db/models/manager.py", line 120, in get
    return self.get_query_set().get(*args, **kwargs)
File "/home/almad/project/django/django/db/models/query.py", line 269, in get
    num = len(clone)
File "/home/almad/project/django/django/db/models/query.py", line 68, in __len__
    self._result_cache = list(self.iterator())
File "/home/almad/project/django/django/db/models/query.py", line 207, in iterator
    for row in self.query.results_iter():
File "/home/almad/project/django/django/db/models/sql/query.py", line 287, in results_iter
    for rows in self.execute_sql(MULTI):
File "/home/almad/project/django/django/db/models/sql/query.py", line 2359, in execute_sql
    cursor.execute(sql, params)
File "/home/almad/project/django/django/db/backends/util.py", line 19, in execute
    return self.cursor.execute(sql, params)
File "/home/almad/project/django/django/db/backends/sqlite3/base.py", line 193, in execute
    return Database.Cursor.execute(self, query, params)
OperationalError: no such table: djangomarkup_textprocessor
@Almad
Copy link
Contributor Author

Almad commented Jun 17, 2009

My bad - cause by absence of djangomarkup in INSTALLED_APPS.

This issue was closed.
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

1 participant