My Infrastructure as Code Rosetta Stone - Deploying the same Django web application on AWS ECS Fargate with CDK, Terraform and Pulumi
https://briancaffey.github.io/2023/01/07/i-deployed-the-same-containerized-serverless-django-app-with-aws-cdk-terraform-and-pulumi/
/r/django
https://redd.it/105w9jf
https://briancaffey.github.io/2023/01/07/i-deployed-the-same-containerized-serverless-django-app-with-aws-cdk-terraform-and-pulumi/
/r/django
https://redd.it/105w9jf
briancaffey.github.io
My Infrastructure as Code Rosetta Stone - Deploying the same web application on AWS ECS Fargate with CDK, Terraform and Pulumi
Three reusable infrastructure as code libraries for abstracting containerized web app architecture on AWS ECS
Released a new update for my visual website builder, looking for some feedback!
https://reddit.com/link/105pm8v/video/slfg8d1cnmaa1/player
We posted in here a few months ago and got some awesome reception for our project, Nimbus. We're excited to announce the latest update to Nimbus, our visual website builder that exports to perfect React code (and more coming soon!). Built with Django, Nimbus makes it easy for developers of all levels to create and maintain professional websites.
With this update, we've added a couple of new features that we think users will find useful. First up, we've improved the user interface to make it even easier to use. We've also added one click previews, which allow you to see what your site will look like without having to constantly export. This should save you some time and make the building process even smoother.
The next thing we're going to work on is adding custom code so you never have to leave Nimbus when building a site. You'll be able to add custom functions, API calls, etc. right from Nimbus! It will take some time to develop but it's going to be awesome.
We hope you find these updates useful. As always, we appreciate your feedback and suggestions and feel free to ask me questions about how it works, I'm
/r/django
https://redd.it/105pm8v
https://reddit.com/link/105pm8v/video/slfg8d1cnmaa1/player
We posted in here a few months ago and got some awesome reception for our project, Nimbus. We're excited to announce the latest update to Nimbus, our visual website builder that exports to perfect React code (and more coming soon!). Built with Django, Nimbus makes it easy for developers of all levels to create and maintain professional websites.
With this update, we've added a couple of new features that we think users will find useful. First up, we've improved the user interface to make it even easier to use. We've also added one click previews, which allow you to see what your site will look like without having to constantly export. This should save you some time and make the building process even smoother.
The next thing we're going to work on is adding custom code so you never have to leave Nimbus when building a site. You'll be able to add custom functions, API calls, etc. right from Nimbus! It will take some time to develop but it's going to be awesome.
We hope you find these updates useful. As always, we appreciate your feedback and suggestions and feel free to ask me questions about how it works, I'm
/r/django
https://redd.it/105pm8v
How do I "flatten" a nested serializer in DRF?
We have a nested serializer that we would like to "flatten". But I'm not having much luck finding how to achieve this in the docs.
Here is the current output.
{
"user_inventory": "UOHvaxFa11R5Z0bPYuihP0RKocn2",
"quantity": 1,
"player": {
"card_id": "c69c0808328fdc3e3f3ee8b9b7d4a7f8",
"game": "MLB The Show 22",
"name": "Jesus Tinoco",
"all_positions": [
"CP"
]
}
}
Here is what I'd like:
{
"user_inventory": "UOHvaxFa11R5Z0bPYuihP0RKocn2",
"quantity": 1,
"card_id": "c69c0808328fdc3e3f3ee8b9b7d4a7f8",
"game": "MLB
/r/django
https://redd.it/1061nro
We have a nested serializer that we would like to "flatten". But I'm not having much luck finding how to achieve this in the docs.
Here is the current output.
{
"user_inventory": "UOHvaxFa11R5Z0bPYuihP0RKocn2",
"quantity": 1,
"player": {
"card_id": "c69c0808328fdc3e3f3ee8b9b7d4a7f8",
"game": "MLB The Show 22",
"name": "Jesus Tinoco",
"all_positions": [
"CP"
]
}
}
Here is what I'd like:
{
"user_inventory": "UOHvaxFa11R5Z0bPYuihP0RKocn2",
"quantity": 1,
"card_id": "c69c0808328fdc3e3f3ee8b9b7d4a7f8",
"game": "MLB
/r/django
https://redd.it/1061nro
reddit
How do I "flatten" a nested serializer in DRF?
We have a nested serializer that we would like to "flatten". But I'm not having much luck finding how to achieve this in the docs. Here is the...
How do you guys host your Django apps?
Hey guys, I recently picked up Django and just finished my first small web app. I ended up hosting it on Digital Ocean App Platform but had trouble setting up a cron job to run some scripts periodically (app platform doesn't have crontab and you can't install it with apt-get).
To avoid such issues down the line I'm considering switching to another platform for hosting. What platforms have you guys had success with and would recommend?
/r/django
https://redd.it/105mcot
Hey guys, I recently picked up Django and just finished my first small web app. I ended up hosting it on Digital Ocean App Platform but had trouble setting up a cron job to run some scripts periodically (app platform doesn't have crontab and you can't install it with apt-get).
To avoid such issues down the line I'm considering switching to another platform for hosting. What platforms have you guys had success with and would recommend?
/r/django
https://redd.it/105mcot
reddit
How do you guys host your Django apps?
Hey guys, I recently picked up Django and just finished my first small web app. I ended up hosting it on Digital Ocean App Platform but had...
Family Tree
Hello guys, I wanted to create a little project for myself. I wanted to create different interactive family trees (ex.: Simpsons, Game of Thrones, Naruto , etc). Could find any resources of where and how to start. Are they any tips you could give me?
/r/django
https://redd.it/105y7co
Hello guys, I wanted to create a little project for myself. I wanted to create different interactive family trees (ex.: Simpsons, Game of Thrones, Naruto , etc). Could find any resources of where and how to start. Are they any tips you could give me?
/r/django
https://redd.it/105y7co
reddit
Family Tree
Hello guys, I wanted to create a little project for myself. I wanted to create different interactive family trees (ex.: Simpsons, Game of Thrones,...
Error with docker and heroku hosting
Hello everyone, I'm trying to build a django app and host it on heroku & my home server using docker, I build a new one with truenas scale, when I'm trying to push the files to heroku the error "App not compatible with buildpack" comes and I don't know why and no tutorial worked with me, same thing with docker not working with me and just gives errors, I creat requirements.txt and still errors, help me please
/r/django
https://redd.it/105y5g4
Hello everyone, I'm trying to build a django app and host it on heroku & my home server using docker, I build a new one with truenas scale, when I'm trying to push the files to heroku the error "App not compatible with buildpack" comes and I don't know why and no tutorial worked with me, same thing with docker not working with me and just gives errors, I creat requirements.txt and still errors, help me please
/r/django
https://redd.it/105y5g4
reddit
Error with docker and heroku hosting
Hello everyone, I'm trying to build a django app and host it on heroku & my home server using docker, I build a new one with truenas scale, when...
Any free apps that allow custom html page creation?
I am looking for a way to create new pages in my django project through the admin panel. So I will log into admin panel and go to the section to create a new page. I will put in the title to the page and then be given a text area where I can put HTML or possibly have a WYSIWYG editor. After I save then it will create a new html page. Then I add the page to my header and it navigates to it.
Sort of like a blog but I am making new web pages instead of posts.
This is to prevent me from having to manually create a new html file in the server and make changes to it. I want to be able to handle it all from the Django admin panel.
/r/django
https://redd.it/105vkd9
I am looking for a way to create new pages in my django project through the admin panel. So I will log into admin panel and go to the section to create a new page. I will put in the title to the page and then be given a text area where I can put HTML or possibly have a WYSIWYG editor. After I save then it will create a new html page. Then I add the page to my header and it navigates to it.
Sort of like a blog but I am making new web pages instead of posts.
This is to prevent me from having to manually create a new html file in the server and make changes to it. I want to be able to handle it all from the Django admin panel.
/r/django
https://redd.it/105vkd9
reddit
Any free apps that allow custom html page creation?
I am looking for a way to create new pages in my django project through the admin panel. So I will log into admin panel and go to the section to...
All authentication errors from djoser and and simplejwt, how can get them?
We're working on our product and now we need to show these authentication errors to our users (and since our product is bilingual, we may go through some translations and stuff.
I searched a lot and most of the results were dedicated to how to resolve the auth error and not a well-crafted list of those errors. Is there any list of django, djoser and simplejwt errors?
Thanks.
/r/django
https://redd.it/105kqh9
We're working on our product and now we need to show these authentication errors to our users (and since our product is bilingual, we may go through some translations and stuff.
I searched a lot and most of the results were dedicated to how to resolve the auth error and not a well-crafted list of those errors. Is there any list of django, djoser and simplejwt errors?
Thanks.
/r/django
https://redd.it/105kqh9
reddit
All authentication errors from djoser and and simplejwt, how can...
We're working on our product and now we need to show these authentication errors to our users (and since our product is bilingual, we may go...
Djnago chess app, won’t update page ws/game/room_code not found. Do i need another packages then websocket, channels-redis for this?
/r/django
https://redd.it/106fgqb
/r/django
https://redd.it/106fgqb
Search-as-you-type in Django/Django Rest Framework, how would you implement it?
I'm currently exploring a lower level stuff (sockets etc.) as I assume the best way would be to send a request with the `Connection: keep-alive` header and reuse that connection instead of opening and closing one for each character, however it looks like that's not so simple as there is no support for the `Keep-Alive` header in Gunicorn (at least for sync workers). Another idea is to use Django-Channels and WebSocket (although it doesn't make sense as my app won't be listening/waiting for anything other than a single response), is there any good resource about this problem (Keep-Alive, setting async workers, using async workers for a specific endpoint etc.) in relation to Django/Gunicorn?
I also have a different question, how would that look like (let's say I'm going with WebSocket) on a single CPU VPS what's going on when let's say 80 users wants to use my app at the same time, I guess it is Django-Channels (Daphne) responsibility to open as many sockets as it needs and if there are too many they will just process requests/responses very slowly, but what about memory, how much does it consumes and does it just crashes if there are too many
/r/djangolearning
https://redd.it/10636ad
I'm currently exploring a lower level stuff (sockets etc.) as I assume the best way would be to send a request with the `Connection: keep-alive` header and reuse that connection instead of opening and closing one for each character, however it looks like that's not so simple as there is no support for the `Keep-Alive` header in Gunicorn (at least for sync workers). Another idea is to use Django-Channels and WebSocket (although it doesn't make sense as my app won't be listening/waiting for anything other than a single response), is there any good resource about this problem (Keep-Alive, setting async workers, using async workers for a specific endpoint etc.) in relation to Django/Gunicorn?
I also have a different question, how would that look like (let's say I'm going with WebSocket) on a single CPU VPS what's going on when let's say 80 users wants to use my app at the same time, I guess it is Django-Channels (Daphne) responsibility to open as many sockets as it needs and if there are too many they will just process requests/responses very slowly, but what about memory, how much does it consumes and does it just crashes if there are too many
/r/djangolearning
https://redd.it/10636ad
reddit
Search-as-you-type in Django/Django Rest Framework, how would you...
I'm currently exploring a lower level stuff (sockets etc.) as I assume the best way would be to send a request with the \`Connection: keep-alive\`...
Django SASS not updating custom bootstrap (development env)
I'm using django-compressor and django-libsass and have setup a scss file in mysite/static/theme/mytheme.scss
Inside the file I'm changing the primary colour to red for testing.
I'm using Wagtail so it's a multiple site but in my base.html I've added
````
{% compress css %}
<link rel="stylesheet" type="text/x-scss" href="{% static 'theme/' %}{{ current_site.site_name }}.scss" />
{% endcompress %}
````
It used to refresh automatically when I made any changes in mytheme.scss and everything used to work fine but it stopped working and I have a feeling it's when I ran collectstatic.
If I delete the static folder in the root directory it just generated the same CSS file in static/CACHE/css, the css file in there has old CSS in there that isn't updating.
I've tried:
python manage.py collectstatic --clear
python manage.py runserver --nostatic
python manage.py collectstatic --noinput --clear
python manage.py collectstatic --noinput --clear --no-post-process
I've also tried to collectstatic again in hopes it'll collect the changes but it doesn't.
I'm pretty new to this but hopefully that all makes sense.
/r/djangolearning
https://redd.it/1068r88
I'm using django-compressor and django-libsass and have setup a scss file in mysite/static/theme/mytheme.scss
Inside the file I'm changing the primary colour to red for testing.
I'm using Wagtail so it's a multiple site but in my base.html I've added
````
{% compress css %}
<link rel="stylesheet" type="text/x-scss" href="{% static 'theme/' %}{{ current_site.site_name }}.scss" />
{% endcompress %}
````
It used to refresh automatically when I made any changes in mytheme.scss and everything used to work fine but it stopped working and I have a feeling it's when I ran collectstatic.
If I delete the static folder in the root directory it just generated the same CSS file in static/CACHE/css, the css file in there has old CSS in there that isn't updating.
I've tried:
python manage.py collectstatic --clear
python manage.py runserver --nostatic
python manage.py collectstatic --noinput --clear
python manage.py collectstatic --noinput --clear --no-post-process
I've also tried to collectstatic again in hopes it'll collect the changes but it doesn't.
I'm pretty new to this but hopefully that all makes sense.
/r/djangolearning
https://redd.it/1068r88
Reddit
Django SASS not updating custom bootstrap (development env)
4 votes and 2 comments so far on Reddit
This media is not supported in your browser
VIEW IN TELEGRAM
i built the ultimate django rest authentication system including all features and more ... with all validation , also registeration with a code verfication via email and also authentication via email and facebook , if anybody need it just dm me
https://redd.it/105t6ko
@pythondaily
https://redd.it/105t6ko
@pythondaily
Cargo Shipping(export/import)
Hello good morning.i have this project i'm developing and its about exporting and importing like usps/dhl/ups. i have a feature that i want to add but i'm having an issue combining how it will work.
what i want is that i wan after a user to be able to track the list of items in their order like when a user has taken the items to be sent to another country, a shipping record should be created with tarcking number on it, and once a user clicks on that record on their dashboard, it should display all the items on that shipping on another page. and how can one add multiple items to an order using django forms. thats the issue i have and need clarity on. i'm using mvt.
/r/djangolearning
https://redd.it/104r44w
Hello good morning.i have this project i'm developing and its about exporting and importing like usps/dhl/ups. i have a feature that i want to add but i'm having an issue combining how it will work.
what i want is that i wan after a user to be able to track the list of items in their order like when a user has taken the items to be sent to another country, a shipping record should be created with tarcking number on it, and once a user clicks on that record on their dashboard, it should display all the items on that shipping on another page. and how can one add multiple items to an order using django forms. thats the issue i have and need clarity on. i'm using mvt.
/r/djangolearning
https://redd.it/104r44w
reddit
Cargo Shipping(export/import)
Hello good morning.i have this project i'm developing and its about exporting and importing like usps/dhl/ups. i have a feature that i want to add...
A question about mqtt
I used apps.py in one of my applications to spawn a worker that connects to mqtt broker and offload messages to a channel layer. Is this a good approach? It works and everything, I just want to know if it has hidden issues. Check my reply if you want more information.
/r/djangolearning
https://redd.it/104db85
I used apps.py in one of my applications to spawn a worker that connects to mqtt broker and offload messages to a channel layer. Is this a good approach? It works and everything, I just want to know if it has hidden issues. Check my reply if you want more information.
/r/djangolearning
https://redd.it/104db85
reddit
A question about mqtt
I used apps.py in one of my applications to spawn a worker that connects to mqtt broker and offload messages to a channel layer. Is this a good...
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/1063vg5
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/1063vg5
reddit
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
I created my own discord bot, which has multiple functions including AI(OpenAI API)!
Hi Not much really, I just made a discord bot that has multiple functions and can be fun for small discord servers and stuff(please self host lmao, the replit server is using the free tier and can't handle too many requests).
The features include:
1. chat with you, and answer all your questions.
2. allows you to create custom embeds.
3. allows you to create ascii art from your text.
4. can show the location of the iss.
5. show server member count(Commented out in code, cuz its pretty useless).
6. Show discord server information.
7. can digitally fake punch you.
8. can digitally fake kick you.
9. can digitally fake ban you.
10. do advanced level math, trigonometry & quadratic functions.
​
The source code here available here: https://replit.com/@SapphireKR/Robob-MK-II#main.py
if you would like to show support for my work, you can watch my youtube video demonstrating my bot here: https://www.youtube.com/watch?v=ybRPwztyOEs
and also sub to my channel if you can I guess ¯\\_(ツ)_/¯
​
Also don't forget, if you want to use the bot you will have to host it yourself on replit, since the current replit server I'm using is in the free tier and can't handle that many requests
and of course please generate your own api keys(forking won't take my api keys just
/r/Python
https://redd.it/106grra
Hi Not much really, I just made a discord bot that has multiple functions and can be fun for small discord servers and stuff(please self host lmao, the replit server is using the free tier and can't handle too many requests).
The features include:
1. chat with you, and answer all your questions.
2. allows you to create custom embeds.
3. allows you to create ascii art from your text.
4. can show the location of the iss.
5. show server member count(Commented out in code, cuz its pretty useless).
6. Show discord server information.
7. can digitally fake punch you.
8. can digitally fake kick you.
9. can digitally fake ban you.
10. do advanced level math, trigonometry & quadratic functions.
​
The source code here available here: https://replit.com/@SapphireKR/Robob-MK-II#main.py
if you would like to show support for my work, you can watch my youtube video demonstrating my bot here: https://www.youtube.com/watch?v=ybRPwztyOEs
and also sub to my channel if you can I guess ¯\\_(ツ)_/¯
​
Also don't forget, if you want to use the bot you will have to host it yourself on replit, since the current replit server I'm using is in the free tier and can't handle that many requests
and of course please generate your own api keys(forking won't take my api keys just
/r/Python
https://redd.it/106grra
replit
Robob MK II
Just code for my discord bot, hosted aswell.
Optimizing our longest nightly job — a story of sessions, complexity, and toilets #SQLAlchemy #Performance
https://medium.com/alan/blog-post-optimizing-our-longest-nightly-job-a-story-of-sessions-complexity-and-toilets-750ef4dfaa51
/r/Python
https://redd.it/106fxa6
https://medium.com/alan/blog-post-optimizing-our-longest-nightly-job-a-story-of-sessions-complexity-and-toilets-750ef4dfaa51
/r/Python
https://redd.it/106fxa6
Medium
Optimizing our longest nightly job — a story of sessions, complexity, and toilets
Last year, James (the founding father of the Alan claim engine) shared some details about how the engine works, its requirements and…
SteamGiftBot: Automation of taking part in various distributions.
https://github.com/PalmaLuv/SteamGiftBot
/r/Python
https://redd.it/106hzx0
https://github.com/PalmaLuv/SteamGiftBot
/r/Python
https://redd.it/106hzx0
GitHub
GitHub - PalmaLuv/SteamGiftBot: Software to automate YOUR actions on SteamGift site, turn it on and enjoy it.
Software to automate YOUR actions on SteamGift site, turn it on and enjoy it. - PalmaLuv/SteamGiftBot
Why are Notifications so much work to do in Django?
Notifications seems like a basic requirement that most apps need. I know base Django is supposed to be cleaner/unopinionated but there isn't even a complete package for something this fundamental. For example, Django itself offers little in the way of authentication too but, the AllAuth package takes care of it. Whereas, notifications seems neglected. Plus, other frameworks do address this e.g. https://laravel.com/docs/9.x/notifications .
My team and I have just put dozens of man hours into building a notifications Django app for our Django project. It consists of a Notification model (heavily inspired by this https://github.com/django-notifications/django-notifications) and we've added ways to send notifications, manage which models & which events create notifications and ways for users to manage their preferences.
While django-notifications is a great start and quite popular (1.5k stars) it even says "Sending email to users has not been integrated into this library. So for now you need to implement it if needed". So it's planned but still incomplete. It also offers nothing in the way of controlling which of your models create notifications nor for which event/verb and includes nothing regarding user preferences.
Sorry for the rant, its just what I am wondering is, am I missing something? I guess I
/r/django
https://redd.it/106ll8m
Notifications seems like a basic requirement that most apps need. I know base Django is supposed to be cleaner/unopinionated but there isn't even a complete package for something this fundamental. For example, Django itself offers little in the way of authentication too but, the AllAuth package takes care of it. Whereas, notifications seems neglected. Plus, other frameworks do address this e.g. https://laravel.com/docs/9.x/notifications .
My team and I have just put dozens of man hours into building a notifications Django app for our Django project. It consists of a Notification model (heavily inspired by this https://github.com/django-notifications/django-notifications) and we've added ways to send notifications, manage which models & which events create notifications and ways for users to manage their preferences.
While django-notifications is a great start and quite popular (1.5k stars) it even says "Sending email to users has not been integrated into this library. So for now you need to implement it if needed". So it's planned but still incomplete. It also offers nothing in the way of controlling which of your models create notifications nor for which event/verb and includes nothing regarding user preferences.
Sorry for the rant, its just what I am wondering is, am I missing something? I guess I
/r/django
https://redd.it/106ll8m
Laravel
Notifications - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.