Sadra
how i can explaination big error and lot code to you?
How users explain their problems on stackoverflow? Just like them. 🤷‍♂ Otherwise, use other communities.
John
I asked this question👇on stack overflow but don't seem to get the answer I want. Kindly take a look and help me render the results scraped in a Django template specifically inside the shown bootstrap card. Thanks. https://stackoverflow.com/questions/64493654/how-do-i-render-image-title-and-link-to-template-from-views-using-one-for-loop/64493760?noredirect=1#comment114069424_64493760
cj
how i can explaination big error and lot code to you?
why don't you just simply go and read the group rules?
Anonymous
Guys
Anonymous
What to choose for Django, React or Vue?
Carlos
What to choose for Django, React or Vue?
React and Vue are front-end frameworks/libraries of JavaScript
Carlos
Django is a back-end Python framework
Carlos
you can use Django REST framework for your back-end API, and React or Vue for the front-end
Anonymous
Thanks)
Carlos
lmfao what
Ramazan
Hello to everyone; I read last messages about zoom integration to my website in this group but ı didn't reach enough information and ı didn't found enough documentation I use --->> React/Django My aim is zoom integration to my website ( ı want to embed) and if a user is a pro in the website I will show the join button and then user will be join zoom sessions etc. Can you give me any idea or documentation about this issue ?
Ramazan
I have to check that is user pro ? from database and should be serialize with DRF
Ярик
Hey guys, i have a question I have a following slider on the page: <div class="item"> <div class="image" style="background: url('https://picsum.photos/301/200') center center no-repeat;"></div> <div class="image" style="background: url('https://picsum.photos/300/201') center center no-repeat;"></div> <div class="image" style="background: url('https://picsum.photos/300/199') center center no-repeat;"></div> <div class="image" style="background: url('https://picsum.photos/299/200') center center no-repeat;"></div> </div> I'm passing a queryset of pictures from a model and i need them to be rendered by 4 in one slide So, if i have a queryset of let's say 10 pictures, the slider would have such look: .item image1 image2 image3 image4 .item image5 image6 image7 image8 .item image9 image10 How can i make it in a template?
D
Has anyone here used google cloud or aws for web hosting?
D
Is it easy to set up django and nginx on google cloud and how much are u paying for a basic site
Bhaskar
Hey, I need help regarding forms. After submitting the form, the form field goes away, its not there anymore, only the submit button remains, without the field
Bhaskar
How do I make the form field to remain as it is, after submitting
De
How do I make the form field to remain as it is, after submitting
Set the action element of the form to the current page
Bhaskar
Bhaskar
That's confusing🤔
do i need to provide the url of the current page or the view function
De
The url not the view function. Django runs from urls pattern to view to template. Always follows that order.
Bhaskar
i'm getting page not found error
on setting the url, I'm getting this
De
Try setting a name value for your template and use that name in the action element like so {% url "name"%}
#!/bin/sh Inَactive
How do I make the form field to remain as it is, after submitting
shouldn't the submit button send the form data to a view then you process and redirect to another page? What are you trying to achieve?
DJ
how do I do that?
in urls.py: from .views import <smth> app_name = "<App_Name>" urlpatterns=[ path(......., <smth>, name="<name-name>"), ..... ] in template.html: <a href="{% url '<App_Name:name-name>' %}">
Bhaskar
shouldn't the submit button send the form data to a view then you process and redirect to another page? What are you trying to achieve?
I'm calling an API. so after I submit the data the result is shown in the same page on one side and the form field is on one side. But After I submit the data, the result is shown but the form field disappears, only the submit button remains
DJ
i am not using js/jq
can you show us views.py
#!/bin/sh Inَactive
#!/bin/sh Inَactive
The default behavior after you submit a form is it the browser do whatever the server returns let's say you in your view redirect user or return results what do you exactly expect? you expect that the browser keep everything as it's but just send the data to the server?
#!/bin/sh Inَactive
i'm getting page not found error
So you have a problem connecting the form with your url?
#!/bin/sh Inَactive
You expect to get the form field back in your html but you didn't provide the form in your context in case of a POST request and the form is valid context = {'output_data': output_data} return render(request, 'compiler.html', context=context)
#!/bin/sh Inَactive
so it as i believe will just show the submit button
Bhaskar
that's what I needed
#!/bin/sh Inَactive
Bhaskar
Np
🙏🙏🙏
Sarjat
I created a model name profile which has 4 fields name,email,intrest,marks I saved the value of name and email in one function I then saved the value of intrest in another function..but the problem is it is creating a new record rather than getting save in the same record What should it do?
Sarjat
Got it...thanks
Doragonsureiyā
Got it...thanks
You're welcome! 😊
Praver
Is there any free source for udemy python django full stack development course .... Just for learning purpose
Doragonsureiyā
Is there any free source for udemy python django full stack development course .... Just for learning purpose
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Praver
Ok thanks !!
Lipau3n
Hi there, anyone works with mongoengine 0.18+? I'm need to except NotRegistered when calling select_related() on queryset but no_dereference() not work with select_related() after 0.10.0
Arezoo
Hi .can you explain about gettext_lazy
Anurag
I am using PostgreSQL in my django web aap which is hosted on VPS... my site tooks on average 14-15 secs. I want to reduce my loading time how can I bring loading time to 4-5 secs
Rit
hi
Rit
2020-10-26 13:24:19.447686+00:00 how to remove the last part from this time (remove +00:00)
Rit
???
Rit
Any one??
Украинский
Hello! I have a question. I'm developing YouTube - like website (courses). There is a problem. Each course have module. Each module has a video. Video is only (for example) 720p. I want a function like in YouTube. Choosing the quality of video (144/240/360p). How to realize it on website? Or there is the library like imagekit but for videos?
Mirco
Any one??
answering is not mandatory, when someone has time, you will receive an answer
Anurag
Django-debug-toolbar and see what areu you doing with queryes
Sir when I am using PostgreSQL in my local PC it’s gets loaded in 3-4 secs
Anurag
Only it takes time in taking data from database when database is hosted on vps
Gil
Sir when I am using PostgreSQL in my local PC it’s gets loaded in 3-4 secs
maybe connection from django to postgres, or remote server... django-debug-toolbar will help
Anurag
I can’t cache it as I need updated info every time
Gil
Any one??
str format time method of datetime module Seach for www or python channel better 🤪
Khumoyun
Hello, I am using dropzone.js for my Django project form field in templates/form.html Question: how to implement multiple form fields with dropzone.js ?
V
Hi Guys, I am very new to python. Trying to scape the instagram data on the basis of hastag.. for this I am using instaloader package. as that package does not give like and comment users on the basis of hashtag so I am first fetching the posts and after that getting the liked and commented user. now how can I convert that in array of object as per the posts. for eg: [{ post_id: "<Post CAFq9VPnntW>", likedUser: ['userX', 'userZ'], commentedUser: ['userA', 'userB'], }, { post_id: "<Post KLFq956nntW>", likedUser: ['userX', 'userZ'], commentedUser: ['userA', 'userB'], }]
V
This is the code snippet. Please let me know if anybody can help.. I would be very grateful.. http://linkode.org/#TAdMPu9t5i6ihLMB8mmOY