Re: Authenticate user stalls on 302 after POST is successful

2020-08-27 Thread Dylan Reinhold
I have the same thing on a few small sites I have. I had assumed it was something I did. I asked about it last month or so and did not get anyone saying they also see it. I had even built a new project at that time to test and saw the same thing. As they are sites just for me, I just resorted to

Is it allowed to post a job vacancy here regarding django ?

2020-08-27 Thread 'BOPBO' via Django users
Hello There, Is it allowed to post a job vacancy here regarding django ? Thank you. -- -- This message (including attachments) is confidential and may be privileged, subject to copyright, trade secret, or other legal rules and may not be forwarded without the author's permission. If you are

Re: htmx: Has someone already tried this tiny JS library?

2020-08-27 Thread sean li
I personally perfer art template js for loading part of the page without jumping to another url. the links as below. http://aui.github.io/art-template/ But you still need to serialize your data to send it to frontend. guettli 于 2020年8月27日周四 上午6:57写道: > Today I found htmx a

Authenticate user stalls on 302 after POST is successful

2020-08-27 Thread tiggums B
Hello, *SUMMARY*: During user authentication, POST is successful but will stall on the 302 redirect. *INFO*: On Chrome(85.0.4183.83) Django 2.1 & Django 3.1 DEBUG = True, Happens rarely on HTTPS live-servers *STEPS TO REPRODUCE*: 1. On chrome browser, run manage.py runserver 2. Using a

Re: Page 3

2020-08-27 Thread rbarh...@gmail.com
My code inspector tells me that "from django.urls import path" is unused so the path statements must not work, I guess. But the tutorials presents that code. BTW, it's Maxim who helped On Thursday, August 27, 2020 at 5:07:38 PM UTC-7 rbarh...@gmail.com wrote: > Thanks to Maxi, I could move

Page 3

2020-08-27 Thread rbarh...@gmail.com
Thanks to Maxi, I could move on and immediately found a new problem on Part 3. I have studied this error message for over an hour and cannot figure it out. Here is the code. There are two pieces, one in polls/views.py and one in polls/urls.py. ``` polls/views.py from django.http import

Re: Writing you first Django app problem

2020-08-27 Thread rbarh...@gmail.com
thank you, but that does not seem to be the problem. Maixm below solved the problem if you are interested. On Wednesday, August 26, 2020 at 12:12:34 PM UTC-7 Ogunsanya Opeyemi wrote: > You have not defined current_year > > On Wednesday, August 26, 2020, rbarh...@gmail.com > wrote: > >>

Re: best book for learning django

2020-08-27 Thread rbarh...@gmail.com
2scoops of Django is written about version 1.8, we are now on 3.X...It's a problem with books and tutorials alike. With books, which are generally edited and have errata, they just get out of date quickly. With tutorials, people build them with mistakes and you have to rely on the community

Re: forms.ChoiceField calls choices callback twice?

2020-08-27 Thread Roy Smith
Hmmm, maybe related to https://code.djangoproject.com/ticket/26665 ? On Thursday, August 27, 2020 at 5:29:39 PM UTC-4 Roy Smith wrote: > I'm running: > > Python 3.7 > Django 2.2 > Debian 4.9 > > If I configure a forms ChoiceField with a callback function for choices, > it gets called twice each

forms.ChoiceField calls choices callback twice?

2020-08-27 Thread Roy Smith
I'm running: Python 3.7 Django 2.2 Debian 4.9 If I configure a forms ChoiceField with a callback function for choices, it gets called twice each time I render the form: > from unittest import TestCase > from django import forms > > def callback(): > print("callback") > return [('foo',

Re: plz help i found this kinda problem when i run

2020-08-27 Thread Ogunsanya Opeyemi
This means that your current_datetime.html template does not exists in any of those directory in the defined directory under templates in your setting.py file. On Thu, Aug 27, 2020 at 4:01 PM ALAKO ABIYO wrote: > > Environment: > > > Request Method: GET > Request URL:

plz help i found this kinda problem when i run

2020-08-27 Thread ALAKO ABIYO
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/time/ Django Version: 1.8 Python Version: 2.7.17 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Add prefetch_related(...) and select_related(...) to request.user

2020-08-27 Thread elesire
Hi, I have an Member(AbstractUser) Model declare as AUTH_USER_MODEL with lot of relations, wich have themselves a lot of relations. It's for now quite usefull to use request.user in templates to display relations without specifying anything in the views. But at one time (production with lot of

htmx: Has someone already tried this tiny JS library?

2020-08-27 Thread guettli
Today I found htmx a small JS library which helps you to make parts of the page easy to load/submit. I like it since, I would like to avoid the complicated http-API + React/Vue/... approach most people advertise these days. I am curious: Have you tried htmx yet, or how do you