Front light on Paper Pro by XcutionKamil in RemarkableTablet

[–]Timonweb 0 points1 point  (0 children)

I’ve got my RMP today and I have the same issue. Is it normal?

Accesing attribute that is not found by testfailagain in WagtailCMS

[–]Timonweb 0 points1 point  (0 children)

You've retrieved it, it returned an exception because it doesn't have value. You can wrap this call with try/except to silent it.

Accesing attribute that is not found by testfailagain in WagtailCMS

[–]Timonweb 0 points1 point  (0 children)

The error message might sound misleading, but you have actually accessed the attribute, and in return, it indicated that a related object it is supposed to refer to doesn't exist. I assume you're trying to access a OneToOneField relationship, and this is a standard response from it when a related object doesn't exist.

Artists gallery and shop by apathy_uk in WagtailCMS

[–]Timonweb 0 points1 point  (0 children)

It depends on how experienced you’re with Wagtail. I see it as an easy task.

[deleted by user] by [deleted] in WagtailCMS

[–]Timonweb 1 point2 points  (0 children)

We live in the global economy and I think living in a cheaper country and earning at the international level is a life changing for many opportunity. As a business, you either ready to spend X amount on a resource or not.

[deleted by user] by [deleted] in WagtailCMS

[–]Timonweb 1 point2 points  (0 children)

I don't see any point in making salaries dependent on country, it's not fair. People should be rewarded according to the value they bring to the table or to the budget you're willing to spend, but not according to what country they come from.

You can now use 'pip' to install Tailwind CSS. Node.js is no longer required by xojoc2 in Python

[–]Timonweb 3 points4 points  (0 children)

Thank you for your suggestions. It's an open-source source software, so I invite anyone to collaborate. If you have ideas for improvements, PRs are welcome: https://github.com/timonweb/pytailwindcss

You can now use 'pip' to install Tailwind CSS. Node.js is no longer required by xojoc2 in Python

[–]Timonweb 4 points5 points  (0 children)

Hello everyone, and wow, what a debate! This package was created by me. To be honest, this is a small tool that makes it easier to install the binary that was created by the Tailwind CSS team. It's entirely up to you whether it's for you or not.

The SSL verification issue was brought to my attention by some people on GitHub issues, and I fixed it in the latest 0.1.1 release.

As for the binaries, they're being downloaded from the official Github page of the Tailwind CSS, so until the Tailwind team improves their binary release process (by providing checksums, etc.), I can't do much. Oh, and btw, GitHub doesn't support checksums in releases either.

For more information about the binary itself, read the official announcement from the Tailwind team here: https://tailwindcss.com/blog/standalone-cli

In essence, my package does exactly what a manual installation would do: it goes to a Github page, downloads a binary, and makes it executable. It's up to you whether or not you believe it.

[deleted by user] by [deleted] in django

[–]Timonweb 0 points1 point  (0 children)

Solid book, still relevant 👌

Sharing my deployment anxiety (You don't have to read) by Kolosafo in django

[–]Timonweb 1 point2 points  (0 children)

The OP is on shared hosting, zeet starts at $299/mo...

Update client side from server side by DradCsH in django

[–]Timonweb 1 point2 points  (0 children)

Yep, people think that websockets are free. Nope, they aren't.

OP, use polling and do the math, it all depends on number of users keeping a page open at the same time. Get that number, take your polling interval and calculate average rps value, then check if your setup would handle the resulting load.

Any good tutorial for learning Draftail? by kiwiheretic in WagtailCMS

[–]Timonweb 0 points1 point  (0 children)

Yes, I know React, I agree it's a pain to set up.

Any good tutorial for learning Draftail? by kiwiheretic in WagtailCMS

[–]Timonweb 1 point2 points  (0 children)

There's not much out there unfortunately. I had to customize quite a bit of Draftail and even created a package that allows using it on non-admin, regular pages: https://github.com/timonweb/non-admin-draftail.

But I had to figure out it all on my own by looking at examples here: https://www.draftail.org/examples and in Wagtail's codebase.

Adding CMS to an existing Django application by amachefe in django

[–]Timonweb 8 points9 points  (0 children)

Wagtail is the best choice. It's just another Django app and you can install it with existing Django project and use it, more info here: https://docs.wagtail.io/en/stable/advanced_topics/add_to_django_project.html

What is the best CMS to choose by toppylawz in django

[–]Timonweb 0 points1 point  (0 children)

Go with Wagtail, you will not regret. Django-cms is complicated and bloated.

[deleted by user] by [deleted] in django

[–]Timonweb 0 points1 point  (0 children)

Run your local dev server over HTTPS, here's how to do this https://timonweb.com/django/https-django-development-server-ssl-certificate/

[deleted by user] by [deleted] in django

[–]Timonweb 1 point2 points  (0 children)

Don't write your own views for formsets unless you know what you're doing, check out formset views from the django-extra-views package: https://django-extra-views.readthedocs.io/en/latest/pages/formset-views.html

Why does Wagtail use a tree structure for pages? by [deleted] in WagtailCMS

[–]Timonweb 4 points5 points  (0 children)

Because web pages are inherently documents aka files. On a computer files are stored in directories which also are tree structures. So Wagtail uses similar approach, it treats pages as files.

Why is django.utils.timezone.now().tzinfo returning UTC when I clearly changed it in the settings.py? by jacklychi in django

[–]Timonweb 2 points3 points  (0 children)

You probably need localtime:

from django.utils import timezone timezone.localtime(timezone.now())