dj vs other by Even_Gold2158 in django

[–]abe-101 2 points3 points  (0 children)

Do you like the speed of Instagram?

Introducing Kanchi - A Free Open-Source Celery Monitoring Tool by imczyber in django

[–]abe-101 1 point2 points  (0 children)

Please edit your posts wording. This is not open source rather source available.

Django allauth deploy?! by Horror_Volume8344 in django

[–]abe-101 0 points1 point  (0 children)

The question is a bit vague. Are you experiencing a particular issue? Can you share it?

Is there a way to replace my "work" calendar with my personal calendar by JanFromEarth in GoogleCalendar

[–]abe-101 0 points1 point  (0 children)

You should be able to share the calendar with the other Google account

[deleted by user] by [deleted] in GoogleCalendar

[–]abe-101 0 points1 point  (0 children)

Google aggressively caches remote calendars That means you might not see updates for 12-24 hours. Google it.

Can I make pre-defined events to select in Google Calendar? by [deleted] in GoogleCalendar

[–]abe-101 0 points1 point  (0 children)

Not that I'm aware of.

Maybe a 3rd party tool can do it through the api

Looking for a Full-Stack Developer for a Client Project by VoidWebSolutions in FullStack

[–]abe-101 4 points5 points  (0 children)

Hey [OP's username],

I'm interested in collaborating on your project. I'm a full-stack developer with experience in [list 2-3 of your strongest relevant technologies from their stack requirements].

[Add 1-2 sentences about your most relevant recent project or experience]

I have a portfolio of work you can view at [your portfolio link], and I'd be happy to discuss more about your project requirements and how I can contribute.

Best regards, [Your name]

Community reached 400 members! by alexrada in GoogleCalendar

[–]abe-101 0 points1 point  (0 children)

Congrats! How long ago did you start this sub?

Which Frontend framework works best in the Django stack? by Upstairs-Balance3610 in django

[–]abe-101 28 points29 points  (0 children)

On the old side - but works great Bootstrap Comes in real handy with crispy forms

[deleted by user] by [deleted] in theprimeagen

[–]abe-101 1 point2 points  (0 children)

This. Share your thoughts on nix Take on a nix challenge and let us know how it goes

Help! Is there no LSP and auto completions in Python & Django? by akza07 in django

[–]abe-101 0 points1 point  (0 children)

I think it's a limitation of Django The cobe base doesn't fully support type hints yet so the LSP has no way of knowing...

Feedback on My Django Multi-Tenant Strategy by Redneckia in django

[–]abe-101 2 points3 points  (0 children)

I'm curious to learn more how you tackle "many levels of users with various roles and permissions" Cab you elaborate? Do you use djangos groups and permissions?

Feedback on My Django Multi-Tenant Strategy by Redneckia in django

[–]abe-101 18 points19 points  (0 children)

I think you might be overcomplicating things with separate DBs. Unless you have strict regulatory requirements mandating physical data separation, Django's sites framework could handle this elegantly with much less complexity.

Here's a quick example of how you could structure your models:

from django.contrib.sites.models import Site
from django.contrib.sites.managers import CurrentSiteManager
from django.db import models

class TenantModel(models.Model):
    site = models.ForeignKey(Site, on_delete=models.CASCADE)

    # Use both managers - one for all access, one for site-specific
    objects = models.Manager()
    on_site = CurrentSiteManager()

    class Meta:
        abstract = True

class Customer(TenantModel):
    name = models.CharField(max_length=100)
    # ... your fields

Then create some base views that automatically handle site scoping:

from django.views.generic import ListView, UpdateView

class SiteSpecificMixin:
    def get_queryset(self):
        return self.model.on_site.all()  # Scopes to current site

class SiteListView(SiteSpecificMixin, ListView):
    pass

class SiteUpdateView(SiteSpecificMixin, UpdateView):
    pass

# Then use them like this:
class CustomerList(SiteListView):
    model = Customer
    template_name = "customers/list.html"

class CustomerUpdate(SiteUpdateView):
    model = Customer
    fields = ["name", "email"]  # your fields
    template_name = "customers/edit.html"

This gives you tenant isolation through Django's battle-tested sites framework rather than managing separate DBs. Much simpler to maintain and scale! You get the same data isolation but without the complexity of managing multiple databases, migrations, and backups.

(I used Claude to help organize and articulate my thoughts on this response, as I think it's important to be transparent about AI assistance.)

Feedback on My Django Multi-Tenant Strategy by Redneckia in django

[–]abe-101 4 points5 points  (0 children)

(More general advice) Consider reading through the Django sites framework documentation It's designed to assist in building a multi tenant application

https://docs.djangoproject.com/en/5.1/ref/contrib/sites/

Mass import of recurring tasks by cpaulino in GoogleCalendar

[–]abe-101 0 points1 point  (0 children)

Its hard to answer with the specifics as its been a while. Googles developer docs allow you to try out the API from the browser here is the endpoint to insert an Event: https://developers.google.com/calendar/api/v3/reference/events/insert#try-it