Anonymous
How django project deployed in goddady linux server
Rohan
The Summer
Guys are there any way to kill a task that was started for the user and then user deleted. In django-background-tasks
Jaydeep
Html page <input type="text" name="a" value="{{abc}}" disabled> views.py x=request.POST['a'] I am trying to access html textbox value name=a and which has a dynamic value It give MultiValueDictKey error So i change views.py code to x=request.POST.get('a') And i tried to print x it prints None instead of the value in textbox Please help
Hassan
Hello i need some help
Hassan
in
Hassan
deploy machine learning model to Django
Hassan
movie recommendation system Model of ML
Hassan
i want to deploy it to django
Hassan
but cannot find any useful video or blogs
Alex
any idea about get_list_or_404 as well?
Have you tried to google it?
Hassan
+1
yes bro
Batman
Have you tried to google it?
yep already did, found nothing though
Alex
yep already did, found nothing though
Okay, you can use that drf's get_object_or_404 as an example on how to write your own implementation. You simply need to use django's get_list and return drf's Http404
Himanshu
i am doing payu payment integration for testing but i am not able to get a successful payment, i don't see anywhere the testing phone no. for testing purposes
Himanshu
please help me..
Himanshu
visa card
Himanshu
or master card.
Himanshu
they send an otp for payment confirmation but my no. is not getting otp. its there any other testing no. like visa card or master card
Himanshu
but for payu i am not getting any fake no.
#
Checkout on youtube PayPal integration there is there
Himanshu
paypal vs razorpay?
Himanshu
which one is best
#
which one is best
I don't know the others
Himanshu
ok is paypal easy to integrate?
Himanshu
ohk.. thnks dear . i will get back to u.. soon...👍👍👍
Himanshu
can u suggest me some links ?
#
I can, but not right now
Himanshu
i can wait bro
#
Okay
Himanshu
thanks in advance bro
Anonymous
{% extends '_base.html' %} {% block title %}Log In{% endblock title %} {% block content %} <h1>Log In</h1> <form method = "post"></form> {% csrf_token %} {{ form.as_p }} <button type = 'submit'>Log In</button> </form> {% endblock content %} hi guy's when i click on log in button it doesnt do any thing what's the wrong?
#
Where is ur url ?
Himanshu
like <form action="/" method="post">
Himanshu
and remove the form closing tag after the form opening tag
#
U have 2 </form> tags
#
and remove the form closing tag after the form opening tag
As long as the code here u need to edit for any appropriate help
Anonymous
like <form action="/" method="post">
in tutorial when click on button, borwser going to this url : http://127.0.0.1:8000/accounts/profile/ and tutorial's code is exactly like above code
Himanshu
are you using django auth_views?
Himanshu
make a registration folder inside templates and make a login.html there.
Anonymous
U have 2 </form> tags
yes😣 fixed...😁
Anonymous
really i have silly wrong
Himanshu
Victor
Good evening everyone I am Ejiofor Chukwudi Victor. I'm a beginner in Django happy to be here
Doragonsureiyā
Good evening everyone I am Ejiofor Chukwudi Victor. I'm a beginner in Django happy to be 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! With 52k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
File "/home/hasan/Desktop/mysite/users/__init__.py", line 4, in <module> from .forms import CustomUserCreationForm, CustomUserChangeForm ModuleNotFoundError: No module named 'users.forms' line 4 in init file : from .forms import CustomUserCreationForm, CustomUserChangeForm why i got it ?
Himanshu
i suggest u to go with function based view.
Himanshu
if you are new to django
Kril Stolberg 🏴‍☠️
Hi everyone, have you got any examples of URL Shortener written with Django?
Mirco
Hi everyone, have you got any examples of URL Shortener written with Django?
Try to think a bit by yourself and write code, then if u are stuck write here
Victor
Thanks
Tejesh
I've a custom User model in an app named "accounts" which has a role field(choice field basically) and is working fine. I've 2 other apps as Customer and Client where I'm using one-to-one field to User with limit_choices_to={'role':'C'} My issue is I'm getting an error when I'm trying to makemigrations saying django cannot serialize the field Client(one-to-one field) .
Himanshu
what is it ?
just google it... you will know
Jose Luis
i want to run some celetry tasks to update some information after ppl click in some links. I was thinking about use POST in the template and request.method == 'POST' conditional in the view. is that OK? i need to create diferents forms to run diferents tasks? or exists any better way/
Jose Luis
?
Jose Luis
i want to run diferents actions/tasks like update info, parse some values, scrape some urls and stuff like that
Yash
I have a form with a button to add extra input box, how do I get the values of any number of input boxes in my view once form is submitted? The number of input boxes added can vary for different user
Anonymous
hi guys on my projext weather api , ı send to index html and ı see there if ım going to diffrent pages my datas going
Anonymous
why ? what ı can do ?
Alex
why ? what ı can do ?
Use google translate, at first. I don't understand your english
Anonymous
mate my problem ı try todo weather api on my django prject