Mirco
I don't have a magic ball 😊
Mik
Hi guys i'm learning Django, what python version should i choose? 3.6, 3.7 or 3.8? Are they all compatible?
Mik
Thanks
Aswath
Nope
Aswath
Did you understand why?
I didnt know why
Anonymous
Is it possible to use react in Django? If yes how?
Ghorz
i`m newbie a bit , so it`s a still black magic , but not fully
As a newbie, don't rush into OTP, get grounded in django before pushing further
Pedro
all are... But i had trouble setting up a virtual environment with 3.7
its wear... in this momento i use python 3.7.... what kind of problem do you have...?
Anonymous
Hi there , can i built user feed like facebook and instagram in django
Pedro
how did you installed django ... do you use pip tools for python in your version 2.7?
Anonymous
Hi , i developing a social platform and i m having trouble in making user feed and notifications , etc . Is ther any application or Api which is free to use with django?
ashish
Hi , i developing a social platform and i m having trouble in making user feed and notifications , etc . Is ther any application or Api which is free to use with django?
For notifications you can use Django notification.. For the feed part it is easy to make yourself.. I made an entire social network from scratch which is now running live
ashish
Which part you want help exactly
Anonymous
User feed like instagram
Anonymous
Which part you want help exactly
User feed like instagram . I tried my self but getting messed up . Suggest me where to start , what to do .
Mikhail
I want 2 undetstand how i have to do it We create the form and them let user input his phone number in this form <form method="post"> {%csrf_token%} <input type="text" name="to"> </form> Inside python file we intercept data by request.POST.get('to') But i am not sure if will it work Here is another variant <form action = "{% url url-name %} - Here we exactly will send our data to server , but how in this case file will recognize what he need to intercept ?
Mirco
Even without the action, because the base views have a post() method to handle this kind of request
Mikhail
And how to persistant otp between two views
Mirco
And how to persistant otp between two views
Session or save into database
🧩
Hello everyone. I have been studying django not so long and have encountered such a problem. I have 4 categories and 4 html pages. I want to write a class PageViews(ListView) which will display on each page articles of a separate category (or if it possible use only one html template for each category). Who could help me?
🧩
but i have highlighted menu button on each pages
Pedro
pip install django
I think that's installed django for python 2.7
cj
I think that's installed django for python 2.7
depends on your OS and if you're using a virtual environment or not
Dextroleav
Hello everyone
Dextroleav
I m developing a Ecommerce Book selling web app using django. I m facing a problem, I tried to make the payment method same as Amazon (only for demo) so when i buy product , I enter the name , and details of user and also card details for payments and vice versa, lets say two users buy different product but when i go and check my orders page , it shows my product with my payment details and and also his product with my payment details and his name and payment details with my product and hia product. I m not able to solve this
Anonymous
hi i have this in html a href="#home-section " i have to use django template for this but i don't know how
Денис
hi i have this in html a href="#home-section " i have to use django template for this but i don't know how
Django templates can contain hardcoded html, nothing wrong with it. What exactly do you want your template to do with this url?
Anonymous
Django templates can contain hardcoded html, nothing wrong with it. What exactly do you want your template to do with this url?
#home-section is in the index.html and i have a menu that one of them is linked to this class i want to when i click on that link,go down and stop on that section it work correctly when it's just html css js
Денис
#home-section is in the index.html and i have a menu that one of them is linked to this class i want to when i click on that link,go down and stop on that section it work correctly when it's just html css js
But this is a simple anchor link. You must provide something like <a name=“home-section”></a> so that your browser would scroll to it when you click that #home-section link
Anonymous
<li class="nav-item "><a href="#home-section " class="nav-link "><span>Home</span></a></li>
Dextroleav
Ezio provide a name also
Anonymous
Ezio provide a name also
you mean <section id="home-section " class="hero " name='home-section'> ????
Денис
No it doesn’t work
Read this https://www.rapidtables.com/web/html/link/html-anchor-link.html#same-page And please learn html before you dig into django
Денис
It’s a prerequisite as well as Python knowledge
Dextroleav
@Ezio yes, u need to refer i.e. u need to go to that section, so this can help
Денис
As long as you provide no info I can only show you this https://stackoverflow.com/questions/5508888/matching-query-does-not-exist-error-in-django
The Summer
Guys can you provide me one simple example of slug url
The Summer
I am stuck on one problem
Maksim
The Summer
I turn of laptop😁
The Summer
Off*
Денис
The Summer
Guys...
The Summer
FieldError at /catalog/author/Strphen cannot resolve keyword 'slug' into field.Choises are:book, ......., last_namr
The Summer
Whats you issue
This is error
The Summer
I can DM code if u want
Maksim
Show your view, url, model.
The Summer
I just DM u
Денис
I can DM code if u want
share your code on pastebin, you'll find more people to help you
Kumar
Guys, I want to keep open the stream of my rest api to send the real time data to my template.. But I'm not getting how to?
Kumar
Need help over this.. Currently it's working on click event...
Kumar
And I want the data without refreshing my page..
Kumar
If anyone can help me over this...
Kumar
Any docs or vdo that I can read or see to implement...
Ihor 🐈
Guys, is serializer.py with UserModel a good place to hash password? I mean to override create and extend it with validated_data['password'] = make_password(validated_data.get('password'))
Денис
Sir I dm u too
No. If you ignore when we ask you to share your code on pastebin or elsewhere, we ignore your DM
Денис
pure logic
Денис
If anyone can help me over this...
JavaScript will do. Ajax, any suitable framework will do. Your client browser must keep the connection open, not your backend itself.
The Summer
Show your view, url, model.
https://pastebin.com/0Y4PA1eS
Денис
https://pastebin.com/0Y4PA1eS
You have no slug field in your model, that's all. It must be present there as a SlugField.
The Summer
Can u write syntax here?
The Summer
If I wanna make first_name as a slug
Maksim
If I wanna make first_name as a slug
U can use user.username in view