Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Anh Nguyen
Ur config with me are the same. [image: Screenshot_2022-08-25-12:50:38-1661406638.png] But i put it in the bottom of the middleware MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware",

Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Mike Oliver
Currently, I have /mysite/ mymiddleware.py settings.py My CustomMiddlware class looks like... class DoseControllerMiddleware(object): def process_request(self, request): """ get ready to call the Dose Controller """

Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Mike Oliver
Well I have continued to search and now I see that CustomMiddleware will do what I want, but I cannot find a current example and some of the StackOverflow answers are old and not working in the latest Django. On Thursday, August 25, 2022 at 10:23:41 AM UTC+8 bboy...@gmail.com wrote: > Could

Re: Job -Fullstack python expert ( Django framework)

2022-08-24 Thread Desh Deepak
I am Interested On Wed, Aug 24, 2022, 9:02 PM Wennie Catabay wrote: > I'm interested > > On Sat, Aug 20, 2022, 2:21 AM pcintegral@gmail.com, < > pcintegral.pcintegr...@gmail.com> wrote: > >> I see many are very interested in this: Can you send resume to >> jumezur...@lokdon.com asap if you

Re: Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Anh Nguyen
Could you tell us more detail of process flow? On Wed, 24 Aug 2022 at 20:52 Mike Oliver < mikeolive...@open4businessonline.com> wrote: > Hello, > > I want to follow a microservices architecture and have some shared > services I can include in a process flow instead of the 1:1 View:Model > >

Re: Two list on one page

2022-08-24 Thread Ezequias Santos
Hello @Matheus apparently, you have this: product list. expense list. I don't understand why you want this all on the page, since it deals with a different cost center. (just a suggestion) Regarding pagination, if you're using Django and I think so, have a look at this:

Re: Two list on one page

2022-08-24 Thread Thomas Lockhart
Lay out your template to include both lists, then define get_context_data() in your view to have two lists of objects to show in your template. Get farther along and it will be easier for us to answer specific questions. hth - Tom > On Aug 24, 2022, at 12:34 PM, Matheus Bon wrote: > > What

Re: Two list on one page

