inchidi
try disable javascript on your browser and open any we you usually open, you will see how web without javascript looks&feels like
Rsk
I developed custom api using formdata instead of serializer in drf since it includes file transfer.... Now I am facing issue with integrating that with drf-yasg...swagger interface ....how i can show myy costom api here ??
Anonymous
Hello, can I shorten this code: L = [ ] for i in queryset: L.append(i.modelfunction())
Anonymous
Like something: L = [i in queryset.values() and something]
Anonymous
Hi, I wanted a guide I was looking for an optimal solution to record visits to one of the site's pages One way that came to my mind was to add a unit to the database every time API called, but that's not a good way, and because Google's bots call API's, the result is worthless.
Sweetie
I have a multichoice field. Is it possible to use icons in the choice text? I have some similar choices and want to use icons for easier identification.
ms tk
Requirement : video uploading and processing ( video on demand )
Doragonsureiyā
Requirement : video uploading and processing ( video on demand )
Looks like you need a offtopic group, please continue this conversation at @pythonofftopic
Mr
Without java script its not really impossible ... but for most of the frontend animations and other things like channels you need to use js ..... basic idea is enough .... you can develop a site.
Sweetie
Is storing an database object in variable keeping connection open? I use django ORM standalone. Trying to figure out if it's better to call User.objects.get(pk=id) 100 times to get the object again everytime I need it. Or do user = User.objects.get(pk=id) and use the user variable 100 times. My code will run for a long period kind of a listener and will need to access user object multiple times. Does saving an object as variable keeps db connection open?
Batman
Hello, what would be the recommended way of calculating and saving multiple fields in an instance when it is created?
Yash
Anyone who knows react?
Sweetie
I have following models: class User(): .... class Book(): title = CharField() .... class Collection(): user = ForeignKey(User) books = ManyToManyField(Book) User can have many different collections. I want to query and get list of ALL books titles in users collections in most optimised manner.
Mirco
anyway for FKs use select_related() and prefetch_related with M2M
Sweetie
anyway for FKs use select_related() and prefetch_related with M2M
I did read both above but what query to use. I know about prefetch and select_related to query objects in single query as django uses lazy loading for foreign keys. For above requirement I am not sure how to query without a for loop as I need the book titles returned and not just books per collection.
Sweetie
I am trying to figure out if there is a better way than using for loop in above case.
Sweetie
So basically fake it... Recommend peoples skills without knowing anything about them
ps
Anyone uses cron?? For periodic emails
Gil
Use Django Q or Celery
recently i have changed to django-q. basically for upgrades/mantinance. i vote for django-q
Gil
Is it ok for custom days ?
https://django-q.readthedocs.io/en/latest/schedules.html
Doragonsureiyā
Thanks
You're welcome! 😊
aashu
Can anyone tell how to integrate ML model to django?
Kratøs
https://pastebin.com/Tcvx1dZp
Kratøs
https://pastebin.com/Tcvx1dZp
someone help me with this... i am new to django
Cesar
someone help me with this... i am new to django
Make sure 1. django.contrib.staticfiles is in your installed apps
Anonymous
Where i can look for this?
Project name/Settings.py
Kratøs
Project name/Settings.py
Yeah it's there
Kratøs
I am working on pycharm
Lord Voldemort
Where i can look for this?
Had you installed any external plugin ?
Kratøs
No
Anonymous
Yeah it's there
It is not complete error I think u miss the {% static .... %} for some link
Kratøs
https://pastebin.com/Tcvx1dZp
On pycharm when i bring cursor there it says unexpected token and when it is run on the server these errors says 404 not found error
Kratøs
If i could show screenshot it would be helpful to clear it
Kratøs
Just use image sharing tool
https://pasteboard.co/J9hvQlm.png
ecDesign
Hello everybody!!.. I have a problem with python-qr-code, all ok with installation but If I add qr_code to my installed apps always get: ImportError raised when trying to load 'qr_code.templatetags.qr_code': cannot import name 'ERROR_CORRECT_L' Django version 2.2 Python version 3.6.4
Cesar
these are errors
Did you collect statics?
Anonymous
Hello. What is the best hosting service that allow mysql database
Anonymous
How to customize django admin pannel with bootstraps please tell me
Gil
How to customize django admin pannel with bootstraps please tell me
For example, overwrriting default templates https://docs.djangoproject.com/en/3.0/howto/overriding-templates/
A
Hey guys! can someone help me with this query .https://stackoverflow.com/questions/61921374/query-to-get-data-in-an-own-format-in-django
Anonymous
Whatever you prefer
Does Heroku accept Django usage
Anonymous
Thank you
Rsk
Method to formatt date
Kratøs
https://pasteboard.co/J9hvQlm.png
Anyone help me with that
Anonymous
I am getting application error while deploying website on heroku ..how to solve this
ps
Anyone help me with that
{% static ' ' %} are u using this?
Su
Anyone help me with that
Are you using this {%loadstatic%}?
Aniket
Anyone suggest for free best beginner django tutorial...
saran
Hii guys, anyone implemented universal link?? How to do that in app. Is based on rest api..???
Doragonsureiyā
Anyone suggest for free best beginner django tutorial...
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rajesh
Anyone suggest for free best beginner django tutorial...
I also need it if you found please share with me
Rajesh
☝️
Suggest rather then something