Uday
<object>.<foreignkey_field>.<fieldyouwant>
Uday
If i understood your question correctly
Praveen
Can I use django orm in some other framework of python
Doragonsureiyā
Anonymous
Osinaike
Hi guys I keep getting this error.
'tuple' object has no attribute 'splitlines'
When I want to send an email using the EmailMessage function
Shubham
I have an error when upload xlsx data to django database "invalidDimentions encountered while trying to read file" Please help
Ahmad Reza
Osinaike
Okay..
In my utils.py file, I created a function
from django.core.mails import EmailMessage
def sendEmail (emailBody):
email = EmailMessage(emailBody['subject'], emailBody['body'], emailBody['from_email'], [emailBody['to_email']])
email.send()
ℳℴ𝒜𝓁𝒾 𓂀
Hi guys, when I use Bootstrap ... when I start Django, Bootstrap does not work ... can anyone help me?
Rutherford
Masthan
Hi can any one help me with this from admin panel I ahild create form
How to do this if any resources please share ne
ℳℴ𝒜𝓁𝒾 𓂀
Брат
Hey! How do you reverse the action's url_name? Nothing worked for me from stack overflow, though
Doragonsureiyā
Hey! How do you reverse the action's url_name? Nothing worked for me from stack overflow, though
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
Doragonsureiyā
❎ Maxim pardoned Брат [215555555] for
3/3: Link to a Telegram group or channel
Ahmad Reza
Osinaike
Rawan ✨
can any one help me,
i want to create multi users based on roles , how i can ?
leozaur
Mirco
Mirco
Google is always your friend, or DDG
Farzin
Hi everyone,
We have a postgres database from years before, so there is a lots of data in it, now we need to add index to some of the fields, if we set db_index=True on that fields in django and migrate again, is there risks to damage or loose our data?
Егор
Backup your database and try =)
Jace
Hi everyone
Is it possible to use crispy forms with boostrap 5.2.0 beta
Chal
Can anyone tell me how to add functions of view in buttons one input but different button and every button have a different function. For example calculator
hamed
Hello
My friends, I send some data from the front (react) to the back end (django) and there I put the data in the data frame and some calculations are done and the answer is sent to the front.
When the volume of input information is small, the system works without problems, but when I increase the volume of information and more, sometimes it works, but most of the time it is an error.
500 internal server error
Gives. Is it the only way to use a more powerful server? I now have a tri-core server. Because if the number of users increases, this problem may also occur
thank you
S
Error while runserver
Maxim
Doragonsureiyā
A
Yoo guys, I just started with Django and I have a question..
Is the logic behind ur web application written in the (Views.py)
Or am I missing something here?
Maxim
Maxim
Neo
Yoo guys, I just started with Django and I have a question..
Is the logic behind ur web application written in the (Views.py)
Or am I missing something here?
A view function, or view for short, is a Python function that takes a web request and returns a web response. This response can be the HTML contents of a web page, or a redirect, or a 404 error, or an XML document, or an image . . . or anything, really. The view itself contains whatever arbitrary logic is necessary to return that response. This code can live anywhere you want, as long as it’s on your Python path. There’s no other requirement–no “magic,” so to speak. For the sake of putting the code somewhere, the convention is to put views in a file called views.py, placed in your project or application directory.
From the documentation
A
I don't wanna make something big...
Just wanna pass the information written in the front end all the way to the back end.
Neo
A
The front end is ready.. Same with the back end
But idk how to link them
Neo
Mohammad Hossein
Hello friends,
I run a python app of setup python application section on cpanel, but give error 503
Does anyone know what the cause is?
Alex
~ N
Hi guys,
Quick question
For best practices, should i make any coding with the crud and auth for the backend or should i leave any other coding for the front end
Maxim
~ N
Yes
~ N
I am using the rest api for the backend
~ N
And i am not sure if i add any coding in the backend or not
Kenechi
Kenechi
And won't you store users data in a database?
Maxim
Yes
In that case you have a problem with the wording of the question
you have phrased it so loosely that only a politician can answer it (with the corresponding usefulness of the answer)
hamed
Grace
I have a model with a MultiPolygon field that i am trying to filter in order to get all the polygons that contain that point,
Grace
this is what i have tried point = Point(lng, lat)
service_area = ServiceArea.objects.filter(
geom__contains=point,
)
print(service_area)
Rutherford
Ihor
Ok, thanks.
Grace
Grace
Anyone knows how to test for an extra_action method
Mirco
Grace
res=self.client.get(reverse(
"api:provider-get_service_area"))
Grace
this way?
Grace
It did not work
Grace
routes.register('servicearea', ServiceAreaAPIView,
basename="servicearea") This is the route
Bazaroph
Hello, does anyone know why when you send emails with django, they go straight to spam?
Mirco
It did not work
You need to put the right name in reverse
Install django-extensions with pip and then
python manage.py show_urls
And you will find the right name
Lord Voldemort
Мark
Hello everyone, can you help me with my project, when I runserver, it shows me error
Мark
how I can show you my code
Мark
?
Doragonsureiyā
how I can show you my code
To share code or error tracebacks, use a pasting service, like:
- https://linkode.org
- https://dpaste.org
Мark
https://linkode.org/#MOkHXDdQzaNrYu2rIq24e6
Мark
I fixed my problem
Rohan
Why would it matter?
Rohan
Also, you can move environment to root or anywhere else
Neo
says who
Juan
Hello, it's possible to use FileField in the model to upload images, but I need to save the absolute URL in the database because this database is shared with another application, does anyone know how to do it?
Alex
Alex
Alen
Can anyone suggest some good YouTube videos for learning Django Rest Framework or DRF