Daniil
This field can save just one id. How can I save multi id's?
Alex
This field can save just one id. How can I save multi id's?
invert the relation - move it in the PropsColor model. Or use m2m field.
Daniil
@l3j@ndr0
Hello what's the timestamps with time zone field in postgres equivalent in django models
Alex
Hello what's the timestamps with time zone field in postgres equivalent in django models
https://docs.djangoproject.com/en/3.1/topics/i18n/timezones/#postgresql
Alex
So it seems that DateTimeField will be sufficient
@l3j@ndr0
Maybe but in settings you need to enable USE_TZ
Alex
Maybe but in settings you need to enable USE_TZ
As a consequence, if you’re using PostgreSQL, you can switch between USE_TZ = False and USE_TZ = True freely. The database connection’s time zone will be set to TIME_ZONE or UTC respectively, so that Django obtains correct datetimes in all cases. You don’t need to perform any data conversions.
ADI
Can anyone suggest how to extract data from a form and save it in json
Alex
Can anyone suggest how to extract data from a form and save it in json
https://docs.djangoproject.com/en/3.1/ref/forms/api/
Alex
Aditya do not pm me. And I'm not your bro
ADI
This is not what i want
ADI
I want you fill a cms 1500 form and then extract data from it and save it but the doubt is that form is image how to fill it first
@l3j@ndr0
It's in django rest
Engelberto
Hi friends how can I show Bootstrap 4 calendar in Django I am occupying Crispy or other alternative tell me
Alex
I want you fill a cms 1500 form and then extract data from it and save it but the doubt is that form is image how to fill it first
> cms 1500 Huh? Let's try another way - are you talking about your site/service or someone's?
@l3j@ndr0
Provide the generated migration and the full traceback
Could I write you to the pv to send the image??
Alex
Could I write you to the pv to send the image??
No. Use pastebin or similar and post here the link(s).
Alex
That my training project
Then I don't understand why the link I gave doesn't cover you question.
ADI
Then I don't understand why the link I gave doesn't cover you question.
There is no procedure to convert the image into text and then extract the data from it . That lin is directly telling about extraction
Alex
There is no procedure to convert the image into text and then extract the data from it . That lin is directly telling about extraction
> There is no procedure to convert the image into text Technicly you can convert any image or even file in base64. And it is actually what browsers and libs like requests do undert the hood to transfer files. Regarding django - here is how to access files and then give them back by forms
Surya
Google it🤣🤣
VarunTheLord
If not ,YouTube!
yeus
I would like to put up my exact problem . please please help. I have a volunteer portal where a volunteer logs in and he is shown many posts with links of sharing them on social media. He then shares it and uploads his screenshot on website and then admin verifies that screenshot and then after verification he gets 50 points. And the posts also needs to be dynamic which admin will upload the content and link although i have created a model for it. Please help me.. I'm not able to figure out model design..
yeus
After verification he give get 50 points ??
Yes there is a points field in user model where after successful verification volunteer gets 50 points
h
Hi, I want to check the api of an open source project I'm contributing to, so i used postman for that, when I'm checking for any request like GET, POST etc I'm getting an error "Authentication credentials were not provided" even though i entered the token mentioned in there admin page to authorization part. What should i do?
M
Hi friends how can I show Bootstrap 4 calendar in Django I am occupying Crispy or other alternative tell me
i am using jquery.datetimepicker ( XDSoft ) with crispy and it works well
Engelberto
Thanks
yeus
instead you should come what you have tried to do this .. they is a pretty way how stack over flow say "learn to ask question"
I've created a volunteer model with a django user field in it for a login and also a points field and a completed login system. And a post model which i can successfully show on it's dashboard. I'm now having trouble in how to design the model such that each volunteer have a separate section in database where i can store the posts and if they shared it or not ? And if they have shared, admin can verify it and after verification points can be allocated automatically
yeus
Please if anyone can help? It's kinda urgent
M
i am not pro may be someone else can guide on dm
M
😥
yeus
Yes
Alex
Sounds like you can add a table that will perform m2m connection. Call it "Sharings" class Sharings(models.Model): volunteer = models.ForeignKey(Volunteer) post = models.ForeignKey(Post)
Alex
Okay thanks
We also can add here the field verified and make it BooleanField for example.
Alex
So in the admin interface an admin can verify each sharing.
Lucid
Anyone knows about django dataframe
yeus
We also can add here the field verified and make it BooleanField for example.
And if admin toggles boolean, will that volunteer be automatically updated with 50 points? With admin models save??
Lucid
I would I call it behind my button SUM
Alex
And if admin toggles boolean, will that volunteer be automatically updated with 50 points? With admin models save??
It is what I was asking you in my very first answer. You should write in the ModelAdmin.object_save. Read by that link how to do it propperly.
Alex
So for SharingsModelAdmin it will be something like sharing.volunteer.points = F("points") + 50
Anonymous
How we create customised admin panel with the help of bootstrap and connect to the front end site
Anggara
Hii, my name is anggara from indonesia, I'm new in django.
Subhransu
How to add my django project to heroku
Anggara
I have some question, I'm using django-adminlte3 https://github.com/d-demirci/django-adminlte3 I want to edit admin template Is anyone have tutorial how to edit adminlte3 template in django?
Vadym
Hi all, I'm Vadym from Ukraine. I have been working as Software engineer for about 2 years. Mostly I was work with Flask but couple of months ago I was able to explain my team that Django fits better to our needs than Flask and now we have a couple of new projects where we use Django and we successfully migrated one Flask project to Django. Happy to join Django community.
Vadym
How to add my django project to heroku
Hi Subhransu. There are a lot of examples in google. I was able to deploy one of my pet project on Heroku using on of manuals from the first page of Google search page. Also there are many manuals on https://dev.to
ken
hi. django model question: is auto_now/auto_now_add going to be obsolete anytime soon? thought I read that somewhere in SO answers
Lucid
How can I append a new column in django dataframe in database
Saurav Sharma
Can anyone help me with customised login and logout page in django
Doragonsureiyā
Can anyone help me with customised login and logout page in django
So, why don't you do it yourself first? When you have an issue with the Python code you wrote (read rule 5️⃣ to show your code), come back here and people will help you. 😉
mohammad
Hi, I wanted to know if Django is faster or Laravel?
Luxxy
Hey anyone can explain me the best book for learning Java to beginner
Luxxy
Pls reply me anybody
appu
plzz suggest me an simple django project
Naveen
Sumit
Hi, I need help in django celery , I am using redis with it. I am getting connection refused error , I.e. cannot connect to amqp://guest:**@127.0.0.1:5672//
Sumit
Can anyone help me why it is coming?
Sumit
Sumit
When I run redis-cli it is working, but when I run "celery -A proj worker -B it throws the error
Sumit
When I search about this error on Google I get it's related to rabbitmq, but I am not running it or using it how can this error be related to it