Relative Content

Tag Archive for javascriptpythondjango

Unable to login subdomain of django tenant, primary domain and admin log in work

I have a multi tenant app using the library django-tenants. When logging into the core URL with the created superuser, the login page works completely fine. When using the subdomain address to login, the page returns a 500 error when using the correct username and password that exists and the console says Uncaught (in promise) SyntaxError: Unexpected token '<', " <!doctype "... is not valid JSON.

django Add a button that creates a new entry field each time it’s clicked

I am creating a Recipe app- currently for my form I have Title, Ingredients and Description as text inputs. However I want the user to be able to individually input the ingredients so I can manipulate the inputted data- for instance I want Carrot | 700 | g to come in as three inputs rather than currently where it comes in as text.

Can’t Log in in Django users

I am writing a site with a custom user model. I want to access the site via telegram. Everything works, but the authentication itself – the login function does nothing(
I don’t understand what’s wrong, I’ve been trying different ways for 3 days now, but nothing works. I will be glad to any advice. And here is my code