how to serialize default user model in drf serializer

2022-12-08 Thread Agnese Camellini
Good morning, i am doing a simple interface which has a foreign to the default user model: I find some difficulties in writing the serializer as there's not serializer for the User default model. Any idea of how can i solve this? Below is my model code. Regards. AGnese Camellini from

Re: Need help on reducing cognitive complexity

2022-07-21 Thread Agnese Camellini
The only things that comes into my mind is taking away that first if which is redundant with the third block. An other way might be to include all the if in a big switch... My 2 cents Agnese On Thu, 21 Jul 2022 at 07:53, Sencer Hamarat wrote: > Hi everyone, > > I have a code block with high

Re: Model Design

2022-05-05 Thread Agnese Camellini
i would decouple the importing of data from the database architecture, and make a meaningfould structure of the models, but your own, not the one of the client. In this manner you create a design that is meaningful and can be scaled from the knowledge expressed in the data without being dependant

problem in reloading project files with UWSGI for Django app

2022-04-22 Thread Agnese Camellini
of python. But at th moment the resource is unavailable. I have set the aureload on on the application.ini file and touched the files, but i am still getting a 404. Can someone help me out? Thanks a lot. Agnese Camellini -- You received this message because you are subscribed to the Google Groups

Re: Request for admins

2020-10-11 Thread Agnese Camellini
I full aree with you. This is spamming! Il Dom 11 Ott 2020, 22:14 o1bigtenor ha scritto: > Greetings > > The list volume seems to have attracted those that purport to offer > help or services. > > Is it possible that the volume of this has reached a point where there > is a separate list for

Re: Django and Vuejs

2020-10-02 Thread Agnese Camellini
I've found a lot on the web, even including VueJs in the page with a CDN call in the head and then modifying the delimiters to divide the behaviour ov Vue from the one of the templates, but then i discussed with the front end part of my open source project and we decided to make everything with

Re: Ecommerce website

2020-08-14 Thread Agnese Camellini
If you want to build an ecommerce website with django use "Oscar" an app that builds the ecommerce for you in django Il Ven 14 Ago 2020, 11:50 ha scritto: > > > > > Any one working on E-commerce website I want > > Help to develop my E-cart website...thanks > > > > -- > You received this message

Re: Regarding sending the link to reset the password

2020-06-13 Thread Agnese Camellini
I have set a temporary password when they give me the email. By the update on the user i check in the password field if there is the temporary password and if it is there i send the reset link by email. I have an api with django rest framework and django. Agnese Il Sab 13 Giu 2020, 20:44 Devendra

Re: Help me!

2020-06-08 Thread Agnese Camellini
it's enough that you google django chat system that everything will come to you magically. On Mon, 8 Jun 2020 at 08:24, Tobi DEGNON wrote: > Make research about Django channels > > Le lun. 8 juin 2020 07 h 18, meera gangani a > écrit : > >> I want to create personal chat in django!! >> >> What

Re: How to retrieve dynamically the data ,submitted by a form in an html page, in a python function pointing to another html page in views.py?

2020-06-07 Thread Agnese Camellini
If you bind the form to a model and the you retrieve the model in the other page everything will be ok Il Dom 7 Giu 2020, 22:09 Pierre Jutard ha scritto: > I have 2 html pages A and B. The user fills the AForm in the 'A' HTML > page(URL: A) then he will go to the 'B' html page (url: A/B)

problem filtering queryset in Django Rest Framework

2020-06-06 Thread Agnese Camellini
esn't filter object at all, so i am missing something important. Can anyone help me out or point me in the right direction? Thanks a lot Agnese Camellini -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Get last instance object per each month and sum per month in Django

2020-02-25 Thread Agnese Camellini
You should search how to make a group by activity and a partition by month then take each partition and sum the record up, i don't know how to do it in Django orm but in sql is the most effective way to solve the issue and it's a lot let expensive than taking all the activities and then search in

Re: Suggestions about building new ecommerce website

2014-09-09 Thread Agnese Camellini
Well, i had friends running ecommerce sites in django, they where using their own developed package, but it was one year ago so probably the package pointed in the last email is a good choice. Best Agnese On 9 September 2014 01:11, Luca Corti wrote: > >

Re: Django Talent Needed!

2014-07-17 Thread Agnese Camellini
. Let me know. Agnese Camellini Il giorno 16/lug/2014 17:01, "Shawnblue" <svanderp...@smarteragent.com> ha scritto: > Hi Django Community! > My name is Shawn, and we [Smarter Agent] have just started to migrate our > platform to Python/Django. We could not be happier

reverse function

2014-05-29 Thread Agnese Camellini
Good morning everyone, i was using django as of django 0.9 and now i'm looking again in the tutorial and i have to say that a lot has changed. I undestand che basics (even if i cannot understan why in the tutorial they use the context and doesn'use any more "render_to_response") but however what i

Re: JSON or YAML?

2013-08-31 Thread Agnese Camellini
I'm using JSON becuase of it's compatibility with javascript and python both. I never used YAML but i think the compatibility's problem are bigger with YAML than json. My 2 cents. Agnese 2013/8/31 Andre Terra > It depends on where your data is coming from. YAML has less

Re: Can't set static file directory.

2013-01-08 Thread Agnese Camellini
OT, > }), > ) > > Feel free to add a similar pattern for media files as well. > > Hope this helps, > Jonathan > > > On 01/08/2013 04:25 AM, Agnese Camellini wrote: > > I'm not using apache now, i'm just using the development server into > django. &g

Re: Can't set static file directory.

2013-01-08 Thread Agnese Camellini
I'm not using apache now, i'm just using the development server into django. Why is it so difficult to serve static files? joy 2013/1/8 Mike Dewhirst > On 8/01/2013 10:03pm, joy wrote: > >> I have the same problem, the tutorial speaks about a list of things to do: >> >>