Friday, March 6, 2015

attaching an app to site via apphook fails. server crashes only (beginner question)

Hi there,

regarding the django-cms tutorial I put this file into the 'polls' app:

cms_app.py

rom cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool


class PollApp(CMSApp):
    name = 'Poll App'
    urls = 'polls.urls'

apphook_pool.register(PollApp)

I created a site and via the django-cms interface. Than edited the site
via advanced settings: adding the hooked app and defining a 'namespace'
as reqired.

result is:

ImportError at /de/

No module named 'p'
Request Method: GET
Request URL: http://127.0.0.1:8000/de/
Django Version: 1.7.5
Exception Type: ImportError
Exception Value:
No module named 'p'

What is going on here?

Many thanks for any hints!!!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/176e3ca8-ca15-4341-b9d0-9da5f760c0ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment