{"action":"closed","issue":{"url":"https://api.github.com/repos/pennersr/django-allauth/issues/1319","repository_url":"https://api.github.com/repos/pennersr/django-allauth","labels_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1319/labels{/name}","comments_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1319/comments","events_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1319/events","html_url":"https://github.com/pennersr/django-allauth/issues/1319","id":139144444,"number":1319,"title":"Extending allauth views","user":{"login":"mitsest","id":2116434,"avatar_url":"https://avatars.githubusercontent.com/u/2116434?v=3","gravatar_id":"","url":"https://api.github.com/users/mitsest","html_url":"https://github.com/mitsest","followers_url":"https://api.github.com/users/mitsest/followers","following_url":"https://api.github.com/users/mitsest/following{/other_user}","gists_url":"https://api.github.com/users/mitsest/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsest/subscriptions","organizations_url":"https://api.github.com/users/mitsest/orgs","repos_url":"https://api.github.com/users/mitsest/repos","events_url":"https://api.github.com/users/mitsest/events{/privacy}","received_events_url":"https://api.github.com/users/mitsest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T01:11:02Z","updated_at":"2016-03-10T22:20:31Z","closed_at":"2016-03-10T22:20:31Z","body":"Hey dude,\r\nawesome work. I 've been using allauth for quite some time now and I was able to extend your views like so\r\n\r\n```python\r\nclass CustomLoginView(LoginView):\r\n    template_name = 'account/login.html'\r\n\r\n    def get_context_data(self, **kwargs):\r\n        context = super(LoginView, self).get_context_data(**kwargs)\r\n        context.update({'signup_form': SignupForm})\r\n\r\n        return context\r\n\r\n```\r\n\r\nI did this in order to display the signup form at the same page as the login form, without breaking any functionality from your views (which are required in order for the user to log in)\r\n\r\nHowever, after django 1.8 I get the following stacktrace:\r\n```\r\n\r\nTraceback (most recent call last):\r\n  File \"C:/Users/mitsest/PycharmProjects/teh_end/teh_end/manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\core\\management\\__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\core\\management\\__init__.py\", line 312, in execute\r\n    django.setup()\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\__init__.py\", line 18, in setup\r\n    apps.populate(settings.INSTALLED_APPS)\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\apps\\registry.py\", line 85, in populate\r\n    app_config = AppConfig.create(entry)\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\apps\\config.py\", line 86, in create\r\n    module = import_module(entry)\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\importlib\\__init__.py\", line 126, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 986, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 969, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 958, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 673, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 662, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\r\n  File \"C:\\Users\\mitsest\\PycharmProjects\\teh_end\\teh_end\\index_page\\__init__.py\", line 2, in <module>\r\n    from .urls import site\r\n  File \"C:\\Users\\mitsest\\PycharmProjects\\teh_end\\teh_end\\index_page\\urls.py\", line 1, in <module>\r\n    from .views import IndexPageView\r\n  File \"C:\\Users\\mitsest\\PycharmProjects\\teh_end\\teh_end\\index_page\\views.py\", line 4, in <module>\r\n    from allauth.account.views import LoginView, SignupView\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\allauth\\account\\views.py\", line 19, in <module>\r\n    from .forms import (\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\allauth\\account\\forms.py\", line 207, in <module>\r\n    class BaseSignupForm(_base_signup_form_class()):\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\allauth\\account\\forms.py\", line 209, in BaseSignupForm\r\n    max_length=get_username_max_length(),\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\allauth\\utils.py\", line 56, in get_username_max_length\r\n    User = get_user_model()\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\contrib\\auth\\__init__.py\", line 150, in get_user_model\r\n    return django_apps.get_model(settings.AUTH_USER_MODEL)\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\apps\\registry.py\", line 199, in get_model\r\n    self.check_models_ready()\r\n  File \"C:\\Users\\mitsest\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\django\\apps\\registry.py\", line 131, in check_models_ready\r\n    raise AppRegistryNotReady(\"Models aren't loaded yet.\")\r\ndjango.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.\r\n```\r\n\r\nI 'm pretty stucked here, as I can't find any other way to override /login and /signup urls, apart from overriding the view.\r\n\r\nThanks !"}}