Azizbek Xushnazarov
The Inspired
Charly
Tushar
Operation is same
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
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
I am new to django
Rucha
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?
iplogger
ડꪮ᥇ꫝꪖꪀ᥇ꪖꪀⅈꪖડꪖᦔⅈ
Very well
Tnx.
Shameem
Charly
Please?!!
Django' s view engine?
I mean that makes no sense, what do you really want to know?
Shameem
Shameem
Charly
There is no "engine" so thats why your question seems confusing
Shameem
Anton
Hello, what better to use to test django + drf app. Unittests or pytests or something else
Maxim
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.
Andrew
no
I have doubt, could you please help,
Ritesh
Zangetsu
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
Andrew
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
Andrew
Easiest way ☝️
Andrew
Then one database each per service.
Zangetsu
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)
jaxx
Andrew
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
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
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ā
J
Anyone help me
Maksim
When to save data of User(django.contrib.auth.models)? In MySQL them isn't
Doragonsureiyā
Doragonsureiyā
Anyone help me
Not until you explain your difficulties.
professor
https://linkode.org/#oI8RO7let1h9zjqMWQizS3
professor
view.py