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
Rohan
The Summer
Batman
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
Bheeshma
Hassan
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
Batman
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
#
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
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
Himanshu
like <form action="/" method="post">
Himanshu
and remove the form closing tag after the form opening tag
#
U have 2 </form> tags
Himanshu
Bjorn
Himanshu
are you using django auth_views?
Himanshu
make a registration folder inside templates and make a login.html there.
Anonymous
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
Alex
Bheeshma
Himanshu
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?
Victor
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) .
Anonymous
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 ?
Anonymous
mate my problem ı try todo weather api on my django prject