Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Wim Olivier
Great, thanks man! I will try that. Using local auth and PostgreSQL - no cloud services. Regards! Wim On Mon, 11 Nov 2019 at 08:39, Motaz Hejaze wrote: > I dont know what is your authentication based on , but i faced such a > scenario .. > > One of the solutions is to make a middleware that che

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Motaz Hejaze
I dont know what is your authentication based on , but i faced such a scenario .. One of the solutions is to make a middleware that checks the user type with the url prefix So usertype1 all related routes will be under /usertype1/ usertype2 all related routes will be under /usertype2/ Middlewar

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Wim Olivier
Thanks Motaz, That gives me a little bit of direction. I'm thinking now of controlling access to each app's URL's via a single piece of middleware (instead of at each View - just have to figure out how to do that. Regards, Wim On Saturday, 9 November 2019 10:44:58 UTC+2, Motaz Hejaze wrote: >

Re: Issue with unique key error on Many to Many field

2019-11-10 Thread Malibu
Hi, thanks for the answer. Of course, the moment I posted the question I figured out what it was. I ended up checking my primary keys, and found that they didn't have unique constraints. I added them and all was fine. Must have fallen off during an import. On Sunday, 10 November 2019 13:55:0

Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Aldian Fazrihady
You need to reorder the app list in INSTALLED_APP setting, so `django.contrib.admin` is located lower than your app`. On Mon, Nov 11, 2019 at 3:49 AM Alexander Beach wrote: > I am trying to create registration forms using Django's built in auth > forms. However, when using the Django admin, the

Re: Sending mail

2019-11-10 Thread franz ulenaers
I am missing here the file  = views.py Also the " from apps.validators import validaRut " gives problems because i am missing also the validators.py file Op 10/11/2019 om 12:54 schreef Franz Ulenaers: - how to implement these files into my project ? - have i to startapp “register” into my proj

Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Alexander Beach
This behavior seems counter intuitive, and contrary to what the documentation says For example: my settings.py file is as follows: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {

Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Mike Dewhirst
On 11/11/2019 7:02 am, Alexander Beach wrote: I am trying to create registration forms using Django's built in auth forms.  However, when using the Django admin, the Django admin templates are always being used. My application structure is as follows: | ├──bug │├──__init__.py │├──__pycache__

Django Admin templates not being overwritten by app templates

2019-11-10 Thread Alexander Beach
I am trying to create registration forms using Django's built in auth forms. However, when using the Django admin, the Django admin templates are always being used. My application structure is as follows: ├── bug │ ├── __init__.py │ ├── __pycache__ │ ├── settings.py │ ├── urls.py │ └

Re: Issue with unique key error on Many to Many field

2019-11-10 Thread Integr@te System
Hi Issuer, Check your tracker_passenger. https://docs.djangoproject.com/en/2.2/ref/models/fields/#django.db.models.ManyToManyField On Sun, Nov 10, 2019, 21:40 Malibu wrote: > Hi there. I've been doing Django for awhile but I am stumped on this > one.. I have a many to many relationship with

Issue with unique key error on Many to Many field

2019-11-10 Thread Malibu
Hi there. I've been doing Django for awhile but I am stumped on this one.. I have a many to many relationship with a 'through' definition main.models: class Client(models.Model): uid = models.CharField(max_length=128, unique=True) key = models.CharField(max_length=128) img = model

Re: Sending mail

2019-11-10 Thread Franz Ulenaers
- how to implement these files into my project ? - have i to startapp “register” into my project ? - i believe models.py , urls.py , forms.py and Admin.py should be put into the register folder - login.html in the folder templates/ Thanks Franz Verstuurd vanaf mijn iPhone > Op 8 nov. 2019 o