Multiple websites but one authentication system

2021-08-26 Thread Isaac
Am working on a company website and there will be having more websites as time goes on, they don't want to be creating authentication system in each of their website. To avoid stress in creating multi account on these platform, there is a need to have one website that will do everything relatin

Re: UML to Django models

2021-08-26 Thread DJANGO DEVELOPER
can anyone help me? On Thu, Aug 26, 2021 at 9:32 AM DJANGO DEVELOPER wrote: > Currently, I am working on an inventory management system and I have got > some UML diagrams and want to convert those uml diagrams into django > models. So can anyone guide me on how to convert those UML diagrams into

Re: Multiple websites but one authentication system

2021-08-26 Thread Eugene TUYIZERE
My suggestion is that you can create a single entry where after login the system redirects users to the home page containing all these domains as icons and then the user selects the one he wants. On Thu, 26 Aug 2021 at 10:18, Isaac wrote: > Am working on a company website and there will be havin

Re: Multiple websites but one authentication system

2021-08-26 Thread Isaac
Am trying to understand what you said sir but am still confuse, how will the domain2.com recognize that this person is a user ? Also how will the database schema look like ? Will the two database be connected in a way ? On Thursday, 26 August 2021 at 09:29:47 UTC+1 eugenet...@gmail.com wrote:

Re: Multiple websites but one authentication system

2021-08-26 Thread Steven Mapes
You could use oauth between the projects. Look into https://django-oauth-toolkit.readthedocs.io/en/latest/ which would enable you to set up domain one as your authentication backend which the others could use On Thursday, 26 August 2021 at 09:46:11 UTC+1 Isaac wrote: > Am trying to understand

Re: Multiple websites but one authentication system

2021-08-26 Thread Christian Ledermann
I did this in the past by setting up https://github.com/jazzband/django-oauth-toolkit as an authentication server at login.my-domain.com and then connecting the other websites with https://github.com/python-social-auth/social-app-django to it On Thu, 26 Aug 2021 at 10:15, Steven Mapes wrote: >

Re: Multiple websites but one authentication system

2021-08-26 Thread Isaac Imafidon
Thanks everyone that contributed, you guys have really shown me much love. Am so grateful . Much appreciated. 🙏🙏 Virus-free. www.avast.com

Re: Multiple websites but one authentication system

2021-08-26 Thread Isaac Imafidon
Thanks specially sir Virus-free. www.avast.com <#D

Re: UML to Django models

2021-08-26 Thread Derek
There is not sufficient data in that image to create models. You don't know the field types, for example. Once you have those, it should not be too hard e.g.: from django.db import models class Product(models.Model): product_id = models.AutoField() name = models.CharField( max_length=2

Re: UML to Django models

2021-08-26 Thread DJANGO DEVELOPER
Hi Derek it is not difficult for me to write the model for the product entity. but there are also other diagrams that I want to convert into models. so I was just wanted to clear my concept. I am confused in Super types and sub types as you can see an entity within the entity. how should I convert

Re: UML to Django models

2021-08-26 Thread Cale Roco
theres a lot of different ways you can do this, depending on your desired functionality, the amount of data you intend to store etc, // Simple Example class Product(models.Model): name = models.Charfield(max_length=255) class ProductFeature(models.Model): product = models.ForeignKey(Prod

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Cale Roco
haven't tried it but you could potentially just override the "/admin/base.html" template in your templates directory On Tuesday, 24 August 2021 at 02:02:14 UTC+1 Mike Dewhirst wrote: > We are using 'Home' in a different, more public, part of the site and > have to adjust that first item in the

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Nigel Copley
although I think you'd have to override the breadcrumb block in each of the public facing admin templates, it doesn't look to be easily done and making a home setting it's probably overkill On Thursday, 26 August 2021 at 16:50:11 UTC+1 Nigel Copley wrote: > haven't tried it but you could potent

Re: Abridged summary of django-users@googlegroups.com - 15 updates in 5 topics

2021-08-26 Thread Rakesh Varma
I am getting error while i am running console ofpythonanywhere.com django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") On Thu, Aug 26, 2021 at 6:31 PM wrote: > django-users@googlegroups.com >

Re: UML to Django models

2021-08-26 Thread DJANGO DEVELOPER
Hi, Cale thanks for the reply. but in uml diagram Product Feature doesn't have any relation with the product. so why did you made a relation with the product model? can you please guide me on how to do this? On Thu, Aug 26, 2021 at 8:44 PM Cale Roco wrote: > theres a lot of different ways you ca

Django and Progressive web application

2021-08-26 Thread Duncan Santiago
I have been trying to bring in the concept of progressive web application to my django websites. I have had issue with with the service worker, the major problem is the scope attribute. When I leave the scope unconfigured it defualts to the static folder, which means I cannot cache an html file

Re: Abridged summary of django-users@googlegroups.com - 15 updates in 5 topics

2021-08-26 Thread Kasper Laudrup
On 26/08/2021 18.07, Rakesh Varma wrote: > I am getting error while i am running console ofpythonanywhere.com > > > django.db.utils.OperationalError: (2002, "Can't connect to local MySQL > server through socket '/var/run/mysqld/mysqld.sock' (2)") > Start by reading t

Re: Django and Progressive web application

2021-08-26 Thread Gerardo Palazuelos Guerrero
Hello Duncan, First thing first: I'm not affiliated in any way to the following resource. The other day I found pythonyoga.com. And I saw they have a course on using Django while creating a PWA. Not sure how that can be helpful to you. Regards, -- Gerardo Palazuelos Guerrero On Thu, Aug 26, 2

Re: Django and Progressive web application

2021-08-26 Thread Duncan Santiago
Do you have any other suggestions? I see pythonyoga charge 97$ , for the whole course. and am only interested in PWA only. I kind of feel confident with the rest of the stuff they wanna teach On Thu, Aug 26, 2021 at 11:41 AM Gerardo Palazuelos Guerrero < gerardo.palazue...@gmail.com> wrote: > Hel

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Mike Dewhirst
On 27/08/2021 1:50 am, Cale Roco wrote: haven't tried it but you could potentially just override the "/admin/base.html" template in your templates directory That does change it but only at the top level admin:index page which shows all the apps Doesn't seem to be inherited by child pages.

Re: Django admin - how to change breadcrumbs 'Home' into 'Main menu'

2021-08-26 Thread Mike Dewhirst
On 27/08/2021 2:09 am, Nigel Copley wrote: although I think you'd have to override the breadcrumb block in each of the public facing admin templates, it doesn't look to be easily done and making a home setting it's probably overkill Overkill, underkill - looks like no other solution at the mom