Shreehari
there was a derp from my side in settings.py
Shreehari
thanks for helping me out
Fred
hey people, does anybody have postgres RUM extention implementation in django?
Fred
this is like GIN index, but with some changes, django does not support it yet, but maybe someone did it already? Need help
Naveen
I want user to input only month and year not date..how could i do that ...and I don't think choices will be good choice for this
Naveen
Two separated fields ?
Seperate fields will be little extra...is there any way where i can remove date from datefield like month/year only
Mirco
Seperate fields will be little extra...is there any way where i can remove date from datefield like month/year only
I didn't mean to make two fields, I'm trying to understand what's your goal Try to explain better
Shreehari
I didn't mean to make two fields, I'm trying to understand what's your goal Try to explain better
how to deal with errors like - ModuleNotFoundError: No module named 'forums' while migrating
Shreehari
Check if you have your app into INSTALLED_APPS
yes its there under INSTALLED_APPS
Larry
Anyone with an idea on how to create a text highlighting feature in Django DRF?
Larry
no I mean the backend logic.. more like the one implemented in medium.com where a user can highlight an article and get to comment on it
Le Createur
no I mean the backend logic.. more like the one implemented in medium.com where a user can highlight an article and get to comment on it
class Highlight(models.Model): start = models.IntegerField() end = models.IntegerField() article = models.ForeignKey(Article, models.DO_NOTHING) start is the position of the first character in the selection in the text and end is the position of the last character
Le Createur
Thanks Man I was overthinking this staff. One more question though what happens if a person edits the article that has been highlighted is their a way to capture that.
Maybe you can store also the string that was highlighted. Then if there is a change use regex to search it in the new text and extract the position.
pavi
Whats interesting was peregrine merged its efforts with coderedCMS. So people here what do you think of codered?
R
Whats interesting was peregrine merged its efforts with coderedCMS. So people here what do you think of codered?
I have done some tests and is nice but it still is a young project although their planning looks nice
pavi
I have done some tests and is nice but it still is a young project although their planning looks nice
Its parent project wagtail on the other hand is doing some great work. I see many new names in the projects which use it.
Omair
Hi We are using DRF as back-end for a mobile. So we are securing it with session authentication and token authentication. But when we are serving the media files (images) , they can directly be accessed. How can we secure the media and static files?
Jimmies San
if you need something like "permissions" on this files you need to handle this with django and cognito identity [if you use aws and need interaction between final users and your bucket without aws access]
Jimmies San
it depends. more info about your use case will help us to help you :)
Jimmies San
Use S3 buckets for example and you can set more security stuff
yes but often you need a lambda function too [to inject in the static files some security headers]
Jimmies San
like CSP policy and things like that
Omair
Use S3 buckets for example and you can set more security stuff
I am constrained to use just one server so I was uploading the picture and storing it on the same server where django is running and by securing I mean like all the views can be restricted through permissions, I wanted the urls i.e <ip address>:<port>/media/images/test.jpg to be available to only authenticated users
vicky
Hi
vicky
Any body tell me what is Django rest frame work
Ard
Package to create rest api on django
Le Createur
What is rest api bro
if you don't know it just ignore.
Ard
What is rest api bro
Like protocol to retrieve or input data, mostly using post,get,put dll. You can learn here https://www.django-rest-framework.org/#quickstart
pavi
Any body tell me what is Django rest frame work
By exposing the REST API you can easily allow thirdparty developers to create apps. For example android app can make API calls to the backend via REST.
pavi
I have a newbie question, Does anyone know why the Django REST framework is bundled as an additional module instead of by default?
Anonymous
Source for advance Django?
Le Createur
Not every project needs those functionalities
And it doesn't originate from one person
Anonymous
hi everyone! help please. how protect detail view to see only self created objects? here my detail_view snippet: https://dpaste.de/SCsn
🏳️‍🌈Robby [ Private Message = Spam]
Anonymous
keep track of the user who created it and filter out those who are not
thank you very much. i fixed my problem by following queryset: bid = get_object_or_404(Bids, author=request.user, pk=bid_id)
vicky
Which is better cbv or fbv
🏳️‍🌈Robby [ Private Message = Spam]
vicky
class based views and function based views
Muslim
Which is better cbv or fbv
CBV is a little bit slower, but you’ll be able to write declarative code
vicky
Ok
vicky
In industry what they are using
vicky
CBV or FBV
Muslim
CBV or FBV
CBV is common
vicky
Ok
🏳️‍🌈Robby [ Private Message = Spam]
I mean you could also do a quick Google search as well :)
🏳️‍🌈Robby [ Private Message = Spam]
https://www.google.com/search?q=cbv+vs+fbv+django
🏳️‍🌈Robby [ Private Message = Spam]
vicky ☝️
🏳️‍🌈Robby [ Private Message = Spam]
Done
I apologize if that came off bad
🏳️‍🌈Robby [ Private Message = Spam]
a lot of people don't do that
Mohit
I want to implement Facebook login using rest api where user can signup/login and update business info of a Facebook page that user owns on Facebook.. How to get started?
🏳️‍🌈Robby [ Private Message = Spam]
I want to implement Facebook login using rest api where user can signup/login and update business info of a Facebook page that user owns on Facebook.. How to get started?
google.com/search?q=django+facebook You didn't even try. Google first THEN ask. Literally entirely answered in the above search.
Mohit
google.com/search?q=django+facebook You didn't even try. Google first THEN ask. Literally entirely answered in the above search.
Thanks anyway. I have done all auth login with Facebook.. So just got confused with that.. I want to implement this using angular as frontend
Anonymous
Hi friends, How to filter by DateRange with django-filters?
Anonymous
any example?