Übermensch
How much u learned?
according to courses, a person created an online store from scratch, repeated, taught
Satya Anurag
Hi, from templates I uploaded a file and django stored it as TemporaryUploadedFile. I want to upload that image to my media server (which takes images's URL or base64 encoded to upload)
how can I do so? Like converting to base64 format then uploading or converting from TemporaryUploadedFile type to simple jpg/jpeg etc image formats
Yazan
i have a problem that is i can't upload files from admin panel to my folder document in media , i try to upload but it always failed the server still uploading and the end it say error 500 request time out , so after i tried many solution i thing my problem with mysql db or with django
Yazan
note : when i try to upload files using SQLite on local server not in hosting it's work good but with mysql i have this problem , i can choose the file but it won't to upload
Ola
Whats the difference between Django and django rest
Aza
Zen
What is API
Siddharth
Finally I hosted my website today, thanks for u all to help !!
John
Hello!
I am a new programmer and i have finished my python crash course,
I want to dive in django, but i don't know were to start.
Any recommendation please!
Nithin
John
Zen
app to show create, read, update and delete data
Nithin
John
Nithin
Oooh! Thanks
Just Google what is crud and now it works and all you can improve your searching and learning skills
John
Nithin
Nithin
And follow offical documention also
John
🅓🅡🅔🅐🅜🅒🅗🅐🅢🅔🅡會(Inactive)
Abdulloh
Hello, fellow developers. I'm new to django. Like new new.
I got a back-end project of a e-learning platform containing 3-4 webpages (according to the client).
In my guess, the project includes user authentication and payment integration with local payment systems. And it should also restrict user access from multiple devices (max 1-2 devices is allowed).
I have good knowledge of Python.
Is it doable in one month, for someone who has no prior experience with Django?
Maxim
O
hello guys. im new to python and django and i need your advice. i need to receive data (temperature) from serial port and display it on a website in real time. i mean any changing of data must be displayed on my website without reloading page. so the first part of this task was easy, but i cant display the data on the site. i tried to find some information that can help me, for example about ajax etc, but i only beating around the bush. could you give me link to solution of similar task or maybe some key words by which i can find information, or help somehow please?
The Inspired
Muبaّşir
My user model has user_type model, how can I check user type in template
Ahmad
Ahmad
You don't have to reload your server, Javascript can get it done, just make sure you have an endpoint to fetch the data from.
.
Ahmad
{% if user.user_type == _ %}
Do this
{% else %}
Do this
{% endif %}
Satya Anurag
Hey is there some lazy load image framework to use in django
Muبaّşir
O
Кирилл
Hey guys, I'm kinda new to both webdev and django.
Is there a way to change something on the page by clicking button?
Imagine that I have a simple html structure:
<div>1</div>
<button>Increment</button>
I want to change 1 to 2 when I click the button, without the whole page reloading ofc. How can I do it with Django?
Sorry for the dumb question btw :)
Rifky
Rifky
You use django as Full-Stack, but in Front-End you can use JavaScript
Rifky
Html, css and JavaScript
Кирилл
Because actually I need to change the text to the next value in the database, and database management is done in django with python, not js
Rifky
You can read this article bro
Rifky
Кирилл
Smile
Hello
What are the best practices for secure sessions in cookies from hackers? how is it done in good projects?
devmie
Purushottam
How I can push the latest code using GIT to all the servers which are part of auto scaling group under the load balancer in AWS.
Yazan
any way to use django with firebase push notification for android?
Виталий
Good afternoon, tell me how to Django. I have a table I need to join some rows from this table with others. How to do it? Here is an example sql query
Виталий
select t1.bleu, t2.bleu
from
(select * from testmetrics_stringsmetric where type=1) as t1
left outer join
(select * from testmetrics_stringsmetric where type=2) as t2
on t1.position = t2.position
Jumana
How to add login page and signup page in python django
.
Whre are you doing played=winningcount+losingcount from? It should be something like played = instance.winningcount + instance.losingcount
And whether this is correct or not absolutely depends on where and how you’re writing that line.
.
.
Where exactly is “inside model”? In your code pasting website, better to show the model files and where you’re doing that line
Almaz
Smile
Http only cookies
does this solve all security problems? Why it safe can u explain in 2 words pls
The Inspired
does this solve all security problems? Why it safe can u explain in 2 words pls
No method is completely safe. If some hacker is really determined to crack your system, they will.
However, HTTP only cookies are considered safe because even if they are stored on the client, they cannot be accessed by client side Javascript.
so even if a hacker runs a harmful script that reads all your browser cookies, that http only cookie will not be picked up by the script.
This cookie is also always sent automatically with all requests made to the server, so you can safely access the backend APIs without worrying sbout how to send it.
The Inspired
2 word explanation: IT'S SECURE
Smile
Kirill
Hello. My stack Django 4.1.7, Postgres 9.6, psycopg2-binary 2.9.5 BUT I catch error 'django.db.utils.NotSupportedError: PostgreSQL 11 or later is required (found 9.624).' Why django don't work with 9.6 ???
The Inspired
The Inspired
cj
Kirill
cj
Joel
Hi, I've 2 models, I would like to obtain the relationship in the serializer,
the models are Event and Assistance, an event can have many assistances, and in the model assistance I define the FK, but I can't find how I can make the request because when I add the assistanceSerializer, it gives me the following error
AttributeError: 'Event' object has no attribute 'assistance_set'
Joel
in the EventSerializer I just add
assistances = AssistanceSerializer(many=True, read_only=True)
and in the assistance's model I define the fk:
fk_event = models.ForeignKey(
Event, on_delete=models.CASCADE, verbose_name="Evento",
related_name='assistances', blank=True
)
where is the error or what am I missing?
Manik
How to pass "sql query" as parameter in URL in curl command
A.N
Hi guys,
How can we generate a resume based on some specific templates by using user's information from database?
Should we first make some pictures and put text on this image? Or make a not filled html and put these values in it? Or any other solutions?
Thanks
.
.
.
Disha S
Anyone can help me in task please
Doragonsureiyā
Anyone can help me in task please
We're not here to do your job for you.
This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻♂️
Nasrullah
Hi everyone,
My login system doesn't verify email address and return none,
Can you help me ?