Re: CBVs and logging a user

2013-06-04 Thread tony gair
excellent thanks Bill! On Tue, Jun 4, 2013 at 9:35 PM, Bill Freeman wrote: > Looking closer, do you have an app named 'main'? If so does it have a > urls.py in it? Can you import that without error (say in the manage.py > shell)? If so, try: > > repr(main.urlpatterns) > > (Since the err

Re: CBVs and logging a user

2013-06-04 Thread Bill Freeman
Looking closer, do you have an app named 'main'? If so does it have a urls.py in it? Can you import that without error (say in the manage.py shell)? If so, try: repr(main.urlpatterns) (Since the error message complains that main.urls has no url patterns in it.) If you don't expect to use

Re: CBVs and logging a user

2013-06-03 Thread tony gair
my URLS_CONF points to my urls.py in my main project directory. The error only once I press the login button, the form is validated, the user then(correctly ) is authenticated then it fails with the error when I try to redirect it to a view. On Monday, June 3, 2013 2:45:09 PM UTC, tony gair wro

Re: CBVs and logging a user

2013-06-03 Thread Bill Freeman
Does your setting.py configure ROOT_URLCONF correctly? On Mon, Jun 3, 2013 at 10:45 AM, tony gair wrote: > > I'm getting an error > > Request URL: http://127.0.0.1:8000/heating/login/?next=/heating/orglv/ > Django Version: 1.5.1 > Exception Type: ImproperlyConfigured > Exception Value: > The in

CBVs and logging a user

2013-06-03 Thread tony gair
I'm getting an error Request URL: http://127.0.0.1:8000/heating/login/?next=/heating/orglv/ Django Version: 1.5.1 Exception Type: ImproperlyConfigured Exception Value: The included urlconf main.urls doesn't have any patterns in it my login form and view has been modified to work off email and p