GLuko
this is full error https://pastebin.pl/view/1f5b1e44
J
Any Django free course for beginners
Andrew
Check YouTube brad traversy! There’s one with a guest teacher
Anonymous
Hello, can someone guide me how to write bmi code with Django
GLuko
when I create models.py I found that created password, is_superuser, username etc that I DONT make in models.py class DiscordUser(AbstractUser): objects = DiscordUserOAuthManager() id = models.BigIntegerField(primary_key=True) discord_tag = models.CharField(max_length=100) avatar = models.CharField(max_length=100) public_flags = models.IntegerField() flags = models.IntegerField() locale = models.CharField(max_length=100) mfa_enabled = models.BooleanField() last_login = models.DateTimeField(null = True) def is_authenticated(self,request): return True this is my models.py code
GLuko
id = models.BigIntegerField(primary_key=True) discord_tag = models.CharField(max_length=100) avatar = models.CharField(max_length=100) public_flags = models.IntegerField() flags = models.IntegerField() locale = models.CharField(max_length=100) mfa_enabled = models.BooleanField() last_login = models.DateTimeField(null = True)
GLuko
cuz all this I use in my discord login in my site
青春无敌
hello,every one
青春无敌
my a template file is below
Doragonsureiyā
my a template file is below
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
青春无敌
but it does't action
青春无敌
what's wrong?
Sumit
Hi, how can. I show ManytoManyField in django-admin
Sumit
With multiselect like widget
Sumit
Tried inline, but using this I can add only one at a time
Anonymous
body mass index
jūdê
body mass index
If you know how to calculate BMI, Write the code to calculate BMI in a view and store it in your DB
Yusuf
Hallo everyone, #ask does anyone here know how to make a pdf report by date range?
Amir
Hallo everyone, #ask does anyone here know how to make a pdf report by date range?
hello use reportlab or create html css page and convert to pdf . The first method can be more difficult
Mahesh
Can anyone know how to make bakery website in django because i dont found any update in youtube or browser
Mahesh
Does*
MIRZO
Hello to everybody. I am looking for, django dropdown search form for creating new objects. I look though many docs and tutorials but didn't get results. Can you help me guys, how to do it?
MIRZO
Let's talk deeper. I have a model that stores patients. In the database thousands of patients. For creating an appointment for them I must have to do brute force searching with the drop-down. I want to implement for this searching with drop-down list. So it helps to find patients easier
Maxim
Yes i can help you
please don't report that you can help, just help or keep quiet
GLuko
'tuple' object has no attribute 'backend' when I do @login_required(login_url = "/oauth2/login")
GLuko
but when I go to "/oauth2/login" all works fine
Yusuf
dll_negara = datapengaduan.filter(~Q(negara_tujuan ='Arab Saudi') and ~Q(negara_tujuan ='Malaysia')).count() I want to get the number of data from country data not equal Saudi Arabia or Malaysia. but I can not. Anyone here know to solve this problem?🙏
William
Hi Guys I´m using the pywhatkit lib and I´m trying to deploy to heroku and when I do it, I´m receiving this error:
William
I set my .env with DISPLAY = :0
Doragonsureiyā
Hi Guys I´m using the pywhatkit lib and I´m trying to deploy to heroku and when I do it, I´m receiving this error:
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
William
https://gist.github.com/wpaivapy/677abf28a81c359a6eab218d24476ba8
Alex
Hi, I'm making an app where i have a client, client have possibility to make appointments to doctor for example, how can i restrict creating possible appointments in depending of doctor's working hours and appointments that already created(i mean specific date & time is already taken by someone and you can't took it).
Nana
Hello I have created a user registration form with usercreationform. I stored it in a variable called form. I passed the variable into the template file but the form is not showing. What could be the error?
Ashish
We upgraded django from 3 to 4 and now, it's not letting me login to the admin panel. Any ideas why that would have happened
Nana
TemplateSyntaxError at /login/ 'crispy_form_tags' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache crispy_forms_field crispy_forms_filters crispy_forms_tags crispy_forms_utils i18n l10n log static tz
Nana
I need help
Rafaela
Pip install django-crispy-forms
Rafaela
and add 'crispy_forms' to INSTALLED_APPS on settings
Mihir
Can anyone help me i am unable to authenticate normal user in website https://forum.djangoproject.com/t/user-authentication/14955/8
Ashish
read the logs
This was some weird issue with password hashing. Finally figured. Thanks.
cj
This was some weird issue with password hashing. Finally figured. Thanks.
logs are always the first place to check for errors, nice you got it fixed
Mihir
It is not showing me any error, it just renders me same login page rather redirecting to another page which i have mentioned in views.py, i am unable to authenticate any normal user which i do create for testing.i am using built in authenticationForm() for login
Rafaela
I have done that but same results
have you added {% load crispy_forms_tags %} to your template?
мя
how to save django logs to database?
Mahesh
what is you're problem ?
I want to develop a django bakery management system website in django but not getting any reference video on that in youtube plzz help
Amir
I want to develop a django bakery management system website in django but not getting any reference video on that in youtube plzz help
you will not find If you want develop any project need a document of project. Do you have a document or text that explain the website, features ... ?
Koen de
how to save django logs to database?
Not by default as far as I know, I use Sentry, But you might take a look at this project; https://github.com/CiCiUi/django-db-logger
Anna Karolina
Hi, does anyone already work with Django and https://docs.locust.io/en/stable/quickstart.html ?
Xeon
Please any book for the Django beginners?
Xeon
I’m a beginner in Django should I be doing projects or learning the basics of Django?
Мark
I’m a beginner in Django should I be doing projects or learning the basics of Django?
I am beginner too but I think that ToDo app it’s enough for basic’s
Мark
Now I am doing social, and understand everything
G4st0n
start with basic API CRUD
Мark
What does the word “crud” mean? I saw this word but don’t understand what does it mean in general
G4st0n
is a basic development routine C.R.U.D Create, Read, Update. Delete info on DB
Мark
Aaa, I think ToDo app is a nice CRUD for beginning cause create task, update task, read description and delete task
Мark
Social or internet store would be complicated for starting
ﹺ ﹺ
Has anyone tried Django with Inertia???
Doragonsureiyā
Has anyone tried Django with Inertia???
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
мя
Not by default as far as I know, I use Sentry, But you might take a look at this project; https://github.com/CiCiUi/django-db-logger
i have used this and its working and saving the logs in files, what i want is to save the logs in my database this is hard to find.
Xeon
So meaning I should watch tutorials on that?
Мark
Tutorials like building project