Alex
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
Anonymous
Guys
Anonymous
What to choose for Django, React or Vue?
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
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
Akhil
D
Has anyone here used google cloud or aws for web hosting?
Ikki
D
Is it easy to set up django and nginx on google cloud and how much are u paying for a basic site
aleks-th
Anonymous
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
Bhaskar
De
De
The url not the view function.
Django runs from urls pattern to view to template. Always follows that order.
De
Try setting a name value for your template and use that name in the action element like so
{% url "name"%}
Bhaskar
#!/bin/sh Inَactive
Bhaskar
De
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>' %}">
#!/bin/sh Inَactive
Bhaskar
#!/bin/sh Inَactive
Bhaskar
Bhaskar
#!/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?
Bhaskar
#!/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
#!/bin/sh Inَactive
Bhaskar
Bhaskar
that's what I needed
#!/bin/sh Inَactive
Bhaskar
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?
Mirco
Sarjat
Got it...thanks
Praver
Is there any free source for udemy python django full stack development course .... Just for learning purpose
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
Gil
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
Mirco
Any one??
answering is not mandatory, when someone has time, you will receive an answer
Anurag
Only it takes time in taking data from database when database is hosted on vps
Anurag
I can’t cache it as I need updated info every time
Anurag
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