Using the branch "django19" fixed the problem.
Sorry or the noise
Karim
Le dimanche 20 décembre 2015 00:06:38 UTC+1, karim bernardet a écrit :
-- Sorry or the noise
Karim
Le dimanche 20 décembre 2015 00:06:38 UTC+1, karim bernardet a écrit :
Hi
I am a new user with Django. I am trying to use the django-role-permission package but I have the error below :
[karim@localhost gfmt]$ python ./manage.py check
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/site-packages/django/core/ management/__init__.py", line 350, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/site-packages/django/core/ management/__init__.py", line 324, in execute
django.setup()
File "/usr/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python2.7/site-packages/django/apps/registry. py", line 85, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python2.7/site-packages/django/apps/config. py", line 90, in create
module = import_module(entry)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/lib/python2.7/site-packages/rolepermissions/__ init__.py", line 5, in <module>
load_roles_and_permissions()
File "/usr/lib/python2.7/site-packages/rolepermissions/ loader.py", line 9, in load_roles_and_permissions
import_module(settings.ROLEPERMISSIONS_MODULE)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/karim/django/projets/gfmt/gfmt/roles.py", line 2, in <module>
from rolepermissions.roles import AbstractUserRole
File "/usr/lib/python2.7/site-packages/rolepermissions/ roles.py", line 5, in <module>
from django.contrib.auth.models import Group, Permission
File "/usr/lib/python2.7/site-packages/django/contrib/auth/ models.py", line 4, in <module>
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "/usr/lib/python2.7/site-packages/django/contrib/auth/ base_user.py", line 49, in <module>
class AbstractBaseUser(models.Model):
File "/usr/lib/python2.7/site-packages/django/db/models/ base.py", line 94, in __new__
app_config = apps.get_containing_app_config(module)
File "/usr/lib/python2.7/site-packages/django/apps/registry. py", line 239, in get_containing_app_config
self.check_apps_ready()
File "/usr/lib/python2.7/site-packages/django/apps/registry. py", line 124, in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
[karim@localhost gfmt]$
In the settings.py file I have :
ROLEPERMISSIONS_MODULE = 'gfmt.roles'
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'rolepermissions',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'controlPanel',
]
If I comment 'rolepermissions', or ROLEPERMISSIONS_MODULE = 'gfmt.roles', it runs (but these lines are required)
I dont know what to check
Thanks for any hint
Cheers
Karim
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8b934bc9-8805-4388-b9a1-a0aa31689e6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment