Charly
Why?
Because money has fixed decimal precision
Tony
What is the difference between the common function and the @classmethod?
Haleem
Hi, I am having a webview in my android app which only display my Django website. The whole website is working fine but the admin interface. I am getting connection error when i access model in django admin. But in the views, its good.. any way to resolve the below error. Something’s wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user.
Haleem
And you verified that database connection?
Yes, its working very nice in browser.. but i dont know why in app
Haleem
And you verified that database connection?
Only the rows of entries cannot see and getting this error.. If i clcik any link in app for admin page, its showing
Haleem
Any logs on the server?
I didnt check the log actually, i will check it.. but giving giving this error
Tony
one more question: what is the instance variable?
Tony
yep.
Tony
but can't clearly understand.
Charly
but can't clearly understand.
What's you specific doubt regarding that?
Tony
class variable vs instance variable.
Charly
class variable vs instance variable.
The same as class method and instance methods
Tony
really?
Tony
Difference Between Instance Variables and Class VariablesInstance Variables: Unique to each instance and usually defined inside methods using self. Class Variables: Shared among all instances of the class and defined directly within the class body, outside any methods.
Tony
how about that?
Haleem
Any logs on the server?
Nothing is showing in log
Charly
how about that?
Do you understand it?
Tony
Tony
Of course, your assistance was helpful.
H0scein
hello could anyone help me about preventing multiple login the same user at the same time I use jwt for authentication and want to implement this feature , no matter with the session model or device model.
Charly
H0scein
How do you expect it to work, what if another user tries to log in? It kills the session of the other user? Or is it denied to log in?
yes kills the other sessions. consider user A is login with device A , then try to login to it's account with it's device B. now I want just request from device B be valid and device A kill.
H0scein
So it is by user or just only one user?
I don't get it. look this is for an expense tracker app. so I want all users just to login with only one account at a time.
H0scein
https://forum.djangoproject.com/t/restrict-multiple-login-for-same-user/27455/6
one developer said he created it as a Library, I installed and added model and middleware. but when I tested it in postman, when two times logged in with a user, both jwt tokens worked correctly. there was an error in testing?
H0scein
I don't know we don't see what you have done
tnx a lot man🙌🏻 I'll try and will ask your help man.
Rom..
I'm a beginner In django i have created todo app where I have created template in that one index.html n todolist.html soo I can't able to see todolist.html page
Diana
Rom..
Stilll
Rom..
Root dir I have template for base html and app dir I have templates folder for home.html todo list .html
Vishu
I'm getting an error in google captcha while adding it into the project
Vishu
Any solution getting modulenotfounderror
Vishu
But I already installed it and am still getting this error
Бекназар
how to give access to a www user
Diana
But I already installed it and am still getting this error
I think you should paste parts of your code here. Hard to understand without it
markit
Hello, could someone tell/share code how to create admin via Django Admin panel UI(the functionality like using console command python manage.py createsuperuser) and see them (how to register related model )? Thanks in advance
Venom
Please send django complete course link ?
Doragonsureiyā
Please send django complete course link ?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Venom
Tutorial videos!
Venom
For beginners
Venom
If possible
Adithya
Can anyone tell me, does understanding of javascript is required, for implementing django channels?
Venom
Understanding JavaScript is not required for implementing Django Channels. However, it can be beneficial if you need to handle WebSockets or real-time features on the client side.
IT PROFFESIONAL
How to deploy django with default database? I need help
Doragonsureiyā
How to deploy django with default database? I need help
No one can help you until you explain your difficulties.
Sajid
I am using postgress db in my django project. I created tables using django models after that I inserted my previous data into tables by importing csv. Now when I am trying to insert data using django orm I am getting a duplicate id key error. How can I resolve this issue.
Aditi
I created a new project and in that I created a template using html,css and javascript and the template is registered too... But it is showing the template does not exist... How to resolve it?
Aditi
It's solved thank you soo much
Aditi
But there is one more issue
Pradheep
Hi, I am experiencing the Daphne and WebSockets. It works well in development, but after deploying to production on the Apache2 server, it throws a 404 error.
Aditi
How to link another webpage using anchor in template file under django
LouLou 🤞
How to link another webpage using anchor in template file under django
Are you using django url path or how are you serving your templates?
Hostmaker
Anyone who is a python/django developer . And has made a switch recently. Need some clarity on DSA rounds and preference
Doragonsureiyā
Anyone who is a python/django developer . And has made a switch recently. Need some clarity on DSA rounds and preference
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Бекназар
Such an error that I have set up an email message {% load i18n %}{% autoescape off %}{% blocktranslate %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktranslate %} {% translate "Please go to the following page and choose a new password:" %} {% block reset_link %}{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} {% endblock %}{% translate 'Your username, in case you’ve forgotten:' %} {{ user.get_username }} {% translate "Thanks for using our site!" %} {% blocktranslate %}The {{ site_name }} team{% endblocktranslate %} {% endautoescape %}
Бекназар
{% load i18n %}{% autoescape off %}{% blocktranslate %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktranslate %} {% translate "Please go to the following page and choose a new password:" %} {% block reset_link %}{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} {% endblock %}{% translate 'Your username, in case you’ve forgotten:' %} {{ user.get_username }} {% translate "Thanks for using our site!" %} {% blocktranslate %}The {{ site_name }} team{% endblocktranslate %} {% endautoescape %}
Бекназар
the message is sent from 127.0.0.1:8001, not from my domain
Бекназар
listen 80 default_server; listen [::]:80 default_server; root /var/www/html; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name soltanbekovbeknazar.kz; location / { proxy_pass http://127.0.0.1:8001; proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Real-IP $remote_addr; add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"'; add_header Access-Control-Allow-Origin *; } client_max_body_size 100M;
Бекназар
?
Бекназар
{% load i18n %}{% autoescape off %}{% blocktranslate %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktranslate %} {% translate "Please go to the following page and choose a new password:" %} {% block reset_link %}{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} {% endblock %}{% translate 'Your username, in case you’ve forgotten:' %} {{ user.get_username }} {% translate "Thanks for using our site!" %} {% blocktranslate %}The {{ site_name }} team{% endblocktranslate %} {% endautoescape %} do you know why 127.0.0.1:8001 is used instead of site_name and domain instead of my domain soltanbekovbeknazar.kz
Alison
Hello guys, what lib do you recommend to work with markdown or richText?
Priyanshu Pratap
How to link another webpage using anchor in template file under django
Just use the urls endpoints like in urls.py if you are having endpoint named as ('home/', views.home)...then to link home just use <a href="home/"…..> ...</a> ..it will work or you can use {% url %} also
Shubham
In my database that is intertwined. And have tables related to these. Userinfo, attendance, payments, transactions, salary, ticket booking How many apps should I make to handle what
a
hey! suppose i want to write an api along with the backend html server. do i use drf or is drf obsolete? is using a drf app as a separate process overkill due to drf only working along with base django? is fastapi any better? what about django-ninja?