Faiz
I want to learn django can u refer a good youtube tutorial video
MR Nemo
Hi, i have a queation about good coding and performance(i am new in django), is it good that 1 template handle 3 types of urls? Foe example: I have 3 urls about posts: 1 - user posts 2 - posts that user liked them 3 - posts that user saved them That 3 above have the same template codes(except title + h3 tag ) So, i created one template and the 3 views of urls send their queries to this template, is it a good cooding and performance? I think my way is not good for team working...
Yahya
is there any video tutorial for basic hospital management using django rest_framework
Maxim
is there any video tutorial for basic hospital management using django rest_framework
if you think there's a video tutorial for every case, you're probably wrong
ishaan
has anyone tried integrating AWS s3 with ckeditor. I m able to upload the images on s3 through editor, but ing is not loading in editor
Chuks 🐋🐋
Has anyone use Django ninja here
Doragonsureiyā
Has anyone use Django ninja here
Please don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
greenspectactles
I have a hosted app on appliku with a digitalocean droplet. I cannot get pytesseract or tesseract-ocr working. I keep getting this error - Error during processing: tesseract is not installed or it's not in your PATH. See README file for more information. I checked in my root and app shells, i have it installed and the PATH as well
greenspectactles
Please could someone help
Babak
If we want to build a site that has a service and products section, we need to create a url and view for paying money for each one?
{M,E}
I am starter please help me
Doragonsureiyā
I am starter please help me
No one can help you until you explain your difficulties.
Doragonsureiyā
If we want to build a site that has a service and products section, we need to create a url and view for paying money for each one?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Tukwasi
Hello good day all , please I need your help
Doragonsureiyā
Hello good day all , please I need your help
No one can help you until you explain your difficulties.
Wei Xiang
Is it possible to integrate OTP and LDAP authentication with Django?
Mirco
Is it possible to integrate OTP and LDAP authentication with Django?
yup, just google it and u will receive lots of answers
Wei Xiang
Ok. If share link would be helpful. Like references.
Charly
Ok. If share link would be helpful. Like references.
Don't be lazy. Better if you ask more concrete questions here
Sing
I am using fcm to send push notification with topic based notification. From 10days i am getting an error api depricated. Can some one help me i need to upgrade the fcm api? Or need to do fixtures ?
Sing
I didnt find any updated version too
Ssergi0o
Can someone help me, i want to deploy my django app, on aws with gunicorn, nginx and ssl certificate for custom domain, but every time i try to do this i face with some problems: couldn't establish static files even though in nginx conf file everything seems well, or other problems
Ssergi0o
Or maybe u know some good tutorial for all this shit
Ssergi0o
one second
Ssergi0o
could i dm u?
Maxim
could i dm u?
help is to be provided in the group
Ssergi0o
server { listen 80; server_name {my domains} ; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { alias /home/ubuntu/BlogGitCopy/staticfiles/; } location / { include proxy_params; proxy_pass http://unix:/home/ubuntu/BlogGitCopy/mysite.sock; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } }
Ssergi0o
that's configs
levi
Or maybe u know some good tutorial for all this shit
Have you collected all the static files?
levi
Or maybe u know some good tutorial for all this shit
You can use "python manage.py collectstatic"
Arman
Out of your commercial experience, what is the most popular way of implementing admin interface 1. Default 2. Third party (jazzmin, volt, etc.) 3. Custom. Also any recommendations will be appreciated
Charly
I mean, it really depends on your specific needs
Дмитро
Hi guys. I’m not good at Django so could you help me with some questions? And also I’m bad at English so will use chat gpt and translator. I’m sorry for that. I have read some threads on Reddit but have not found answers. Django or drf combination with react. I have found many videos and topics about how to connect DRF and React. But I don’t understand why it's necessary to use Django forms and other utilities if there are alternatives. However, I’ve heard that some companies use default Django without DRF. And what is better to learn: Django with templates or DRF + React? Which one is more valued by companies? Or is it better to learn both? index.html feature. I know that in React there is an index.html that displays all the content or something like that. I saw that it is possible to host this file through Django while still using the capabilities of both React and Django templates. So, is it worth learning, or is it just a workaround? And do companies actually use this approach?
pranit
Hii, can any one help me regarding the django project setup on Ubuntu server on subdomain
@u_one23
Hii, can any one help me regarding the django project setup on Ubuntu server on subdomain
Yes, you can generate sub domain on platform where you bought the domain and set it using nginx in your server
mahyar
class TicketCommentsWithAttachmentsView(APIView): permission_classes = [IsAuthenticated] serializer_class = CommentWithAttachmentsSerializer def get(self, request, *args, **kwargs): ticket_id = kwargs.get('ticket_id') try: ticket = Ticket.objects.get(id=ticket_id) except Ticket.DoesNotExist: return Response({'error': 'Ticket not found'}, status=404) comments = ticket.comments.prefetch_related('attachments').all() serialized_comments = self.serializer_class(comments, many=True).data return Response(serialized_comments) path('ticket/<int:ticket_id>/comments/', views.TicketCommentsWithAttachmentsView.as_view(), name='ticket-comments-with-attachments'), hello friends I have an api here but it is not showing in swagger(drf_yazg) please help
Sajjad
Use Generics instead of APIView.
GebericViewSet or GenericAPIView
mahyar
GebericViewSet or GenericAPIView
tnx i use GenericAPIView instead of APIview but It still hasn't worked for me
Sajjad
tnx i use GenericAPIView instead of APIview but It still hasn't worked for me
Did you get error or something? What about your other APIs?
David
Hi everyone! What WYSIWYG would you recommend for Django admin panel?
Pablo
Hi everyone! What WYSIWYG would you recommend for Django admin panel?
I love using Django quill editor but another good option is Django ckeditor
David
Thanks Pablo! I've been trying ckeditor but it seems no longer supported for django. I'll take a look at quill :)
mahyar
Did you get error or something? What about your other APIs?
No, everything is fine and works properly just this Api There is a problem
Ashish
Page not found (404) “C:\Users\BOORA\Desktop\Django\mysite\media\38559396.jfif” does not exist Request Method: GET Request URL: http://127.0.0.1:8000/media/38559396.jfif Raised by: django.views.static.serve how to fix it
soMandla
Hi everone , Im facing a difficulty here , my power shell and my CMD cannot recognize "pip" , when I run the commands for creating a djongo project but I cant even setting up my virtual environment since pip is not recognized, if you got help pls assist
soMandla
I have installed python but when I check for a version to confirm it says python is not found
Charly
soMandla
I don' t recommend you to use Django without knowing the basics of python. That being said you need to reinstall python, making sure to mark the option to add to the path
I did make sure of those initial steps , I marked it to add to path , I really don't know why it fails to continue with the steps to creating a virtual env
Charly
if you write python does it work or not?
soMandla
Why you are creating an env if you don' t have python yet?
I have it , downloaded and installed , but "pip is not recognized as an internal or external command" that is the output msg, which means I cant go any further if I don't have pip
Doragonsureiyā
Please don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
Varun
I deploy my website on ubuntu webserver,my static files are rendering but when I open admin panel,it does not render static js and css file
Varun
Solution
Varun
No,Can you tell what this command do
Pablo
No,Can you tell what this command do
It gathers all the static files in your project (your project static files and admin dashboard) into a central location that you specify in your project settings. Since you are deploying live to a VPs, I will suggest making use of whitenoise to serve your static files. The video below explains exactly how to do that: https://youtu.be/OeywgMArAGM?si=rFxvDXmJuRbat1lt
Varun
Ok thanks
Pablo
Ok thanks
You’re welcome!
Amir
Hello friends, I hope you are well, Django does not recognize css files, what should I do? I will also send you a sample code.
Amir
Can you explain more?
Amir
It is not possible to send photos in the channel
Michael the wolf 🐺