أمجد☄
Searching is good to learn new things 😊
and which one would you use for this task ?, celery or django-q ? and do they really differ ?
Mirco
and which one would you use for this task ?, celery or django-q ? and do they really differ ?
It's up to you, celery is more "famous" I suppose
iNcAeLuM
Hello, i have read the django doc about filtering objects, but i dont know why this is not working...: MyApp.objects.filter(value__ls=3) Any ideas??
iNcAeLuM
i have this error: FieldError: Unsupported lookup 'ls' for DecimalField or join on the field not permitted.
Muflone
value=3
iNcAeLuM
value=3
i want to get all values less than 3
Muflone
value__lt=3
iNcAeLuM
Value__lt=
damn srry bad syntaxys
iNcAeLuM
value__lt=3
thanks, srry bad syntaxys
Muflone
https://docs.djangoproject.com/en/2.2/ref/models/querysets/
iNcAeLuM
https://docs.djangoproject.com/en/2.2/ref/models/querysets/
works fine i just typed ls instead of lt
Muflone
ok
iNcAeLuM
ok
thanks !!
Muflone
yw
Maverick
Something like that
Maverick
Refer Djangorestframework docs
Nitesh
Hello, I need help regarding ticket booking system.
Nitesh
Like for a movie assume we can book 100 tickets
Nitesh
So how the database can be create for these
Maverick
Ticket booking system🤔 Ticket which says what movie, which screen, which seat, timings
Maverick
Movie Model is one
Maverick
What's the best word for time table in case movies?
Krunal
Refer Djangorestframework docs
Your database schema is depends on which database are you using. Means sql database or no sql database
Maverick
Never tried on MongoDB
Rohan
Yeah
Do check it, it'll tell you those small things like it's called schedule and show timings
Rohan
Also will give you idea of features you can think of
Anonymous
I want to list images together with text in my djago web-site. The texts will be obtained from ListView after typing in Django admin interface, but I want the images to be abtained from the image directory inside my app. What do you recommend to proceed?
Anonymous
I think I can use imagefield or filefield. But how to pass both images and text into context as a dictionary?
Anonymous
Hm...
Maverick
And image will be stored in media folder
Krunal
Mine MySQL
Create separate models and use one-to-one relationship
Anonymous
Image path will be passed to database
So, can I automatize the process of selecting images like first 3 images for 3 posts?
Anonymous
From backend, if possible.
Maverick
From backend, if possible.
In one field 3 images? Or 3 fields 3 images?
Maverick
Many to many relation
Maverick
Make a separate model for images
Anonymous
Thank you!
Alexey
Interesting 🤔🤔... https://hakibenita.com/django-rest-framework-slow
Aswath
Do we have to deal with static files necessarily in django to render css in webpages
Dmitrii
Do we have to deal with static files necessarily in django to render css in webpages
The main approach is to place your css files in static folder and use {% static %} template tag.
Aswath
Ohh okay thanks a lot...
Anders (izzno / gooood) 🇳🇴
I was strugling last night when I had to create custom trees from two classes and send to the template. Made multiple dictionary attempts and finally got i to work. Then I woke up this mornig and just did class_one.class_two = class_two ....
Anders (izzno / gooood) 🇳🇴
When you assign a class as a property to another class like class_one.class_two = class_two is it then a subclass or a class "class" property ? 😂
Sai
For the discussion
cj
For the discussion
what discussion? IIRC we weren't having any discussion
Anders (izzno / gooood) 🇳🇴
it will be class instance in class right?
Yes, I guess, or at least a property which points to another class instance. I can't believe I've never seen it before... Genius when you create objects for templates
Anonymous
Hello guys I'm working on a website for my college project and I want to make a Django app for profile accounts etc. But I am getting problems when sign in and login. I made an app for accounts and added forms and models everything. But it's not working the way it should. Can anyone help me in this regard. Thanks
Anders (izzno / gooood) 🇳🇴
I think I just referred to my self as genius, which was not my intention 😂😂😂
Anonymous
thats not how to ask question in programming forum
Well I just join Sorry I don't know
Anonymous
Well I just join Sorry I don't know
Elaborate and give more information on your issue. Welcome to the community btw.
Maverick
How do you guys setup drf_yasg with django2.2?
Maverick
Anyone?
Rohan
By reading it's manual
Maverick
By reading it's manual
I'm reading it
Maverick
But how do you guys setup it to get Yaml strings of request variables
Maverick
Hope you are getting what I'm saying
Maverick
Earlier in previous swagger we get to use Yaml doc strings for providing the body of the request
Maverick
Which we would be able to see on swagger.
Maverick
Can I at least get an example of how to implement it?
Maverick
Got a link of medium
Maverick
Let's see
Murshid
How to separate date , time from timezone.now().