Services Blog Français

dev workflow

| by jpic | best-practice

Any kind of dev workflow that’s not as efficient as this one is considered deprecated / obsolete by YourLabs. Have a beautiful day

Quote post

| by jpic | harmful

Keith Braithwaite

Collected by highly respected hacker Uriel (RIP) on harmful.cat-v.org

It’s a curious thing about our industry: not only do we not learn from our mistakes, we also don’t learn from our successes.

CRUDLFA+ 0.3 Series

| by jpic | python django crudlfap

CRUDLFA+ is an expirement (read: pre-alpha state) of what Django could be if:

  • generic views provided templates and javascript for a rich experience out of the box,
  • class based views leveraged OOP a bit more to add DRY goodness,
  • leveraged externals apps from the Django ecosystem.

Let’s compare it side by side. Consider this simple model:

class Email(models.Model):
    email = models.EmailField()
    caisse = models.ForeignKey('Caisse', on_delete=models.CASCADE)

    def __str__(self):
        return self.email

This admin.py:

class EmailAdmin(admin.ModelAdmin):
    list_display = ('email', 'caisse')


admin.site.register(Email, EmailAdmin)

Ported to CRUDLFA+, in the case where we only want a list view, becomes (crudlfap.py):

Read More
Previous Page 13 of 32 Next Page

They trust us

Contact

logo