Re: Form on each page problem when upgrading from Django 1.4

2017-11-15 Thread yakkadesign
Anyone else have ideas using the Django backend? On Sunday, November 12, 2017 at 12:56:53 PM UTC-5, yakka...@gmail.com wrote: > > I'm in the process of upgrading a website from Django 1.4 and I'm run into > a problem of getting my code that shows a form on almost every page > migrated. I eventu

Re: Form on each page problem when upgrading from Django 1.4

2017-11-15 Thread yakkadesign
@Matthew, It's not a login form. It's a normal form. I don't like the AJAX way. It adds moving parts and requires a front end rework (and more tests, browser compatibility tests, potential issues with plugins blocking, etc.). On Sunday, November 12, 2017 at 12:56:53 PM UTC-5, yakka...@gm

RE: Form on each page problem when upgrading from Django 1.4

2017-11-13 Thread Matthew Pava
That is an interesting setup. We just use login middleware that automatically redirects to the LogIn view with a next GET parameter. In your situation, I would probably treat the form as ajax and create an ajax view for handling the login form processing. Just change your action URL to your a