<s> from __future__ import absolute_import , unicode_literals <EOL> from django . contrib import admin <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from django . db . models import FieldDoesNotExist <EOL> from feincms import ensure_completely_loaded , settings <EOL> from . models import Page <EOL> from . modeladmins import PageAdmin <EOL> if settings . FEINCMS_USE_PAGE_ADMIN : <EOL> ensure_completely_loaded ( ) <EOL> try : <EOL> Page . _meta . get_field ( '<STR_LIT>' ) <EOL> except FieldDoesNotExist : <EOL> raise ImproperlyConfigured ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> ) <EOL> admin . site . register ( Page , PageAdmin ) </s>
