ㅤXEN
And it said given token not valid for any token type
Parsa
How month to learn Django advantage?
Rtm
Good evening, I have a question If anyone could help me. Pleaaseee https://linkode.org/#fIHq3RLexHdA9BjuV6Lpq7
Илья
Tell me, please, when the python 3 manage.py startapp does not display the created folder in File Explorer. I work in VS
Eternity
And it said given token not valid for any token type
It means that the token you've entered doesn't exist
ㅤXEN
It means that the token you've entered doesn't exist
It's wrong I created the tokens But in response to retrieve posts, ive got error
Eternity
F
Hi Everyone, I'm looking to build dynamic tables with sort and edit on click function (without any buttons). Really don't know where to start looking for. Would appreciate if someone can recommend a method
Rtm
How to save inlineformset, I think I need to use Javascript to pass the values ​​but I don't know how I could do it
Rtm
If I am working with a structure similar to Facture, that is, header and detail... Is it necessary to use inlineformset? In my case I use it because I want everything to be displayed in a template and everything is saved at once
Rtm
How to save inlineformset, I think I need to use Javascript to pass the values ​​but I don't know how I could do it
In my case I am working with two forms One form that would be the header and the second form the detail(inlineformset) In the header I have a field called Product that I use to select a product. When selecting the product, it should show me on the screen the parameters assigned to that product, along with the inlineformset fields, as a grid and then save the data all that on a sheet
هادی
Hello dear friends I need guidance When I try to log in to admin with a super user, it says user or password it is not correct My username and password +989198679227 1234 P. S: I changed the manager.py of account app GitHub address of the project account section https://github.com/hhneamati/yumyum/tree/main/accounts
khaled
try to create another superuser
Secret
python manage.py changepassword <user_name>
هادی
python manage.py changepassword <user_name>
Django don't let me to do that I remove db and migrate fill and create superuser again and again but the problem is still there
Anonymous
Hey 👋, Django geeks, is it appropriate to combine Django and React together, and what should be considered while doing so?
هادی
i need my accouns login it with phone number what shude i do
Koen de
Hey 👋, Django geeks, is it appropriate to combine Django and React together, and what should be considered while doing so?
Yes it is. There is an interesting book about that as well https://www.amazon.com/Decoupled-Django-Understand-Architectures-JavaScript-ebook/dp/B098L23CQS
Ingvarr
hello. i've got some question. what is unauthenticated user from request.user by itself? can i use it as guest account?
M:))
Hi
M:))
I have an exercise, does anyone know?
M:))
what exercise
Web programming The first exercise Create a website called Library. Add a web application named books to it. Create the following models that have the following attributes: Book Title, Author, Year, Print, Shabak Publications, Language, Shelf, Author Name, Surname, Nationality Locker No. Corridor Add these models in the admin panel and define at least 3 objects for each model. Define view URL and template for the following items Display the list of books containing a link from the book name to its details page Display the details of a book containing a link from the author's name to the author's details page Display the details of the author containing a link to his book list Display the list of books by an author
M:))
I'm a student, I don't have time for my studies, help me save a girl who is frowning
Anonymous
Hi I'm working on a Django project and while doing the set up. I'm facingNo module found with numpy_ops module. I tried uninstalling dependencies and reinstalling in new venv I also tried to uninstall and reinstall numpy
Anonymous
Can someone suggest me anything on it. I took help from my senior, stack overflow as well as chatGPT. I'm using windows 10
Anonymous
_
I have multiple APIs in Django Rest Framework (DRF), such as A, B, C, and D. The client initiates a call to the main API, denoted as X. When X is called, following validation, the server will internally invoke API A. Subsequently, we must wait for a response, which typically takes approximately 10 seconds, though this duration may vary. After receiving specific values from the response body of API A, we construct the request body for API B. When API B is triggered, assuming we receive a response after 5 seconds, it contains a list of values that need to be presented to the frontend, allowing the client to select particular values. These selected values are then used as the request body for API C. From the response body of API C, we build the request body for API D. I have a total of 12 APIs like A, B, C, and D. Therefore, when API X is called, all 12 APIs must be invoked in accordance with the specified sequence, A->B->C->D, and subsequently, the response is returned to the client. Thanks a lot.
_
Your question?
Is it possible to call a view from a view?
AZ
Is it possible to call a view from a view?
I think what you want to use is Celery.
AZ
I have multiple APIs in Django Rest Framework (DRF), such as A, B, C, and D. The client initiates a call to the main API, denoted as X. When X is called, following validation, the server will internally invoke API A. Subsequently, we must wait for a response, which typically takes approximately 10 seconds, though this duration may vary. After receiving specific values from the response body of API A, we construct the request body for API B. When API B is triggered, assuming we receive a response after 5 seconds, it contains a list of values that need to be presented to the frontend, allowing the client to select particular values. These selected values are then used as the request body for API C. From the response body of API C, we build the request body for API D. I have a total of 12 APIs like A, B, C, and D. Therefore, when API X is called, all 12 APIs must be invoked in accordance with the specified sequence, A->B->C->D, and subsequently, the response is returned to the client. Thanks a lot.
# tasks.py from celery import shared_task @shared_task def call_api_a(): ... @shared_task def call_api_b(): ... @shared_task def call_api_c(): ... @shared_task def call_api_d(): ... # views.py from .tasks import call_api_a, call_api_b, call_api_c, call_api_d def main_api_x(request): result_a = call_api_a.delay() result_b = call_api_b.delay(result_a.get()) result_c = call_api_c.delay(result_b.get()) result_d = call_api_d.delay(result_c.get()) final_result = result_d.get() return final_result
Arturito ®
I have tables created in postgresql, how do I pass them to the moodelos in django?
Anonymous
Hey , when i am trying to install new package error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ iam gettng these error
Anonymous
I am using vs code how to resolve these error
Anonymous
You have to install visual cpp build tools
allredy installed still getting error is there any other way to resolve these error like python version downgarde
Secret
Yeah
Please upgrade c++ build tools
Anonymous
Please upgrade c++ build tools
allredy upgraded I will uninstall and reinstall it
Anonymous
Thankyou Secret Bit
Anonymous
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 thatone resolved now we got anotherone
Anonymous
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\django-social-network-master\env\include -IC:\Users\Lords\AppData\Local\Programs\Python\Python311\include -IC:\Users\Lords\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tclib/zoneinfo_module.c /Fobuild\temp.win-amd64-cpython-311\Release\lib/zoneinfo_module.obj zoneinfo_module.c lib/zoneinfo_module.c(600): error C2065: '_PyLong_One': undeclared identifier lib/zoneinfo_module.c(600): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
Charly
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\django-social-network-master\env\include -IC:\Users\Lords\AppData\Local\Programs\Python\Python311\include -IC:\Users\Lords\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tclib/zoneinfo_module.c /Fobuild\temp.win-amd64-cpython-311\Release\lib/zoneinfo_module.obj zoneinfo_module.c lib/zoneinfo_module.c(600): error C2065: '_PyLong_One': undeclared identifier lib/zoneinfo_module.c(600): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
Did you installed a 32bit version of visual c++ on a 64 bit machine?
Anonymous
Charly
No by default it is added while installing
What package are you installing ?
Django
How to get real time current bus location in DRf ?
Charly
Django
Yes
Charly
Yes
So just send it on the view as any other data?
Django
I don't want to use with server side javascript and fetch
Django
Can do json load
Django
I give example bus_name lat long location last_updated_time
Django
I just want to working with few dummy data
Anonymous
What package are you installing ?
Thankyou for your response Charly error resolved
Soa
I've a project using sqlite which has data I want to use mysql. what should I do
Charly
I've a project using sqlite which has data I want to use mysql. what should I do
Check the documentation to see how to setup mysql on django
Soa
I've set up and connected to empty database of mysql(xampp) connection is online. But tried data transfer from make migrations struck in midway
דוד
Is there anyone who knows free django server to host my web?
Mirco
Is there anyone who knows free django server to host my web?
python anywhere, heroku, fly.io, appliku etc they have free tiers
Parsa
How to connect thr portage database with orm
Pranav
can we send text with it def gen(camera): while True: frame = camera.get_frame() yield (b'--frame\r\n' b'Content-Type: image/jpeg\r\n\r\n' + frame + b'\r\n\r\n')
Pranav
?
Armin
hi is there any statement "djr" in pipenv?
Asadbek8802
is there anyone who has worked with internationalization and localization? in general doing many-language-web-site?