Vipin
Ok
♈
I have a table in html page
Use for loop or call model all obj
Vipin
Ok
Artem
Hi, guys, searching for an answer to my question: I have react/django application and i want be able to get session key, after request from my react page to django backend, but everytime it is None, even i do session.save() or create() How to deal with it? I will reward you if you can help me
Arnol
Hello guys, I would like to ask if someone has already integrated Jitsi meet with Django?
پدرام
How install django on vscode?
Charly
How install django on vscode?
You don't install Django on your ide
Praveen
How install django on vscode?
no needs install in commend prompt
Charly
Why?
because you don't need to install it on it, install it on your python installation
پدرام
Still the same
I want mixture django white html and css Using vs code
Charly
I want mixture django white html and css Using vs code
Still you don't need to install django on the editor
پدرام
Still you don't need to install django on the editor
How combine django with html and css in command prompt?
پدرام
read django tutorial
Please send me a link
Doragonsureiyā
Please send me a link
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Valter
Hello all, I'm trying create a message that need to link with task table, to achieve that as I'm trying save the task id into the message, so how can I store Tasks ID and save in MensageTaskID?
Valter
i'm trying this task_id = get_object_or_404(Tasks, pk=id) that return error int() argument must be a string, a bytes-like object or a number, not 'builtin_function_or_method'
Valter
thank you https://dpaste.org/iaHT
Alex
thank you https://dpaste.org/iaHT
> MensageForm Isn't that a typo?
Valter
no, this is my message form, i mixed a litle bit as it is similar in portugues
Alex
thank you https://dpaste.org/iaHT
So I guess def MensageView(request, *args, **kwargs): task_id = get_object_or_404(Tasks, pk=id) You forgot to add id in your view signature. By default id is a python builtin function to get object's internal id.
Alex
like def MensageView(request, id, *args)
Alex
or get it directly from the args or kwargs, depending on your url/path definition
Valter
I have tryied it before and now
Valter
MensageView() missing 1 required positional argument: 'id'
Valter
I see, how can I get that from URL and store on this message?
Alex
I see, how can I get that from URL and store on this message?
https://docs.djangoproject.com/en/3.2/ref/urls/#path path('send-message/<int:id>/', MensageView), - smt like that
Alex
I see, how can I get that from URL and store on this message?
then in the view def MensageView(request, id)
Valter
Ok, I have that URL but it's not loading the id in my view, how can I get Id from the URL?
Valter
path('detail/<int:id>/', tasks_detail_view, name='tasks-detail'),
Valter
It's because my goal is to send a message related to this task detal
Alex
path('detail/<int:id>/', tasks_detail_view, name='tasks-detail'),
So you should be able to catch that id param in tasks_detail_view as such - (request, id). Here's another example from the doc https://docs.djangoproject.com/en/3.2/topics/http/urls/#views-extra-options
Valter
Thank you, let me try
Alex
So if it doesn't work, then mistake is somewhere in another place
Valter
No worries, I really appreciate your help.
LmST
where should i place serializers.py in django?
cj
where should i place serializers.py in django?
in each app folder, next to the views.py
LmST
thanks. i just found that "snippets directory" in documentation and got confused.
پدرام
When installation django I got a error says Manage.py no such file or directory What should i do?
Doragonsureiyā
When installation django I got a error says Manage.py no such file or directory What should i do?
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
XCabs 0404115581
Can anyone help me with my code?
XCabs 0404115581
Hello everyone, I am new in this group
XCabs 0404115581
I have rendered Jsonresponse and values added in html by js but not getting foriegn key value only getting ID
XCabs 0404115581
Please suggest how I can resolve this
XCabs 0404115581
Anyone available?
Doragonsureiyā
Anyone available?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Anonymous
When installation django I got a error says Manage.py no such file or directory What should i do?
Change your directory into the folder with manage.py present in it and rerun the script you intended to formally
Jaykumar
Hello everyone How should I accept thumb impression and display it Using Mantra msf1000 device
Anonymous
How to check AbstractBaseUser permission checked ?
Anonymous
AbstractBaseUser Permision does not work in my project
Muxtor
AbstractBaseUser Permision does not work in my project
class User(AbstractBaseUser, PermissionsMixin): username = models.CharField(max_length=50, blank=True, null=True) is_staff = models.BooleanField(default=False) is_superuser = models.BooleanField(default=False)
Muxtor
AbstractBaseUser Permision does not work in my project
from django.contrib.auth.models import (AbstractBaseUser, Group, PermissionsMixin)
Be happy😊
Sir,how can we create a history table of a user data. To store updated details include old and new data
Sopan
not sure about current state... check - https://bitbucket.org/emacsway/django-versioning/src/master/
Sopan
for versioning Django Models
Sopan
i.e. creating history of models
ѕнυĸυralι
i'm understand to this erorr — > 'QuerySet' object has no attribute '_meta'
Be happy😊
i.e. creating history of models
How can we add the changes to the table created in models? Eg: A changed the name to AB at ( date)
Alex
How can we add the changes to the table created in models? Eg: A changed the name to AB at ( date)
As far as I understand, you need to log a user's actions. imho, it's better to be done with smth like elk stack. You still can achieve that with DB of course. Check out django admin log for example https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#logentry-objects https://github.com/django/django/blob/main/django/contrib/admin/models.py#L39
Be happy😊
Or do you want to track changes on the user table itself?
I want to store if the user profile is changed the name to new one. That shows the old name changed to new name. And if other details are changed show all changed details like that...how can I do this in the views.py
Alex
Then how?
for example https://github.com/jazzband/django-simple-history
Alex
Then how?
here's one more similar https://github.com/etianen/django-reversion
mohamad
hey.. i want to use query in founction( in views.py) for a table in a database i have when i put "get" how can i do this?
Doragonsureiyā
hey.. i want to use query in founction( in views.py) for a table in a database i have when i put "get" how can i do this?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls