Ton618
I would really appreciate the help Thanks in advance
Mirco
use pastebin
Ton618
use pastebin
Thanks a lot, will try it!
Mirco
anyway here, don't use hardcoded urls into the html
Mirco
use reverse
Ton618
use reverse
I tried using it, but I'm still getting the error
Dani
Hi can anyone help me with unit testing, currently I have two rest api routes with couple of decorators in it in flask app, I want to create unit tests for both api's since it contains decorator how to mock those and proceed
Mirco
I tried using it, but I'm still getting the error
use pastebin and share the error you have in your console
Ton618
use pastebin and share the error you have in your console
Thank you so so much for the timely help, the error is resolved
Александр
hi, help me with advice, I need to make a web interface on Django to manage the asterisk server. I made a template, functions for sending commands via ssh . how to link functions to buttons in the interface, this is not a post request.
Александр
You need a view
what model in models should I use for the buttons in the models ? in views, how do I call the function I need? maybe I'm asking stupid questions it's been a long time since I used Django
Yasin
Hi I want to save my object api when it was created by drf how can I do that?
Sherlock
https://pasteboard.co/JAGUoyB.png
Sherlock
Value error at / The view base.views.index didn't return an HttpResponse object. It returned None instead.
Sherlock
<form method=“post”>
Sherlock
Can someone help with this? I am getting this error on submitting a html form..
Sherlock
return render(request, ‘index.html’, context) I was using this line instead of tht.. still getting same error..
Holla
Did u tried return HttpResponse
Derick
Can someone help with this? I am getting this error on submitting a html form..
If you have a method that post calls to process the form the post method should return that method call rather than just call it. This is assuming that the method that's called is the one that returns a response after processing the form. Also with post requests consider using HttpResponseRedirect rather than render so as to invalidate a processed form should a user use the browser back button. This is generally a good web development approach and not Django specific
Anonymous
Salom
Anonymous
Do you know uzbek language
Yuvi
How to slove this error MultivalueDictkeyError
bikrant
I want to learn reactjs can someone guide me for resources with js basics
Gk
Hello guys getting issue while loading css in Django 3
Gk
Can anyone help
Gk
??
Deleted
Hey, guys, need your kind help, how to fix the following could not using normal user to login problem: https://stackoverflow.com/questions/64867680/after-create-a-normal-user-in-admin-page-of-a-django-website-i-could-not-login?noredirect=1#comment114687073_64867680
Fazil
is there a better Task/Queue system than celery? I feel its frustrating.
Anonymous
Can anybody help me with integrating django with android studio application
Украинский
your android app connects API of your websites
Украинский
and retrieves data
Anonymous
Okay, thanks
Anonymous
I will study more about this
Fazil
Currently No.
I am amazed as to why no major tutorial platforms/persons talk about it? I mean is there any other way to handle long processing tasks that I missed out on?
sheikh
You can use kafka.
Fazil
I am also looking for an alternative but i haven't found anything which is better than celery..
Let me tell you what I am trying to do, I get input from user and process that input which might take time. Now I want to give immediate response to the user like please wait etc and process the task in backgroud without making user to wait
Fazil
If that's easy to do in other technologies than Django, then I am ready to quit it
sheikh
If that's easy to do in other technologies than Django, then I am ready to quit it
What problem you are facing in celery. Celery is good for this kind of stuff.
Sadra
Hey. Do it simply. Retrieve the record, update it. Done. It's an English group so please keep it in English though. :) Thanks.
Lannoy
💣
Niraj
Please suggest me:https://bit.ly/2IMaFP8
Adnan
Can anyone help
Goto browser and Press Ctrl+ Shift+R for hard refresh (before doing this u must look all the configuration must be correct )
Gk
It’s working now thanks bro
Sadra
Such an amazing stuff. Users start the tickets and admins will answer them.
Sadra
Such an amazing stuff. Users start the tickets and admins will answer them.
One to One relation between the answers and the tickets.
Sadra
https://t.me/pythonrules/44
Pavel
Hi. Could u explain what does it mean class Meta: auto_created = True
Sadra
Hi. Could u explain what does it mean class Meta: auto_created = True
Meta.__doc__ Otherwise, browse in the official docs. 👍
Xeyyam
Hi
Xeyyam
Who can help me about Heroku?
Xeyyam
İ stucked
Alex
İ stucked
It's unrelated to django. Read heroku's docs and try harder.
Xeyyam
İ am deploying django
Mirco
İ am deploying django
explain the issue, we don't have any magic ball
Xeyyam
Okay
Xeyyam
İt make application error
Xeyyam
And says me to write "heroku logs --tail"
Xeyyam
At the cmd when i enter"heroku logs --tail". İt shows Error: missing reuired flag: -a, --app App app to run command against
Alex
Hi. Could u explain what does it mean class Meta: auto_created = True
I've checked Model.Meta docs for 1,2 ,3 django version - there is no such option.
Alex
Where did you get it from?
Anonymous
Hi I am beginner in Django and Flask library , I wrote my problem in stack overflow but no one answer me , pleas if you can help I’ll appreciate this is the link 🙏🏼 https://stackoverflow.com/questions/64857075/i-cant-connect-the-db-with-postgres-program?noredirect=1#comment114669338_64857075
usEr1024
At the cmd when i enter"heroku logs --tail". İt shows Error: missing reuired flag: -a, --app App app to run command against
You have many apps on your heroku account so you try heroku logs --tail -a <app name>
Aroop
How to create registration form with email or phone number
Xeyyam
You have many apps on your heroku account so you try heroku logs --tail -a <app name>
İt gives error like this: Error: unexpected argument: my_app_name
Anonymous
How to create registration form with email or phone number
Override abstractbaseuser and specify username-field as email
Anonymous
I am interested in a video or post explaining in details custom user creation, different user levels with different permissions.
Custom user creation with email as username https://medium.com/analytics-vidhya/django-custom-authentication-with-email-cc7e3919f11c
Anonymous
I am interested in a video or post explaining in details custom user creation, different user levels with different permissions.
for permissions see django docs , and for user role thing u decide on the basis of ur db design
⚜️
Hi. Are there any ways to disable Google Captcha? I am writing Test for sending of form but it is impossible to send form without Recaptcha
⚜️
So in tests I somehow need to disable Google Recaptcha