Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to import django-idom into a django project? #839

Answered by rmorshea
legacy-chase asked this question in Question
Discussion options

The docs don't specify the correct to way to import Django-IDOM into a django project.

I have added 'django_idom' to INSTALLED_APPS, as is typical for django add ons, but I receive the following error when running manage.py runserver:

File "/Users/xxx/Projects/nuthatch/venv/lib/python3.11/site-packages/django/template/defaulttags.py", line 1027, in find_library
 return parser.libraries[name]
 ~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'idom'

I have also tried adding 'idom' to INSTALLED_APPS. In this case runserver starts, but I receive a 500 error from django:

TemplateSyntaxError at /
'idom' is not a registered tag library. Must be one of:
...

Does anyone know the right way?

You must be logged in to vote

Have you checked out the documentation here?

Replies: 1 comment 1 reply

Comment options

Have you checked out the documentation here?

You must be logged in to vote
1 reply
Comment options

@legacy-chase To clarify, the Django-IDOM docs are separate from the IDOM documentation.

As Ryan mentioned, see the following link: https://idom-team.github.io/django-idom/getting-started/installation/

Answer selected by rmorshea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /