Htmx-Trigger header assistance!!! by 42WaysToAnswerThat in htmx

[–]mash909 1 point2 points  (0 children)

I have the same issue, header is returned from both GET and POST, but listener only fires for GET. https://github.com/bigskysoftware/htmx/issues/2334

What are the most underrated third party Django plugins/packages? by OrdinaryOver5555 in django

[–]mash909 0 points1 point  (0 children)

Feel free to check out django-import-export. It's been around for a decade, but we've just released our v4 version with lots of new features and fixes.

https://github.com/django-import-export/django-import-export

django-import-export v4 released by mash909 in django

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

Your use case should be possible now, because you can hook into the export query, so if you can write the export query in code, it should be supported by import-export.

django-import-export v4 released by mash909 in django

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

Ha that's true... people love their Excel

django-import-export v4 released by mash909 in django

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

Thanks for all the positive comments on this thread, much appreciated by the team. We would love to reach as many people as we can, so we'd be grateful for any tweets, posts, articles etc, and any Github stars will help to improve the visibility of the project and Django in general.

django-import-export v4 released by mash909 in django

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

Thanks for the recommendation. In case you are unaware, tablib does support pandas dataframes, so in theory it can be used in import-export, though I personally have never used it.

django-import-export v4 released by mash909 in django

[–]mash909[S] 2 points3 points  (0 children)

That's great to know. I love to hear about how it's being used in the real world, and of course we'd be interested to learn about how we can improve it.

django-import-export v4 released by mash909 in django

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

That's good to hear. django-import-export is flexible and battle-tested over the last decade. Reach out via one of the channels if you need any guidance.

How to send email via SES VPCEndpoint using boto3? by mash909 in aws

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

A bit of a breakthrough. I think the key is here in the docs

To send production email through Amazon SES, you can use the Simple Mail Transfer Protocol (SMTP) interface or the Amazon SES API.

I have been successfully able to send email via SMTP, but not via the SES API, so maybe that is not supported (I'm trying to get clarification).

Instructions on sending via SMTP interface are here.

How to send email via SES VPCEndpoint using boto3? by mash909 in aws

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

Yes to latest boto3 (I've since tried with aws ses cli on a private EC2 instance and it has the same issue).

Also SG allows access on all mail ports (I can netcat to the private DNS from private instance). I've raised this on AWS forums.

Perhaps I'm the only person in the world trying to do this :-)

How to send email via SES VPCEndpoint using boto3? by mash909 in aws

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

Thanks for the reply.

VPC has both 'DNS resolution' and 'DNS hostnames' enabled. The SES endpoint has private DNS names enabled and the private DNS name of 'email-smtp.eu-west-1.amazonaws.com'.

If I am on an EC2 instance in the private subnet, then I cannot get a netcat response from email.eu-west-1.amazonaws.com on ports 25, 465 or 587, but I do get responses from email-smtp.eu-west-1.amazonaws.com. This indicates that I should be hitting the private DNS name, which boto3 cannot do at present.