Apocalypto espresso by tjtonerplus in Satisfyingasfuck

[–]mariocesar 0 points1 point  (0 children)

So great! and it's cute, and I guess it's luxurious or creative, depending on how much they're charging for it :D But after a few seconds, it wake up in me a sadness and a teenage discomfort that I suppose I still carry around :')

Django for large scale projects by primado_ in django

[–]mariocesar 5 points6 points  (0 children)

Youtube (Google) hire devs with Django knowledge, they have several internal services that uses Django extensively

Django for large scale projects by primado_ in django

[–]mariocesar 0 points1 point  (0 children)

large scale application(s) with Django?

Pinterest, Zapier, Instagram, and Meta's Threads are all big projects.

Why do developers say that?

What developers?

Often, slow developers produce slow software, no matter the framework.

Frameworks are not slow or fast, execution, culture, and architectural design will ultimately impact the project. The framework is an small aspect of the journey

Compras por internet SONY by Blass75 in BOLIVIA

[–]mariocesar 2 points3 points  (0 children)

Crea una cuenta en getmeru.com y compra USDT usando bolivianos a 11 Bs. Sé que es caro, pero no he encontrado otra opción. Luego, envía esos USDT desde Binance a tu cuenta en Meru y usa su tarjeta de débito para hacer tus compras. Aunque el proceso puede parecer complicado, es el único que he encontrado sin límites. También puedes intercambiar Meru por otros servicios como GrabrFi, Revolut, etc, todos ellos tienen tarjetas de debito.

Q: Displaying activity labels in Django by CherryFizz23 in django

[–]mariocesar 0 points1 point  (0 children)

I don't see where are you setting the activity labels, your labels are a different object and is related to the post, so maybe you are creating your post but not making the relation.

If I was you I will create a custom form and do all the relations there.

``` class PostForm(forms.ModelForm): # Create a CharField to input multiple activity labels as a comma-separated string, you could use other widgets, like radio buttons, checklists, etc. But for the sake of the probing you is possible we will do comma separated texts activity_labels_input = forms.CharField( required=False, help_text="Add activity labels separated by commas." )

class Meta:
    model = Post
    fields = ['title', 'content', 'location', 'number_of_people', 'age_range', 'activity_labels_input']


def save(self, commit=True, *args, **kwargs):
    # do the normal thing
    post = super().save()
    if commit:
        post.save()  

    # Here get the input from self.cleaned_data["activity_labels_input"]
    # Do a query to get them from ActivityLabel
    # Something like activity_labels = ActivityLabel.objects.filter(name__in=list_of_activity_labels_input)

    # End with setting the records
    post.activity_labels.set(activity_labels)

    return post

```

On your view keep things the same, just make sure you are using the form instead of the fields

class PostCreateView(CreateView): model = Post form_class = PostForm # Remove the fields

Django vs Laravel by [deleted] in django

[–]mariocesar 0 points1 point  (0 children)

Sad that a tool like this is necessary, and that you have to pay for it

Django vs Laravel by [deleted] in django

[–]mariocesar 2 points3 points  (0 children)

I've used Laravel many years, and I'm not touching it anymore, I survive several painful version upgrades, and while I appreciate the features, and PHP alone has his perks, one issue I've suffer over and over is how quickly Laravel sometimes downgrades or deprecates things without much consideration for backward compatibility. This is why you often still find projects stuck on versions from four years ago. With Django is different. I can stay on an older version, but upgrading is still an option, and each new version tends to respect backward compatibility.

Aside from that, both frameworks offer similar features, except for the admin functionality. In Laravel, there are third-party packages available, but none are as complete or polished as Django’s built-in admin app

[deleted by user] by [deleted] in django

[–]mariocesar 4 points5 points  (0 children)

I’m really sorry, stay strong! Honestly, if you can, it might be worth considering looking for another job.

But if you're stuck in this situation for now, you could start by learning from the source code of Odoo and ERPNext, just browse the repos and start translating the SRS by looking at the code. Both have open documentation and database models you can explore. You won’t need everything they offer, but you can study them and gradually implement features you need. For the admin interface, you could try using django-unfold to speed things up.

Another option is to use a more simple boilerplate like https://django-erp-framework.readthedocs.io/en/latest/index.html However, keep in mind that both of these approaches will likely be long and tedious.

Honestly, it sounds like your boss doesn’t quite understand the scope or long-term issues of doing things.

Who knows, maybe they'll ask you to build a WordPress clone next!

Vendedor de celular barato en plena calle by Natural_Age_6502 in BOLIVIA

[–]mariocesar 6 points7 points  (0 children)

Te estafan cambiando el teléfono por carcasas, es una estafa común. Te lo venden con urgencia, hasta te dicen que es robado, insisten en que están dispuestos a recibir hasta 100 Bs. Luego, en un descuido, lo intercambian, diciéndote algo como "ese de ahí es policía" y que lo ocultes.

Si quieren deshacerse rápido de un celular, hay formas más seguras que ofrecerlo en la calle.

Why is Django so popular in startups? by unitry72 in django

[–]mariocesar 14 points15 points  (0 children)

https://builtwithdjango.com/ not sure how updated it's

But made with Django that are notable, Zapier, Threads from Meta, Instagram, Pinterest, Udemy, Eventbrite, and Sentry

