George
Darta
how can i send this arguement(next in this example) in this code: return HttpResponseRedirect(reverse('login-register'))
i would like put <url>?next=something but how can i pass to it
kuzmich
Darta
and it's in my urls.py:
path('login-register/', login_register, name='login-register'),
Darta
i want login-register/?next=something
kuzmich
I think middleware should do it
kuzmich
I'd save it into the session
kuzmich
Once is logged in and there is next then do redirect
Darta
Omkar
Omkar
Anyone please explain
AMiR!
Hi
How can I get a json data from user in post method in rest framework?!for example it includes age:
age = request.data.get(“age”) is correct?
Mr.TD
anybody has more experience in django
Mr.TD
pls somebody put thumsup
Mo
hi, for loading a model in django rest api, stackoverflows suggests the below instructions. what does it mean by "yourfile.py config."
You can do it in Django by creating yourfile.py config.
Just you should redfine the django AppConfig there, and instanciate your models .
It will load all your models when django is starting for just once .
Anonymous
yusof
Hey i wanna add a serializer field to my modelserializer
Actually i want add a filed that doesn't save data in database
Does anyone know what should i do?
Thanks❤️
Eric
Anonymous
💙
Is anyone expert in Django?
George
Doragonsureiyā
Is anyone expert in Django?
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
💙
Sorry for that
💙
Actually I'm a beginner on django that's why I'm asked you.. sorry sir
Anonymous
💙
Yes
I wanna strong my career at django framework sir!
𝐄𝐫𝐟𝐚𝐧
Hey guys,
I have a question,
You use MySQL or SQLite as your apps database?
123
123
Depends on app n required performance
Anonymous
Anonymous
So what are you expecting from this group may I know
Anonymous
I mean what help do you need
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
We will help
enansi
Same with MySQL
Yes. I specified sqlite3 in a production environment because there is a perception that sqlite3 is only for prototypes, and PostgreSQL/MySQL/MSSQL are for production.
Anonymous
drone
Can anyone help to how to solve CMD error while installing virtual environment os error bad description error
drone
For django
Yusuf
I want to display 3 tables made in 1 main table.
For example 3 tables:
Complainants, victims, types of cases.
All connected in the kasing table.
How do I want to display all table details in 1 view?
example:
Complaint:
ID complaint.
complainant name.
address
victim:
ID of the victim
Name of the victim
Case type
Anonymous
Hi team, I do have one django app...that is opening only in the server which I had deployed but not outside the server ...please anyone can suggest solution so that I can open the same site outside of my vm too
Anonymous
Thanks in advance
VISHNU
How to get only required fields from elastic search django suggestion, now I am getting all the fields present in the model.
Anonymous
Hi, I am new to django, I am learning to manipulate the django manager, my question is how can I directly execute a script.py from my html load button, and the result of the execution shows me there in my application, my script. py is an external file that I want to run from a specific path, my script.py is an algorithm, I appreciate your help.
Almaz
kritikos
this an django request log [20/Jul/2021 20:28:22] "POST /execs/25/update_position/ HTTP/1.1" 200 0. What does this 0 at the end represent? please
Doragonsureiyā
Hi! This group is English-only. Please, translate your message into English and delete the non-english message. Or move to a group speaking your language (type "!ol" to see the list). Thank you.
Anonymous
Can anyone familiar with the aiogram library, in what format should the received bot be sent to the django API?
Now a request message is being sent in this form, do you need to convert the file to an I / O binary / io.BytesIO?
file_info = awaiting bot.get_file (message.photo [-1] .file_id)
new_photo = (waiting for bot.download_file (file_info.file_path)). read ()
Endpoint with serializer return {"img": ["File extension" "is not allowed. Allowed extensions: bmp, dib, gif, tif, tiff, jfif, jpe, jpg ... etc.} Because I'm not sending a file
Anonymous
Hey, Guys, How easy is to deploy a Django project in Heroku? Is it hard?
VISHNU
TЯЕBŌГ
Hello colleagues, how can I consume data from an external api in django rest framework to later send it to my local api and save the data in a database?
Hansric
How do we combine data from multiple models in Django ?
Hansric
Basically I need to create a view from multiple tables
Anshu
whatsinaname
Any tutorial on RSS feed in django?
Arezoo
Hi
How can I return file in api drf .I don't want to return url of file
whatsinaname
How to add notifications in django
Doragonsureiyā
Arvindhan
whatsinaname
whatsinaname
I have an ajax related doubt in django
Hii
Extract the sentences from the attached text file.
A sentence in this scenario is defined as the string after the first period(.) till the second period(inclusive).
Example:
Line:
1. It exhibits much the same descriptive technique and is open to much the same criticisms. 8.728591527828165
Sentence:
It exhibits much the same descriptive technique and is open to much the same criticisms
Hii
can somebody tell what function i should use
Hii
can you help
yusof
Hey guys
Is there any way that i add a field in admin panel with out using models?
I want to add it with forms!
Arunkumar
1st explain
Y u don't want to add it to the model
coder
many thanks
Anonymous
Hi. How can I define from where postgres process runs all the time ? Every time when I kill a process then something creates a new one. How can I fix it ?
ann
hi, How can i get list of employees under a supervisor recurively.
sayanth
anyone know about how to apply dependent dropdown in django form.
Ray of Hope
Azizbek Xushnazarov
why I cant send media?
Mirco