Add an attribute to instance?
On Fri, 23 Sep 2022, 19:21 Sencer Hamarat, wrote:
> Hi,
>
> I need to pass an arbitrary argument from the serializer.save() method to
> model.save() method?
>
> Such as:
>
> serialized_data = AModelSerializer(instance, data=adata_dict)
> if serialized_data.is_valid(
Make an other constraints pk and your issue is solved django by default
make a pk as id
On Sat, 24 Sept 2022, 10:46 Salima Begum,
wrote:
> Hi all,
>
> When I am posting data in the server here we have an issue where the
> primary key already exists. For example, today I posted some data . I have
Hi all,
When I am posting data in the server here we have an issue where the
primary key already exists. For example, today I posted some data . I have
the same issue. I solved the issue by deleting data from that particular
table and then I am able to post data. Next day if I try to post data I a
That article doesn't explain where and how the DecimalField class describes
its type as Decimal to python and pycharm. What line does that?
On Fri, Sep 23, 2022, 8:36 PM Mohammad Anarul
wrote:
> You can following the article
>
>
> https://www.geeksforgeeks.org/decimalfield-django-models/amp/
>
>
You can following the article
https://www.geeksforgeeks.org/decimalfield-django-models/amp/
On Sat, Sep 24, 2022, 5:09 AM Justin Black wrote:
> Hello there,
>
> If I have a model:
>
> class Money(models.Model):
> price = models.DecimalField()
>
> m = Money(...)
> pycharm knows that m.price
Hello there,
If I have a model:
class Money(models.Model):
price = models.DecimalField()
m = Money(...)
pycharm knows that m.price is of type Decimal but when I read through the
django code base, I don't see DecimalField or Field subclassing
decimal.Decimal
And I don't see any registration
Thank you all!
Em qui., 22 de set. de 2022 às 16:41, Julio Cojom
escreveu:
> Hi Matheus!
>
> Try to use django-select2 it is easy to set up and works like a charm!
>
> It has an advanced and easy implementation, so try first with the easy
> ones and then if your project needs something heavier,
Hi,
I need to pass an arbitrary argument from the serializer.save() method to
model.save() method?
Such as:
serialized_data = AModelSerializer(instance, data=adata_dict)
if serialized_data.is_valid():
serialized_data.save(an_arg="value")
class Amodel(models.Model)
def save(*args, **kwar
My name is Muhammad Adnan, I have one year experience in Django and Django
rest framework with html,css and Bootstrap and JavaScript. I need Part job
if anyone have part time job than they can contact me on Whatsapp
03094051037.
Thanks 😊
On Fri, 23 Sep 2022, 10:30 pm Sajanraj T D, wrote:
> You c
You can use js datatable to render csv or what ever you want in the table
format. You can also upload data as csv in file upload in model form. If
you want to render csv, then it should transform to json format and pass
via jsonresponse. Or httepresponse using mimetype.
On Fri, 23 Sep, 2022, 7:20
This is a very broad question so perhaps you are the stage of choosing the
tools.
The workflow, handling historical data, managing updates and replacement data,
etc are things to consider for a production system so you’ll need to deal with
those design questions.
For my most recent system I do
Hello All,
I am new to Django and currently in the mid of a project. I am creating a
dashboard for a hospital and the data is in the form of a csv/xls. I have
rendered the the interactive graphs which I need to display on the
dashboard, however on the jupyter notebook. How can I integrate it in
*Overview:*
In our Django web app, there are some background tasks that we want to run
every midnight. With this, I tried celery with celery beat.
I was able to successfully implement background task scheduler with celery
beat and worker with Redis as Celery broker following the tutorial on:
1
Hi All,
I have integrated the social_django package for social logins like google
and Fb ...etc.
But It's working in localhost fine but after deployed in AWS ec2 with
docker It's not working
Authorization Error coming: redirect_uri https://0.0.0.0:8000/. but it
should redirect to HTTPS://{my_do
Usung Django admin panel.
El jue, 22 sept 2022 20:28, Saudi Mostafa escribió:
> Pls I need help
> How can I get as an administrator statistics for users and activities
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe fro
This is easy you implement it with django forms then copy widget
html/javascript code with browser and then implement it 1:1 but not with
django forms... But i understand till yet WHY you want without django
forms? Yoz cab change django forms/widget 1:1 how do yoz want but this
isn't for a beginner
I want to make my form save files to a database without using the django
form
On Fri, 23 Sep 2022 at 12:52 PM, Sebastian Jung
wrote:
> Do you want change only a form or do you want also change widgets in this
> form?
>
> Nishant Sagar schrieb am Fr., 23. Sept. 2022,
> 08:32:
>
>> Hey Sebastian,
Do you want change only a form or do you want also change widgets in this
form?
Nishant Sagar schrieb am Fr., 23. Sept. 2022,
08:32:
> Hey Sebastian,
>
> That’s not my concern, all I want to know is, whether is it advisable to
> implement the form such a way or Django form is a must.
>
> If it i
18 matches
Mail list logo