Anonymous
serializers.py line 4: ModelSerializer
Obviously I can see line 4 but what happened to it and what's the solution
Anonymous
typo
Oh, Seen. Thank you.
Anonymous
help i need to give access to users to see the pages
Anonymous
how to do this?
Anonymous
for example admin should see all pages
Anonymous
customer should see shop.html
Anonymous
manager should see for example another page
Anonymous
like that
artur
First what comes to my mind is to check if the request.user is admin in views.py
Anonymous
i can do this but i have a lot of users i can check superuser and staff only if i do like you said
Mayur
Could you tell me How can we save data in database via djongo in ArrayField
artur
Could you tell me How can we save data in database via djongo in ArrayField
https://django-postgres-extensions.readthedocs.io/en/latest/arrays.html
Yavno
Hello, is the request parameter required in django's render_to_string?
Patience
You need to know celery.
It run periodic tasks in Django, but it didn't work for me. I want to run update every hour. If you are interested you can came and help each other.
Hello
How can I implement real time database update in django Right now I am working on a web application which displays live stock market data from api I want to fetch data and store in db every 1 minute so the data should be refreshed in real time manner
You should look into a time series db like timescale ( pg plugin is available) And should schedule a celery beat or cron job to hit the external api and store it in your db
Ankit
😅😅😅in that I can only give you advice.
Oh really, have you ever given any advice to anyone..?😴
Jai
I want to update the frontend everytime the db has been updated. How can I do that?
Anonymous
to set or add category manytomanyfield
Anonymous
list of category
Jai
Redirect it
Didn't get it
.
Thanks)
.
Btw I can create these two fields in my model. Then in views, i can create some permissions,.with if statement. Will be this work? Or it will be bad practice ?
AK
Job for gunicorn.socket failed. See "systemctl status gunicorn.socket" and "journalctl -xe" for details.
AK
sudo systemctl start gunicorn.socket
saturn
Hello I'm a beginner at django, how can I integrate cash on delivery in django or with what library
Hello
I already did it but celery is not updating the db
you can install flower and verify if your async taska are failing or not
Anonymous
I have created a model DEPARTMENT with name and status But after migration it is created without id but in migration file it has id as primary key but not in database(MongoDB)
Jai
If you are using react check life cycle methods
Okay, I'll definitely check it out. But is there a way to achieve this without a frontend framework?
Anonymous
Is there a good place to hire economical django developer?
Anonymous
Please PM me if someone is interested
Mirgani
hi Guys! I'm download Vs code new version. But does not workin for Django. Why is this happening
Mirgani
what do you advise to do
ST
Sup everyone. In my database i store links to different websites. 1 record = 1 link. In every record i want to have an additional field which would store another link to my domain that would redirect to other link in the record. So if i have a link - 'https://www.google.com/' I want to store additional link like 'https://www.mydomain.com/mjK4/wpjr4-2kkd3d-324kr' that would redirect to that link. How can i implement that?
Maz
Budget important than security? Bye✋
Wtf are you talking about. Did you hear security being mentioned anywhere in the chat bro? And anyway, are you trying to say Azure is "more secure" compared to GCP, AWS, DO, etc? Kindly dont insert yourself in a convo if you dont know what was being discussed man. Cheers.
Zey
In django we use change password form for changing password but can we create our own form bcz I am not using Usercreationform for registration?
Zey
How?
Sadriddin 🟢
Hello everyone In django how I can run background tasks at specific time?
Mirco
How?
Check on docs how to specify your custom password form There is a topic if I well remember
Mirco
Hello everyone In django how I can run background tasks at specific time?
Celery, Django Q, a simple Cron, RabbitMQ Make your choice
DD
Can u tell me which api u r using?
Not exactly an api but it's library nsepy which fetches historical data of stock
JR07
Django application to resize image 1.page to upload a file, specify new dimension 2.store the record in database 3.create s result image based on the dimension and store it 4. Show the result page with newly resized image.. Can anybody help.. I just want to know how to resize the image
Prakash
Can u give link
@supermario2456
âshîsh
Is Django the initial road to ML ?
Jamil
no...
😇ANGELO™️🎧
Is Django the initial road to ML ?
Python rather is. However Django teaches you to use python as a backend technology
Jamil
django is webdev, go and learn tensorflow or something i guess
âshîsh
Python rather is. However Django teaches you to use python as a backend technology
Yea.. I worked on python and Django both. What's next ?
âshîsh
😇ANGELO™️🎧
django is webdev, go and learn tensorflow or something i guess
It's a backend tech. Not necessarily a webdev 🌚
😇ANGELO™️🎧
So it's the initial step to ML ?
We use Tensor flow for ML. It's the most popular tool for it. But since you know python you can ease your way out
Владислав
Good afternoon everyone. Please tell me how to filter the ListView if the model has an attached attachment, and which does not. I tried to do it via attachment_isnull = True / False, but the same posts come out. https://pastebin.com/GzeTUAtk
DD
@supermario2456
https://pypi.org/project/nsepy/
Abhay
Hello everyone, I was trying to integrate django and Vue with CDN, everything is working good, but just have one issue, Vue templates! I need to write template in the same JS file and a s a string which makes the code look bad, do someone have any idea how can I allow path in that template file?
Mayur
Hello Everyone,!! how to create new File every time I uplode file in django ..when I doing this its updating
Anonymous
Hello. I have something like web store. There are 500 items in my database. When user search something, i use for loop for each item in my database and look at names(if item's name similar to query's name, i'll display item) I use flask on my own nootebok to test site, it's macbook air 2020. Before i add more items(to my database), there had been 3 items in my database. Earlier search process was about 15 seconds. But now search process is about 20 mins. If i host my site(i buy powerful hosting), will search process be fast? What do i have to do? Please, guys, help me.
Leo
How to Save many to many extrafieds ?