Rohan
Not really well tested in Django, version 2.1 broke everything, the only solution was to drop the database or fix its schema by hand
How about using an old version of django to dump to json and then migration with new version?
Rohan
Or that's what you're calling fixing schema with hand?
Muflone
Or that's what you're calling fixing schema with hand?
You had to manually fix the table references as they were pointing to not existing tables.
Nikhil
I want to send some photos of problems
Nikhil
Who can I
Nikhil
I can't explain in texts
Nikhil
I am getting thumbnails like shown in 2g of a photo. Why is that... In my template my src is {% static 'i.product_image'%}
Nikhil
My photos are present in media folder inside static directory of my shop app
Nikhil
And I only made static root and static URL in settings + have given request,index.html,a dictionary in views
Nikhil
Any specific answer
Nikhil
490+ online
Nikhil
Help please
Gourav
i.productimage.url
product_image**
Gourav
It'll work
Gourav
@nigurjar Did it work ❓❓
Nikhil
No
Nikhil
I have given path for static directory and images are present in media directory inside it
Shreehari
I have created a choicefield. how can i get the value of it when selected ?
Shreehari
Create forms
can you please provide a reference ?
Gourav
U should watch a video first to understand how Sjango works
Gourav
Refer to Tech Gram Academy on utube
Shreehari
okay thank you
Gourav
Np
Anonymous
How do i filter timestamp__hour in 12 hour format?
Bunty chhatri wala..
PV
No
Have you loaded static on template
Nikhil
?? Issue
Solving....let me open my PC and do some changes then I will say if it is resolved or not
Nikhil
Discussed and done everything as said by @pvanfas
Nikhil
https://github.com/nikhilgurjar/djangoproject
Nikhil
This is a link to github
Nikhil
Make images seen on page
Leonardo
guys, im having trouble with memory leak when i run my tests on travis CI
Leonardo
do you know how to solve it?
Leonardo
im using docker
Nikhil
Resolved
Gourav
Database in frontend??
Gourav
Plzz ask in detail
Gourav
Yup
Gourav
DRF
Gourav
Fast Api us quite effective in such conditions
Gourav
Its framework name dude
Gourav
No
Diego
Hello guys, can you help in validate password from a neste serializer? i can't use set_password, it gives a key error
Gourav
Fast api is used to make rest api
Shreehari
Create forms
can you code reference if possible ?
Gourav
Wait plz
Shreehari
Wait plz
if its okay, shall i explain exactly what i want to do ?
Gourav
https://docs.djangoproject.com/en/3.0/topics/forms/
Gourav
Official doc.
Shreehari
godmode
hi, somebody uses TinyMCE-4-lite as editor ?
Gourav
Obviously
Gourav
U have excluded all there options😂😂
Gourav
Try other framework
Gourav
Gourav
React or vue etc.. But i'm not sure about their speed as i didn't use them much
Gourav
But they render differently
Mirco
The fetching stuff is basically the same
Gourav
Uses DOM manipulation
Mirco
Whatever u want but that doesn't change the speed of pending request while fetching
Gourav
But much effective than regular js
Gourav
Try both
Gourav
How can i predict??😂😂😂😂
Mirco
Instead of thinking about frontend libraries etc. , spend more time on backend staff For example the objects.all() could be used with a prefetch or select_related and speed up query to db
Gourav
What's the problem with pagination exactly
godmode
Nobody uses tinymce4 for django?
Ricardo
a good idea is first identify from where the slow is coming, database query, html rendering, js framework
Ricardo
without knowing where is the bottleneck you will not manage to find a good solution other them by blind luck
Ricardo
fyi, i just rendered 4000 objects and it took 7seconds, so you probably need to check your database queries, maybe prefetch_related as stated above can help you
godmode
Hey guys, when i ask for a object in a view if that object got an ForeignKey but the value of this Foreign Key haven't been set yet... if i want the objects which doesn't got the ForeignKey set should i ask for Model.Objects.get(foreign_field=None)?
godmode
Better example, i got a list of questions and a model for question an another for answers, if i want a list of questions without answer should i ask for all these questions which got the field answer (It's a Foreign Key) with the value None?
godmode
For example i know in Java is Null... in python?