Zain
how to send otp for verification on user's whatsapp in django website? anyone got a lead?
Saint
👍
Madhav
I want add model field of I'd as primary key and auto increment field for postgresql, please suggest how to write
mAXY
Shukurillo
vote{{ choice.votes|pluralize }} what does the above do?
William
vote{{ choice.votes|pluralize }} what does the above do?
Search in google about singular and plural.
Shukurillo
Вова
Hi guys, how I can track the similar links? for ex: log/1 log/2 log/3 .... And another question - how I can put another attribute in function beside request(path('',view.func(request,attr))
Rahul
I have implemented this... It creates user but on the rest token i get a page not found
Anonymous
Share code
Fox
Could someone please provide me any enterprise level open source code django project link??
Rahul
urls.py
Rahul
installed app
Rahul
though it might be very slow if we do it on device
Doragonsureiyā
installed app
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Rahul
ok
Rahul
but that is already commented
Mounted
Hello How can I call the celery task function after the page has loaded? Help me please
elf
Check the celery docs to see how to hook it up in your project
elf
Then, you can call a some_function.delay(args, **kwargs) where some_function is a function you defined with the celery shared_task decorator and args are the function's arguments
LB (Ben)
Yes, I wrote a function, I know how to call it, but I want it to be executed after the page is loaded, not before.
If you want to call a function when the browser loads the page for the user you have a few options; - JavaScript - write some JS that calls a seperate endpoint or calls the same page's url with a different header. https://developer.mozilla.org/en-US/docs/Web/API/Headers - hacky - image - have a small image that gets shown on the page. It could just be a 1x1pixel gif but the request is at an endpoint seperate from the main page.
Anonymous
Anyone knows dj server run with react app
Anonymous
Is Anyone know that how to run that after build react
Anshu
Anyone knows dj server run with react app
You mean integrating react with django
Anonymous
You mean integrating react with django
Some front end js app is ready by react, hope to run in python3 http server such as django
Anshu
Some front end js app is ready by react, hope to run in python3 http server such as django
Build rest API in django, and then fetch the api through react
Anonymous
S A I
I have a query on Django related task can anyone help me?
Shukurillo
def test_no_question(self): """ If no questions exist, an appropriate message is displayed. """ response = self.client.get(reverse('polls:index')) self.assertEqual(response.status_code, 200) self.assertContains(response, "No polls are available.") self.assertQuerysetEqual(response.context['latest_question_list'], []) this code runs and there is no mistake, but index model I have already data. The question why there is no mistake in response?
Doragonsureiyā
I have a query on Django related task can anyone help me?
Rule 🔟: Job posts are SPAM unless they meet the requirements. Read the rules for details.
Python Guy
When user post some data, I want it to be hashed in my database and only owner of that data can see his post on his dashboard. What library should I use?
Sakshi
hello, I have a Django related doubt is there anyone who can help me with it? Is it possible to add multiple images through admin site?
Sakshi
& what about serializer class?
Anshu
& what about serializer class?
Serializer is needed in rest api
S A I
I need to create a views for voting for a poll so that I created some views but it’s not working properly
Python Guy
hashlib
but problem is I am not able to de-hash. So I will user able to see what they have creation. Mainly I want to create two function, one will hash and will have some secret key that can be used by second func to so it will be able to decrypt those data when user want to access his post.
0x
django set debug=False, and set `STATIC_URL = '/static/' STATIC_ROOT = BASE_DIR / 'static'.` But accessing http://127.0.0.1:8000/admin/login/?next=/admin/ the css and js files still shows 404
0x
are the any other setting params?
Morteza
are the any other setting params?
yes in project folder > urls.py
Morteza
yes in project folder > urls.py
​if​ ​settings​.​DEBUG​: ​    ​urlpatterns​ ​+=​ ​static​(​settings​.​STATIC_URL​, ​                          ​document_root​=​settings​.​STATIC_ROOT​) ​    ​urlpatterns​ ​+=​ ​static​(​settings​.​MEDIA_URL​, ​                          ​document_root​=​settings​.​MEDIA_ROOT​)
0x
ok tks
R@kesh
Which application is best for develop django devlopment
Doragonsureiyā
Which application is best for develop django devlopment
What IDE/Editor to use for Python want to start an IDE war? do that here
Jerome
are the any other setting params?
manage.py collectstatic ?
Proton
Hello Good afternoon. Please id like to know if anyone here has implemented squareup payment system on django application?
Coding
I've 4 tables... I want to connect them how to do that in django
Kshitij
Anyone can help me with login signup logout forget password codes i am new on django
Anshu
Carsalberto
Only user is_superuser can create a new user?
Carsalberto
👍
Dot enum
I'm using simple history models and I'm not able to get history user in production but it's coming in local. CAN ANYONE HELP ME IN THIS?
Doragonsureiyā
I'm using simple history models and I'm not able to get history user in production but it's coming in local. CAN ANYONE HELP ME IN THIS?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Nabin
I want to integrate tawkto chat in my django website but I m not able to integrate. Plz help me out
Anshu
I want to integrate tawkto chat in my django website but I m not able to integrate. Plz help me out
It's pretty straight forward, just paste the widget code in your base html file
Amit
Hello i want to call multiple forms from admin model Like i have created resume building app in which i have created models like Profile Education Experience Skill So i create form for profile and education and also create saperate template but on both template it show ither profiles model or education model. Given seperate URLs to both template but still get same result on both Please suggest?
Anshu
Consider using ajax form submit
Redrick
Hello, who can tell where can find material on creating a forum on django.
Doragonsureiyā
Hello, who can tell where can find material on creating a forum on django.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
محمد همتی 👨‍💻
İş Django better than nodjs?
Anshu
İş Django better than nodjs?
No need to compare, django has its own advantages
Azamat
İş Django better than nodjs?
There is not better or worse. These both tools has own as advantages as disadvantages
Azamat
What using it depends from your task
محمد همتی 👨‍💻