2022-08-24 Thread Matheus Bon
What would be a way to get two lists on the same page? Em quarta-feira, 24 de agosto de 2022 às 16:33:23 UTC-3, Matheus Bon escreveu: > Hello There > > I want to create two lists on one page, in the style of the image (I'm > Brazilian, so the list is in Portuguese). > > However, if I do it the

Two list on one page

2022-08-24 Thread Matheus Bon
Hello There I want to create two lists on one page, in the style of the image (I'm Brazilian, so the list is in Portuguese). However, if I do it the way I'm showing it in the code image, I'll necessarily have to make two pages for each list, right? -- You received this message because you

Re: I want to fetch the value of radio field for updation but it only doesn't fetch even i use condition and value does comes but doesn't checked

2022-08-24 Thread Mihir Patel
i dont have much idea but try to do with True Or False value bcz maybe it returns boolean value. On Mon, Aug 22, 2022 at 12:27 PM Abhinandan K wrote: > Email > > {% with val_gen=datas.gender%} > {{val_gen}} > gender: > > checked{% endif %} >Male > checked{% endif %}>Female > > {% endwith %}

Re: Job -Fullstack python expert ( Django framework)

2022-08-24 Thread Wennie Catabay
I'm interested On Sat, Aug 20, 2022, 2:21 AM pcintegral@gmail.com, < pcintegral.pcintegr...@gmail.com> wrote: > I see many are very interested in this: Can you send resume to > jumezur...@lokdon.com asap if you are on expert level. I am looking for > experienced people from MEAAP region:

Re: How to Manage User & Create a Model

2022-08-24 Thread ahmed doudou
https://docs.djangoproject.com/en/4.1/topics/auth/customizing/ read this documentation to the end it's gonna solve your problem Ahmed °•° On Wed, Aug 24, 2022, 14:52 Aakash Bhaikatti wrote: > As a User > >- I can signup either as LIBRARIAN and MEMBER using username and >password >

User authentication with simple-jwt drf

2022-08-24 Thread Lakshyaraj Dash
Hello everyone, I want to create a user authentication app using ReactJS and django. But facing problems in authenticating with the jsonwebtokens in ReactJS. Can anybody provide correct guide of implementing DjangoRestFramework simple-jwt and ReactJS jet ? -- You received this message because

Re: page index.html

2022-08-24 Thread ahmed doudou
https://docs.djangoproject.com/en/4.1/topics/http/urls/ This is django documentation just follow it step by step. On Wed, Aug 24, 2022, 13:55 REMY TOUITOU wrote: > ok , i will send this to you this evening > thanks you > > Le mer. 24 août 2022 à 14:11, Asif Ahmed Khan a > écrit : > >> What

Re: page index.html

2022-08-24 Thread Danish Nagori
Hi Dear I think you run py manage; py runserver So please You run this command py manage.py runserver This is write commnd Thanks On Wed, 24 Aug 2022, 2:44 pm REMY TOUITOU, wrote: > hello , i have a question , i can't make the server running , when i do > the command py manage;py runserver

Re: page index.html

2022-08-24 Thread Håkon Øyen
Try locating the first of the listed files. That's usually where the error is. On Wednesday, August 24, 2022 at 11:45:23 AM UTC+2 touit...@gmail.com wrote: > hello , i have a question , i can't make the server running , when i do > the command py manage;py runserver , it gives a lot of error

How to Manage User & Create a Model

2022-08-24 Thread Aakash Bhaikatti
As a User - I can signup either as LIBRARIAN and MEMBER using username and password - I can login using username/password and get JWT access token As a Librarian - I can add, update, and remove Books from the system - I can add, update, view, and remove Member from the system As

Can an app subclass a core django class to channge its behavior

2022-08-24 Thread Mike Oliver
Hello, I want to follow a microservices architecture and have some shared services I can include in a process flow instead of the 1:1 View:Model Suggestions? MO -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: page index.html

2022-08-24 Thread ALBERT ASHABA AHEEBWA
You need to share a screenshot for better help. Though it is manage.py and not manage;py Best Regards, Albert Ashaba Aheebwa +256 781 435857 On Wed, 24 Aug 2022, 12:45 REMY TOUITOU, wrote: > hello , i have a question , i can't make the server running , when i do > the command py manage;py

Database issue with Django 4.1

2022-08-24 Thread Fernando Villaça
Hi everyone, I just updated a project to 4.1, and a query stopped working. I tested with both SQLite and PostgreSQL, and i got the same result. I'm not 100% sure this is bug in Django 4.1, but it works fine on 4.0.7. These are the models and the manager related to the query: class

Re: plz help user authentication

2022-08-24 Thread Wazed Khan
Use the relationship in this way Product -> Seller-> User Instead Product -> User -> Seller On Wed, Aug 24, 2022, 7:18 PM MAHESH KUMAR wrote: > > 1. User Authentication APIs: > 1. get or create user by phone number, params: “phone_no”, response > {“user_id”,”auth_token”}, > 2. get or

Re: plz help user authentication

2022-08-24 Thread MAHESH KUMAR
1. User Authentication APIs: 1. get or create user by phone number, params: “phone_no”, response {“user_id”,”auth_token”}, 2. get or create user by email, params: “email”, response {“user_id”,”auth_token”}, how to write this i was try but i didn't get plz help sir On Friday, August 19,

Re: page index.html

2022-08-24 Thread REMY TOUITOU
ok , i will send this to you this evening thanks you Le mer. 24 août 2022 à 14:11, Asif Ahmed Khan a écrit : > What type of errors are you facing? > Can you send some screenshots? > or error details? > > On Wed, 24 Aug 2022 at 15:14, REMY TOUITOU wrote: > >> hello , i have a question , i

Re: page index.html

2022-08-24 Thread Asif Ahmed Khan
What type of errors are you facing? Can you send some screenshots? or error details? On Wed, 24 Aug 2022 at 15:14, REMY TOUITOU wrote: > hello , i have a question , i can't make the server running , when i do > the command py manage;py runserver , it gives a lot of error in differents > files

Re: page index.html

2022-08-24 Thread REMY TOUITOU
hello , i have a question , i can't make the server running , when i do the command py manage;py runserver , it gives a lot of error in differents files , before the server was running well; i use visual studio code and conda ; thanks you remy Le jeu. 18 août 2022 à 23:06, hajar Benjat a écrit

Re: How to enable/disable a hyperlink based on the clock

2022-08-24 Thread M Adnan
Use cronjobs for this , which will run on a specific time and than make a boolean true or false than you can easily handle enable and disable on the base of the boolean On Wed, 24 Aug 2022, 10:58 am Mike Dewhirst, wrote: > I want to provide a link to join a regular Zoom webinar but >