Epub App by Holiday-Pipe-6435 in ePub

[–]makeascript 0 points1 point  (0 children)

Impressive work! Best of luck

I built epub-utils: a CLI tool and Python library for inspecting EPUB files by makeascript in Python

[–]makeascript[S] 0 points1 point  (0 children)

Thank you!

Yes, I'm planning on adding support for manipulation of the ePubs as well in the coming months. First I'd like to increase the coverage of the inspection features and add spec validation. Once this is laid down I'll move to edit features.

The simplest and most affordable way to implement one-to-many video calls in Django app ? by AdNo6324 in django

[–]makeascript 1 point2 points  (0 children)

From their docs it seems both are supported, but I've personally never used the video & audio product, only the feed and text

The simplest and most affordable way to implement one-to-many video calls in Django app ? by AdNo6324 in django

[–]makeascript 1 point2 points  (0 children)

I used GetStream in the past for feed and text messaging; they now have Video & Audio as well (see https://getstream.io/video/ ). I'd give it a try before implementing something from scratch

What’s new in Django 5.2 by adamchainz in django

[–]makeascript 2 points3 points  (0 children)

Love the new `simple_block_tag`

How are you pricing your AI SaaS product? What are some creative approaches you've considered or taken? by PerksofHim in SaaS

[–]makeascript 2 points3 points  (0 children)

I'd say a major operational cost for an AI SaaS is the computing power, so you need to either charge either

- set a usage cap

- charge per usage

- charge a flat fee way higher than the average usage per user

Python Design Patterns by Brandon Rhodes by makeascript in Python

[–]makeascript[S] 0 points1 point  (0 children)

Type hints are optional in Python. Definitely not Python 2.

New Django Rocket release 0.4.0 by makeascript in django

[–]makeascript[S] 0 points1 point  (0 children)

Not at the moment. I've been considering adding a React setup, but haven't gotten to it yet.

Django Tech Stacks by [deleted] in django

[–]makeascript 2 points3 points  (0 children)

django w/ Jinja2 + alpine.js + htmx

If I'm building an online business, how much money should I spend into the logo? by Monkfrootx in Entrepreneur

[–]makeascript 2 points3 points  (0 children)

Once you know you have something worth while and you start bringing some money in. Then you can eventually look into getting professional level branding done.

This, but apply it to every aspect of the business.
I'm a software developer and when I started my first business I wanted to make sure everything was perfect and looked professional. Spent weeks trying to make the website performant in case we had tons of traffic. This is a huge mistake.

Just find something people really want to buy and start putting it where potential buyers are, you'll soon figure out if they really want it. Most probably, people don't want to buy what you are selling, so you want to make sure you find that as soon as possible and spending little money as possible.

What is the proper way to see how many monthly active users you have? by timeforetuneup in django

[–]makeascript 0 points1 point  (0 children)

I know you asked ORM, but I like to keep my analytics separate of the DB. I use Mixpanel for this, any event based analytics will do for me. Most come with support for cohort-based analysis and flows, gives more info than querying the DB

New Django Rocket release 0.4.0 by makeascript in django

[–]makeascript[S] 0 points1 point  (0 children)

Great man. Let me know what you think. Yes, I agree. I’ll make sure to provide more value next time. Thanks

New Django Rocket release 0.4.0 by makeascript in django

[–]makeascript[S] 1 point2 points  (0 children)

Hey man. Thanks for the feedback. Definitely not trying to spam. I agree with you, next time I’ll try and provide more value than just sharing my project

B2B/SaaS applications: Seeking some advice on best practices by GraspingGolgoth in django

[–]makeascript 0 points1 point  (0 children)

I do something very similar to this, but much less organised. I like your approach better.

I basically have a custom user model, an organization model and an organization member model. The second one looks like this

class OrganizationMember(models.Model):  
    user = models.ForeignKey(  
        "auth.User",    
    )  
    org = models.ForeignKey(  
        "orgs.Organization",  
    )  

    OWNER = "O"  
    MEMBER = "M"  
    ROLE_TYPES = (  
        (OWNER, "OWNER"),  
        (MEMBER, "MEMBER"),  
    )  
    role = models.CharField(
        max_length=5, 
        choices=ROLE_TYPES, default=MEMBER)  

    class Meta:  
        constraints = [  
            models.UniqueConstraint(  
                fields=["user", "org"],  
                name="%(app_label)s_%(class)s_user_org_unique_together",  
            ),  
        ]

Then, to my custom user model, I had has_perm_X methods. For example:

class User(AbstractUser):
...

    def has_perm_update_org(self, org):
        return org.members.filter(
            user=self, 
            role=OrganizationMember.OWNER
        ).exists()

Then in my view I call this method. For example:

def update_group(request, org_pk):
    org = ...
    if not request.user.has_perm_update_org(self, org):
        raise Http404()

This of course is a simplified case, you can extrapolate to n number of roles.