Re: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet with Django’s user database authentication from Apache

2019-01-29 Thread Gundla Kumar
Hai, Can you help me how to solve my problem, when launch project in my local, it gives error as "ImportError: No module named copy_reg" and "ImportError: No module named multiplearray" On Tue, Jan 29, 2019 at 5:30 PM Binoy U wrote: > Hello Simon, > > Thank you for the reply. I have changed it

Re: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet with Django’s user database authentication from Apache

2019-01-29 Thread Binoy U
Hello Simon, Thank you for the reply. I have changed it as you mentioned and it's working now. I will raise an issue to update the documentation. On Monday, January 28, 2019 at 1:20:24 PM UTC+1, Binoy U wrote: > > Hello, > > I have created a django project with only one application. I haven't ma

Re: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet with Django’s user database authentication from Apache

2019-01-28 Thread Simon Charette
Hello again :) Someone pointed out to me that it might be a documentation issue that requires that you import check_password only after calling get_wsgi_application(). For example, your wsgi.py module would look like import os import mod_wsgi os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ch

Re: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet with Django’s user database authentication from Apache

2019-01-28 Thread Simon Charette
Hello there, That looks like a Django bug to me as auth.get_user_model() should only be performed from within the check_password() function as it will certainly crash at the module level. You should file a bug report so it gets addressed[0]. Best, Simon [0] https://code.djangoproject.com/newt

django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet with Django’s user database authentication from Apache

2019-01-28 Thread Binoy U
Hello, I have created a django project with only one application. I haven't made any changes in the application. Only added the application to the settings and updated static and media urls. Migration is done and super user was created. I have configured apache(version:2.4.29) and mod_wsgi(4.5

Re: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet when using django-role-permission package

2015-12-20 Thread karim bernardet
ckages/django/contrib/auth/base_user.py", line > 49, in > 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 "/us

django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet when using django-role-permission package

2015-12-19 Thread karim bernardet
_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 t

Re: django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.

2014-12-23 Thread Jani Tiainen
ng error when I try `python manage.py`. > ... > File "/home/auser/aproject/src/apps/anapp/models.py", line 35, in > CampaignTemp > campaign_modules = Module.objects.filter(active=True) > ... > django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet

django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.

2014-12-23 Thread suren
ine 35, in CampaignTemp campaign_modules = Module.objects.filter(active=True) ... django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet. ... The code was written for Django1.6 and is being ported to 1.7. Any help would be appreciated. -- You received this message because you ar

Re: django.core.exceptions.AppRegistryNotReady

2014-07-08 Thread Tom Evans
On Tue, Jul 8, 2014 at 11:54 AM, Frank Bieniek wrote: > Simply do not use get_user_model() in model definitions. The 1.7 relnotes should probably be updated with this instruction, afaict there is nothing about this in the "App-loading refactor" nor "django.contrib.auth" sections. https://docs.dj

Re: django.core.exceptions.AppRegistryNotReady

2014-07-08 Thread Marc Aymerich
On Tue, Jul 8, 2014 at 12:54 PM, Frank Bieniek < frank.bien...@produktlaunch.de> wrote: > Hi Marc, > > this should fix it: > > File "/home/orchestra/django-orchestra/orchestra/apps/accounts/models.py", >> line 9, in Account >> user = models.OneToOneField(get_user_model(), >> related_name='acc

Re: django.core.exceptions.AppRegistryNotReady

2014-07-08 Thread Frank Bieniek
Hi Marc, this should fix it: File "/home/orchestra/django-orchestra/orchestra/apps/accounts/models.py", line 9, in Account user = models.OneToOneField(get_user_model(), related_name='accounts') change it to: user = models.OneToOneField(settings.AUTH_USER_MODEL, related_name='accounts')

django.core.exceptions.AppRegistryNotReady

2014-07-08 Thread Marc Aymerich
al/lib/python2.7/dist-packages/django/apps/registry.py", line 187, in get_model self.check_ready() File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 119, in check_ready raise AppRegistryNotReady() django.core.exceptions.AppRegistryNotReady