Anonymous
Are there any product based startup which uses Django?
Tushar
Actually there are many
Pratik
I wants, if user entered a wrong path then he will redirect to login page.. is there anyway to global login for a wrong path
SAM
I don't think that's possible
So how can we use js libraries in template?
SAM
what😳
I just want to use js libraries
Tushar
So how can we use js libraries in template?
Can you specifically tell me your requirement?
Tukhtamurod
I just want to use js libraries
where on earth you would want to use js library inside python dude?
SAM
where on earth you would want to use js library inside python dude?
Because I want to use persian calender persianDate
Tukhtamurod
Because I want to use persian calender persianDate
use respective python libraries dude, what you are saying is completely unethical in programming
Tukhtamurod
You mean I can create calender in python for templates?
you wanna add calendar widget to your template?
Tukhtamurod
Exactly and use it in a form
alright you can do it with javascript if you found smth, but i dont understand one thing, it is on the front end and has nothing to do with python
Tukhtamurod
js doesnt compile in server as long as you are using non-js framework, it only compiles on the client side
Tukhtamurod
Yes I know this, I just want a calender in my forms
well, i understand if you could find the appropriate js library and learned how to use it, just use it, why are you asking if you can use js library inside python as long as you know js has nothing to do inside python
sam
Hello my friends. I have a django channels backend & i want to connect that into react typescript. Can you recommend me any resource?
sam
you already have react and django apps separate from each other working fine?
Yes. I have backend code working fine and i have no frontend for that
sam
you know react? or wanna learn it?
I know react but i have no experience in websockets
Arezoo
i used get_obj in RetrieveUpdateAPIView ,but when get_object_or_404 can not find object,i get this error:
Arezoo
django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
Arezoo
django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist.
i think because of empty response pass to serializer,and it can not work property!!
Arezoo
Have you done the migrations
yesss..this is ur:127.0.0.1:8001/ticket/106/
Arezoo
because 106 record there is not in my table..then i get this error
Tukhtamurod
I know react but i have no experience in websockets
https://medium.com/@abhi.sharm.414/live-whiteboard-with-django-react-and-websockets-7cae864ed6c5
Random
How to create validation for createview
reza
Hi guys. Please introduce me to the best e-book you have read about django.
Dharmendra
How can Weasyprint pdf open on new tab?
reza
Anonymous
Hello, How can i get charfield value of class B in Class A in model
SAM
Ok. Thank You
You're welcome
Ajitesh
Sure...
For sure
Arezoo
hi,what is 'django.contrib.sites' that is in installed app in django setting
Titus
hello guys I have the following but static images do not show any help?
Titus
Thanks @Harish, where should I put it?
Tushar
I need grocery website any help?
That should be pretty similar to this job portal app as here they are connecting jobseekers and employers and you just want to connect grocery sellers to buyers. But I think this playlist is not yet complete https://www.youtube.com/channel/UC_5JilzwYSqd-5C430yEPAA/playlists
Abdul Aziz
hello guys I have the following but static images do not show any help?
Check your static folder name very well, the directory (it should be in the directory of the app where views.py, models.py and so on are located ), To load the images in the static folder inside the app type {% load static %} on top of the html file and type {% static 'image.png' %}
M.
Media files isn't loading when debug = false in settings.py. How to solve it?
Beka
hello guys I have the following but static images do not show any help?
Did you configure settings in urls.py and settings.py?
Beka
Media files isn't loading when debug = false in settings.py. How to solve it?
https://stackoverflow.com/questions/5836674/why-does-debug-false-setting-make-my-django-static-files-access-fail Read about webservers like Apache or Ngnix and you're good to go. Good luck.
Beka
the best way to show image is just use image directory. That's all. For example: <div class="nextdirection most-next"><img src="{% static '/webapp/moviestrailer/movies/img/right-arrow.svg' %}"></div>
Titus
Thanks
Manish
https://stackoverflow.com/questions/66645325/how-to-overwrite-the-create-method-in-writable-nested-serializer-for-nested-m
Abhishek
I need help to host my django project on firebase
Doragonsureiyā
I need help to host my django project on firebase
Your question is not related to Django. Please move to @PythonOfftopic group and ask there.
Anonymous
Guys rest api or graphQL? which one ia best
𒂵𒐊𒍝𒊏
hi any one her try hosting django on python anywhere
Mirco
Guys rest api or graphQL? which one ia best
The one you are more comfortable with
Doragonsureiyā
hi any one her try hosting django on python anywhere
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! With ~90,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
antonov
Hi there! Can someone share an article about setting up several django apps like reusable app. Cause I always get exceptions "ModuleNotFoundError: No module named app1" when I try to add app of my reusable app root to the INSTALLED_APPS like "reusable_app.app1, reusable_app.app2"
antonov
https://docs.djangoproject.com/en/3.1/intro/reusable-apps/
Thanks, but I've already checked this article, It doesn't help with reusable app with submodules :) I've solved my problem with specifying a relative path including parent module for every app (done it with django-allauth repo as example )
Agent Q
ok
Deleted
pls help with this question, thanks. https://stackoverflow.com/questions/66648793/implement-authentication-in-request-send-to-ldap-server-for-connecting-in-python
DD
I have created a model Education which contains foreign key field Person In that, I want to render a normal model form and all the forms with related instances for update operation of data stored to specific Person object How can I render both simultaneously, In other way how can I render form without any argument to update a data ?
Anonymous
If request is post then do whatever you want with it
Sergio
Hi people, I have a problem with my project, I don't understand why admin_interface doesn't work. I installed with pip a module named django-admin-interface, and nothing changed. Help
Sergio
And colorfield didn't work neither
Anonymous
Cloud Community Days 2021 Tech Fest To be held on 🗓 Mar 24 Online Register at :https://ccdays.konfhub.com/?utm_source=84c137bc&utm_medium=email&utm_campaign=referral Use This link for my Referral**** About Online | Free | Developer-focused Cloud Community Days is a two day (24 & 25 March 2021), virtual, developer-focused, community driven conference themed on the various use cases of Serverless & DevOps on Azure, meant for professional developers! What to expect? Demo heavy talks by expert speakers on the theme ‘Serverless & DevOps on Azure’ starting from best & latest practices bringing you a one-stop learning platform for your Cloud journey! Virtual Workshops are Always Fun! Take your skills further! Explore Serverless & DevOps with two insightful and unique workshops! Perks: 1. Industry leading experts workshop on open source technologies. 2. Various meetup opportunities 3. lights on latest technologies and 101 sessions 4. 💰 Rewards for timely Quiz , Register at: https://ccdays.konfhub.com/?utm_source=84c137bc&utm_medium=email&utm_campaign=referral Use This link for my Referral****
Vxvek
How to create auto Id in models with EMP1, EMP2 like I been trying whole day