Tushar
you mean race conditions?
it's similar , but not in database
Tushar
Operation is same
Charly
Operation is same
then? I still don't understand whats the issue
Shameem
What is the view engine in django??
Paul
hi, i want to ask you guys, what you enjoy coding more, Class Based Views or Function Based Views, not asking what's better, what you enjoy more using
Mohammed
After learning the basics of Python and making a small application with pyqt5 And I want to enter web development, do you enter through django is good!
Hai bro. I am a beginner in django. I have some prior knowledge in html and css. I am now doing a project for my study purpose. If you want to choose web development as a career you should have good knowledge in html, css, javascript. Then you can choose any front end frame work like react, angular, django etc. As you already know python what i suggest go with django. Its very powerful.
Rucha
I want to upload a pdf file and store that in the database folder ..also want to show that pdf as a link in frontend
Rucha
Any one know about this ?
Sh
Use filesystems storage
Sh
Use a
Rucha
I am using rest framework and react for the frontend
Sh
S3
Rucha
Use filesystems storage
Can you elaborate please
Rucha
I am new to django
Rucha
S3
🤔
Sh
Will send a link
Rucha
Sh
https://www.section.io/engineering-education/how-to-upload-files-to-aws-s3-using-django-rest-framework/
Ritesh
Can anyone tell how we use validators in json response in django CRUD
ડꪮ᥇ꫝꪖꪀ᥇ꪖꪀⅈꪖડꪖᦔⅈ
Hi everyone Can you recommend a great resource or site to learn Django?
Doragonsureiyā
Hi everyone Can you recommend a great resource or site to learn Django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
ડꪮ᥇ꫝꪖꪀ᥇ꪖꪀⅈꪖડꪖᦔⅈ
Very well Tnx.
Charly
Please?!!
Django' s view engine? I mean that makes no sense, what do you really want to know?
Charly
Know about Django's view engine
What do you want to know about the "view engine"?
Shameem
Charly
I got a question to study about it!
https://docs.djangoproject.com/en/4.1/topics/http/views/
Charly
There is no "engine" so thats why your question seems confusing
Anton
Hello, what better to use to test django + drf app. Unittests or pytests or something else
Elhem
hello , Swagger does not require parameters of for login When I came to api/login view There I could find a field where I needed to send "username" and "password" For LogIn I inherit from KnoxLoginView HOW could I make Swagger require parameters and see Knox ?
Zangetsu
I have a question, I have made a django app based on monolithic architecture, I have to convert it into a microservice type architecture. Can somebody tell me how to proceed or some resources on microservices? I need to make it in python only.
no
I have doubt, could you please help,
Andrew
Can I dm you?
Just google it brother, anyways why do you want to split to microservice. It is much more headache to maintain. If you require more load, just upgrade your hosting machine to a faster one and keep your original django monolith
Zangetsu
Just google it brother, anyways why do you want to split to microservice. It is much more headache to maintain. If you require more load, just upgrade your hosting machine to a faster one and keep your original django monolith
I am new to programming and started learning django. I got a learning assignment to make microservices using django/python. (Sorry it violates the rules)
Andrew
Then you have to make one service link to another service and then another. Keep track of their state using RabbitMQ. It’s very troublesome brother.
Andrew
If you still want to do it, check on YouTube. Free code camp micro services in python. Just copy the final git repo… and submit as your assignment 😂 can pass it already easily
Zangetsu
Then you have to make one service link to another service and then another. Keep track of their state using RabbitMQ. It’s very troublesome brother.
I know brother, I have searched all YouTube and docs etc. Can't seem to make heads and tails out of it. I was given the microservices playlist on pluralsight to refer too..but it was in some other language (Java and springboot) whereas I am to code in python and django specifically
Andrew
I know brother, I have searched all YouTube and docs etc. Can't seem to make heads and tails out of it. I was given the microservices playlist on pluralsight to refer too..but it was in some other language (Java and springboot) whereas I am to code in python and django specifically
It sounds that you should feedback to teacher.. Anyways you basically just wanna make sure you have a “middleware” which is your entry point. Then your client makes GET request to it. Then,. This middleware repo will send request with the query data whatever to the service. Maybe you have one service for “bookings” one service for “transaction” Then this first service called Middleware will consolidate from everywhere to return to client.
Andrew
Easiest way ☝️
Andrew
Then one database each per service.
Ali
Using simple jwt
Are you send user session in each request??? with correct request's header?
Andrew
Thanks
Anyways microservice is language agnostic You can have your middleware service in Django. Then your booking service can be Java. Then auth service can be NodeJS for example. Every web framework supports the standard GET/POST/PUT and also JSON and REST/GRPC standard. Then each has their own datastore and hosted in it’s own container, and it’s all sync with each another through RabbitMQ or other message broker. This is how big company can maintain their systems. For small-mid size project.. it is not smart to build it like this.. monolith is good already
Anton
Hello guys. What instrument you know which can help to test callback api on dev server (on PC without staticip/domain)
Anton
Oh sorry. Look i connecting payment service to my project. If payment done.. it send post request to given address. I need some tool which can generate static ip/dns address and redirect it to my pc address with specific port (i have dynamic ip which changes every 1-2hours).. something like no-ip but smarter
Andrew
I am not sure if such a tool exists. Because it would need to also keep track of your changing home IP address. Since you are just testing it.. and you know your own IP address I guess you can update where it sends the post to? Or setup a fixed up address for your home
Andrew
https://www.trendnet.com/press/resource-library/how-to-set-static-ip-address
Эмир аббас
Hello everyone. I have been working with Django for some time. The Django panel of the site written on my laptop comes up without any problem, but on the host I went to https://sitename.ir/admin, it only shows a white screen. Where is the problem?
Эмир аббас
Koen de
And how is ALLOWED_HOSTS set in your .env file
Эмир аббас
There is a site that I designed myself and I use https://aamoradpour.ir/admin to enter, I only see a white screen. The site itself is displayed without problems.
Koen de
Maybe /admin is not routed correctly due to missing configuration in your webserver
Koen de
Can I send my code to see?
See the pinned message how to share/send code here. Though I do not think (yet) there is something wrong with your code though
Ivan
guys, help pliz on ajax to make a smooth change of pagination. Everything works, just a sharp cleansing and appearance, I want to smoothly, as through transition (css).
Doragonsureiyā
guys, help pliz on ajax to make a smooth change of pagination. Everything works, just a sharp cleansing and appearance, I want to smoothly, as through transition (css).
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
J
Anyone help me
Maksim
When to save data of User(django.contrib.auth.models)? In MySQL them isn't
Doragonsureiyā
Anyone help me
Not until you explain your difficulties.
professor
https://linkode.org/#oI8RO7let1h9zjqMWQizS3
professor
view.py