Maxim
maybe one of the ready-made solutions will suit you, but at least you need to find it
Anonymous
How do use Foreign key in DRF? Like I want to be able to post including the foreign key
Anonymous
Help please?
Abdullah
Hello everyone.. I want to pull my categories to the drop-down menu, but I can't succeed. Do you have this help
Ngeene
Help please?
Can you explain further on this?
Anonymous
Can you explain further on this?
I'm trying to use a foreign key from my models which connected to my serializers. The foreign key is not showing but is included in the fields of the serializer
Ngeene
You can probably share a code sample... DM?
Ashutosh
How can i resolve error of module not found when i am importing a model from another app
Doragonsureiyā
How can i resolve error of module not found when i am importing a model from another app
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
Ashutosh
In views.py file i have writtern From .models import contact From blog.models import Post Blog is a different app. The model post of blog app is to be imported in home app but it says cannot import
Arvindhan
Any django developer from Tamilnadu, India here ?
Doragonsureiyā
Any django developer from Tamilnadu, India here ?
3️⃣ Keep the group topic! No SPAM, flood, offtopic, necroposting, crossposting, do not write only "Hello"/"Hi", don't ask for final year projects/exams nor homework solution and/or cheats. All socializing goes to @pythonofftopic
Abdulaziz
hello def get_queryset(self): queryset = super().get_queryset() queryparams = self.request.query_params company_id = queryparams.get('company_id', None) if company_id: queryset = Profile.objects.filter(company_id=company_id) return queryset I am getting this type error 'WSGIRequest' object has no attribute 'query_params' I couldn't find answer from google. Could you help?
ADI
OperationalError at /admin/Trining_app/course_data/add/ no such table: Trining_app_course_data Request Method: POST Request URL: http://127.0.0.1:8000/admin/Trining_app/course_data/add/ Django Version: 3.0 Exception Type: OperationalError Exception Value: no such table: Trining_app_course_data Exception Location: C:\Users\akuma\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 396 Python Executable: C:\Users\akuma\AppData\Local\Programs\Python\Python38\python.exe Python Version: 3.8.1 ============================== i am getting the error i tried mmakemigration and migrate but same this one Python Path: ['C:\\Users\\akuma\\Desktop\\6am\\Institute_project100', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\python38.zip', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\DLLs', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38', 'C:\\Users\\akuma\\AppData\\Roaming\\Python\\Python38\\site-packages', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\win32', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\win32\\lib', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\Pythonwin'] Server time: Sat, 3 Jul 2021 08:51:18 +0000
ADI
i am facing error
Anand
Python manage.py migrate --run-syncdb Then run make migrations
ADI
@spl thank you dude
Gyalzen
nestedserializer does not show
Gyalzen
I want to add nested blogs in my user list
Gyalzen
I have added all the nested serializer in the fileds also but it doesn't show
Doragonsureiyā
OperationalError at /admin/Trining_app/course_data/add/ no such table: Trining_app_course_data Request Method: POST Request URL: http://127.0.0.1:8000/admin/Trining_app/course_data/add/ Django Version: 3.0 Exception Type: OperationalError Exception Value: no such table: Trining_app_course_data Exception Location: C:\Users\akuma\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 396 Python Executable: C:\Users\akuma\AppData\Local\Programs\Python\Python38\python.exe Python Version: 3.8.1 ============================== i am getting the error i tried mmakemigration and migrate but same this one Python Path: ['C:\\Users\\akuma\\Desktop\\6am\\Institute_project100', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\python38.zip', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\DLLs', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38', 'C:\\Users\\akuma\\AppData\\Roaming\\Python\\Python38\\site-packages', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\win32', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\win32\\lib', 'C:\\Users\\akuma\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\Pythonwin'] Server time: Sat, 3 Jul 2021 08:51:18 +0000
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Gyalzen
https://dpaste.org/Q4AZ
Champak Lal
How to post current time in blog in django
Gyalzen
you can use python default datetime module
Maxim
How to post current time in blog in django
default=datetime.now in models
....
hello guys . how can i delete something with DeleteView and without a confirmation template . i read this https://stackoverflow.com/questions/17475324/django-deleteview-without-confirmation-template . but the issue is my delete image/button is inside of a <table> <td> tag . so i can't define a <form> inside of the <td> tag . then how can i do that ? pls
Vladislav
hey everyone, who use django-flag? how can i make, if http parametr is true, you can see and use page, if dont you cant
tushar
Hlo I have datetimefield model in django and I want to pass query in model.objects.filter(datetime=) get data is equally to time and greater then time which store in data base filed pls write a query for that
~:$
Creating an app named "core" is a best practice?????
Arvindhan
Can admin panels templates be customised ?
Anonymous
how to sole Dataerror integer out of range in django
Doragonsureiyā
how to sole Dataerror integer out of range in django
Copy that error message and paste it on a Google search, read the first results.
Anonymous
i try but not solved
Maxim
i try but not solved
google not in order to find a solution, but in order to find information - then you have to think
Anonymous
DataError at /addacc/ integer out of range Request Method:POSTRequest URL:http://gastore.herokuapp.com/addacc/Django Version:3.2.5Exception Type:DataErrorException Value:integer out of range Exception Location:/app/.heroku/python/lib/python3.9/site-packages/django/db/backends/utils.py, line 84, in _executePython Executable:/app/.heroku/python/bin/pythonPython Version:3.9.6Python Path:['/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python39.zip', '/app/.heroku/python/lib/python3.9', '/app/.heroku/python/lib/python3.9/lib-dynload', '/app/.heroku/python/lib/python3.9/site-packages']Server time:Sat, 03 Jul 2021 11:54:56 +0000
Anonymous
help me plz
Doragonsureiyā
?????
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 😊
Abdoulatif
hi everyone please i need your help i am looking for a free sms gateway i want to put on a website
Maxim
hi everyone please i need your help i am looking for a free sms gateway i want to put on a website
1. there are no such 2. you are breaking the rules by "whipping up" the message 3. you break the rules by going off-topic 4. you are breaking the rules by posting this in @python and @django at the same time
Shreya
Anyone having experience in web automation ?
Doragonsureiyā
Anyone having experience in web automation ?
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
Abdoulatif
For free is difficult
by the way i would like to use a modem
Shreya
I want to set a specific directory path while clicking on upload button of a web page. I am sending the directory path in URL itself which i will use to browse that directory in order to upload some documents.
Shreya
Though i got some libraries that work only on windows... I am looking for something that is supported on windows as well as linux OS.
Shreya
Any one know the required library that could help me to do the above mentioned task. I can not use selenium because it would become browser specific then. Please suggest me some other options to perform the task.
Xerena🦋
Hi guys, I have unique constraint in my model. It's working correctly but the error message is not displayed on the same page in the admin panel. How can I solve this for admin panel ?
Pandit
hey guys!! evening!! can i ask aa doubt?
Pandit
why posting media not allowed?
Pandit
my error - File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "C:\Users\prerak sharma\Desktop\new\mysite\food\admin.py", line 1, in <module> from mysite.food.models import item ModuleNotFoundError: No module named 'mysite.food'
Pandit
my code - from mysite.food.models import item from django.contrib import admin # Register your models here. admin.site.register(item)
Doragonsureiyā
why posting media not allowed?
Please read the pinned message of the group to know more about this group, the rules and also you'll find resources and learning materials there: https://t.me/Python/1162861
Vivek
Can anyone help me with jquery ajax here? I am trying to implement it in my django app but its not working for some reason and I can't figure out why
Vivek
https://stackoverflow.com/questions/68236326/jquery-ajax-call-not-working-in-django-application-for-dependent-drop-down
Vivek
please help, I tried a lot of different methods but none seem to work
De
Why the url in Django take me to the blank page , I use return "Jsonresponse()" on my view , I expect it to redirect the response to the same page?? I got an error 404 page not found and it and give that new url
Doragonsureiyā
Why the url in Django take me to the blank page , I use return "Jsonresponse()" on my view , I expect it to redirect the response to the same page?? I got an error 404 page not found and it and give that new url
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
Daşqın
Hi, Django give a "no such table" error when run makemakemigrations command, what do you think could be the reason?
Maxim
Hi, Django give a "no such table" error when run makemakemigrations command, what do you think could be the reason?
open https://docs.djangoproject.com/en/3.2/ref/django-admin/#django-admin-makemigrations and read
Maxim
or google
Maxim
Hi, Django give a "no such table" error when run makemakemigrations command, what do you think could be the reason?
In short, you shouldn't change the database structure not through migrations, if you don't want problems with migrations
Daşqın
open https://docs.djangoproject.com/en/3.2/ref/django-admin/#django-admin-makemigrations and read
Thank you, but i think error the is not related to migrations, i drop all db and deleted all migrations folders under apps but it didn't work
*( (*
its freaking hard to get going with django
Brandon
Hello everyone can someone help me figure out how to solve a bug? When I register on my website I don't get an email confirmation, I don't know what is the problem, I'm new with this code, and there's no other django developer en mi team, so is a bit difficult to understand the codebase and I need some guidence.