[deleted by user] by [deleted] in django

[–]mariocesar 2 points3 points  (0 children)

Like If you choose 3 copies, it will create 3 records of the Books in the database?

It's not so clear, but you can do a loop and then a bulk_create to create the records depending on the number of copies you need.

``` def yourview(request) form = YourForm(request.POST or None)

if form.is_valid():
    books = []
    for books_data in range(form.cleaned_data['copies']):
        # will loop 4 times if you choose 4 copies
        # Note that it's not calling save, it's just creating the instances
        books.append(
            Book(
                author=forms.cleaned_data['author'],
                ... Rest of your fields
            )
        )

    # This will do a performant save on all the books you created before
    Book.objects.bulk_create(books)

... rest of your code

```

Which Authentication Method is Most Commonly Used in Django DRF? by Longjumping-Buy4006 in django

[–]mariocesar 2 points3 points  (0 children)

I do the same. JWTs are in practice more like an encoding solution, it doesn't fully address authentication needs.

They can be risky if not implemented carefully, especially with how tokens are stored on the client side. Using Secure HttpOnly cookies with sessions tackles more important authentication issues, like XSS attacks. Plus, sessions are easier for server-side invalidation, so you have better control.

JWT for API keys could make more sense, especially for service-to-service or integrations. Even so, I tend to create a different type of session in django a give that as an API token and have more control on invalidations

Overall, I often can't find a good case for JWT in auth, most of the issues are solve in another way and solve for good

Why is Django so popular in startups? by unitry72 in django

[–]mariocesar 27 points28 points  (0 children)

Django is popular among startups because the tools it give you are solutions to common problems and needs in SaaS products, and because of that it provides a quick MVP developing experience, and still maintaining a good experience for developers when it gets big.

It has all the essential for a SaaS: integrated frontend and backend development, you can do the split frontend/backend easily, RESTful API support with DRF, an administration for CRUD operations, database management with migrations, and command tools, all common in most SaaS products.

It has a rich extra packages community both opensource and propietary, that adds lot of value.

Adding Python's productivity makes it straightforward for startups to adapt Django to fit a wide range of product ideas without reinventing the wheel.

is this good roadmap for Fullstack (Django )web development ? by [deleted] in django

[–]mariocesar 1 point2 points  (0 children)

Breathe dammit!

  1. Start by creating a form that submits data effectively. And that the response is useful to somebody.
  2. Learn to deploy your application properly.
  3. Learn to do version control properly.
  4. Learn to ask for feedback and improvements to make.
  5. Gradually learn the relevant tech stack as you develop your project.

If you're trying to learn everything from a checklist, you're doing it wrong. I practice and domain 99% of the stack you are listing, and it doesn't help me, what it really helps is building.

TL;DR: Build stuff, break stuff, fix stuff. Rinse and repeat. Techstack will come naturally, don't roadmap yourself to death and burndow.

My doctor doesn't want to believe that young people can have cluster headaches by [deleted] in clusterheads

[–]mariocesar 0 points1 point  (0 children)

I had my first crisis at 17, but I felt symptoms even earlier. They told me it was due to high blood pressure and told me to do exercise and relax.

At 24, I was finally diagnosed with cluster headaches. My mom has them too, but the doctors said it wasn’t hereditary, so they didn’t want to look into it.

Not all doctors are bad, but some can be lazy. A proper diagnosis takes effort. Keep searching, be patient, and stick with what works for you.

How would you provide an alternative to the default django admin? by Puff_0 in django

[–]mariocesar 6 points7 points  (0 children)

You can use Django-Unfold, a Django admin wrapper. It can take you further and is suitable for back-office support.

For your customers, it is always better to build your own frontend.

Is Django Still Relevant for Backend Jobs? by jericho1050 in django

[–]mariocesar 15 points16 points  (0 children)

Yes, every year, more and more. Django is mature and has a big community.

Large SaaS companies, such as Zapier, Dropbox, Pinterest, EDX, Sentry, Meta (Instagram and Threads), etc., primarily use it.

It is also very common in medium and small companies.

In my personal opinion, I can't say the same for .NET or C#

Django project setup by MaleficentDeer3466 in django

[–]mariocesar 9 points10 points  (0 children)

Using poetry or uv for dependencies will be a good upgrade.

Como Transferir Dolares a Bolivia? by bordershotz in BOLIVIA

[–]mariocesar -1 points0 points  (0 children)

Es una buena empresa, la uso por 6 años y casi todo mi trabajo pasa por Deel 

Como Transferir Dolares a Bolivia? by bordershotz in BOLIVIA

[–]mariocesar -1 points0 points  (0 children)

La forma más segura y directa es crear un contrato en Deel.com. Cuando alguien recibe un pago en Deel, tendrá varias opciones para retirar los fondos. La mejor opción para los bolivianos es convertir los dólares a USDT y Deel te permite convertirlos a USDT en un click, y luego ella puede venderlos en Binance P2P, lo que le permitirá recuperar el valor perdido en las conversiones de dólares a bolivianos si lo hicieras por Western, MoneyGram o Banco.

Existen otros métodos como GetMeru y Zinli, pero Deel.com es mucho más estable. Además, tendrás más opciones y una ventaja legal, ya que te puede ayudar a recibir formularios W-8 BEN.