/explore
|
You are here |
jinyuz.dev | ||
| | | | |
www.kencochrane.com
|
|
| | | | | ||
| | | | |
www.laceyhenschel.com
This week I needed to manipulate the privacy of a Wagtail page programmatically. The Wagtail docs show you how to edit page privacy in the admin UI, but it doesn't peek behind the curtain to show you the code. The example here is a result of my Google searching. |
|
| | | | | ||
| | | | |
www.rasulkireev.com
Whenever you building a site with Django that will have user authentication, it is recommended to create a Custom User Model, before the first migration. Sometimes you forget to do that. In this case you have to follow a strict procedure, which I'll show you in the post. |
|
| | | | | ||
| | | | |
jinyuz.dev
I was working on a multi-tenant project and encountered a bug when using Django's GenericForeignKey with django-tenants. It was using the public schema's contenttype_id instead of the tenant schema's contenttype_id. So, if I have a model of Comment, my django_content_type table would have something like public.django_content_type id app_label model 15 comments comment tenant.django_content_type id app_label model 19 comments comment There shouldn't be a problem here since django-tenants should handle thi... |
|
| | | |||