Deploying a Flask and Vue App to Heroku with Docker and Gitlab CI
https://testdriven.io/blog/deploying-flask-to-heroku-with-docker-and-gitlab/
/r/flask
https://redd.it/l9e1db
https://testdriven.io/blog/deploying-flask-to-heroku-with-docker-and-gitlab/
/r/flask
https://redd.it/l9e1db
testdriven.io
Deploying a Flask and Vue App to Heroku with Docker and Gitlab CI
This tutorial looks at how to containerize a full-stack web app powered by Flask and Vue and deploy it to Heroku using Gitlab CI.
Does anyone know of any themes that only change the color?
All of the themes I've found completely reformat the notebook. I'm looking for a way to simply make the page dark mode without changing anything else.
Or if anyone knows what changes I can make to the default css file to make the background black. For some reason it doesn't do anything when I change the values.
​
Thanks
/r/JupyterNotebooks
https://redd.it/l9ohri
All of the themes I've found completely reformat the notebook. I'm looking for a way to simply make the page dark mode without changing anything else.
Or if anyone knows what changes I can make to the default css file to make the background black. For some reason it doesn't do anything when I change the values.
​
Thanks
/r/JupyterNotebooks
https://redd.it/l9ohri
reddit
Does anyone know of any themes that only change the color?
All of the themes I've found completely reformat the notebook. I'm looking for a way to simply make the page dark mode without changing anything...
Need help to not make yet another trash article on Medium
Hi all,
Over the last couple of months I've been posting here with some questions regarding background processing in Flask. It's been incredibly helpful and I've now got a working setup sorted running the following:
Flask Application Factory Pattern
Celery and Redis for background tasks
Docker deployment with docker-compose
Azure hosted and connected to Azure SQL Server
Getting Celery sorted took a while and a lot of the information was either not really there, required a lot of digging, was related more to Django than flask or did not go far enough in catering for a production setup of Flask and celery. In particular how to link to Gunicorn, integrations with pytest, and using with the app factory pattern.
To that end, I'd really like to give back a bit and do a bit of a write up on how I got a production ready setup working for flask with the above config, as I genuinely think it would be super useful.
My only concern is that a lot was trial and error. I could definitely use some help in proofreading both the code and some of the DevOps components (Dockerfiles spring to mind) to make sure I'm not putting out bad info.
/r/flask
https://redd.it/l9h3ky
Hi all,
Over the last couple of months I've been posting here with some questions regarding background processing in Flask. It's been incredibly helpful and I've now got a working setup sorted running the following:
Flask Application Factory Pattern
Celery and Redis for background tasks
Docker deployment with docker-compose
Azure hosted and connected to Azure SQL Server
Getting Celery sorted took a while and a lot of the information was either not really there, required a lot of digging, was related more to Django than flask or did not go far enough in catering for a production setup of Flask and celery. In particular how to link to Gunicorn, integrations with pytest, and using with the app factory pattern.
To that end, I'd really like to give back a bit and do a bit of a write up on how I got a production ready setup working for flask with the above config, as I genuinely think it would be super useful.
My only concern is that a lot was trial and error. I could definitely use some help in proofreading both the code and some of the DevOps components (Dockerfiles spring to mind) to make sure I'm not putting out bad info.
/r/flask
https://redd.it/l9h3ky
reddit
Need help to not make yet another trash article on Medium
Hi all, Over the last couple of months I've been posting here with some questions regarding background processing in Flask. It's been...
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code!
/r/Python
https://redd.it/l9pnlk
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code!
/r/Python
https://redd.it/l9pnlk
reddit
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with...
A stock market telegram bot built with python and mongodb
Hey! Good people of reddit. I would like to showcase an intermediate level project I made. So here's a little background, many traders need to know when a certain stock Crosses a threshold for that there are many services and the one I used included 5-6 steps to set one trigger, so I thought that it would be nice if I could have my own bot deployed on a messaging app. Here I have built a telegram bot that allows users to set triggers for stock of their choice.
Users can set triggers for multiple stock and at multiple price points.
I have used the following :
1. yfinance, alpha vantage and telegram api
2. Mongodb
Github link: https://github.com/pratik-choudhari/StockNotify
I have added detailed readme and have kept multiple topics open for contributions. Do check it out😊
I would like hear from you in the comments, good or bad, anything!
/r/Python
https://redd.it/l9b3va
Hey! Good people of reddit. I would like to showcase an intermediate level project I made. So here's a little background, many traders need to know when a certain stock Crosses a threshold for that there are many services and the one I used included 5-6 steps to set one trigger, so I thought that it would be nice if I could have my own bot deployed on a messaging app. Here I have built a telegram bot that allows users to set triggers for stock of their choice.
Users can set triggers for multiple stock and at multiple price points.
I have used the following :
1. yfinance, alpha vantage and telegram api
2. Mongodb
Github link: https://github.com/pratik-choudhari/StockNotify
I have added detailed readme and have kept multiple topics open for contributions. Do check it out😊
I would like hear from you in the comments, good or bad, anything!
/r/Python
https://redd.it/l9b3va
GitHub
GitHub - pratik-choudhari/StockNotify: Easy to deploy stock trigger bot built using python and mongoDB
Easy to deploy stock trigger bot built using python and mongoDB - pratik-choudhari/StockNotify
15x speedup for flask/werkzeug form multipart file upload with bytes.find() and bytes.rindex()
https://github.com/pallets/werkzeug/issues/875#issuecomment-770193486
/r/Python
https://redd.it/l9t88h
https://github.com/pallets/werkzeug/issues/875#issuecomment-770193486
/r/Python
https://redd.it/l9t88h
GitHub
werkzeug.formparser is really slow with large binary uploads · Issue #875 · pallets/werkzeug
When I perform a multipart/form-data upload of any large binary file in Flask, those uploads are very easily CPU bound (with Python consuming 100% CPU) instead of I/O bound on any reasonably fast n...
How do you organize your Settings.py file to keep it clean?
My settings.py file is quickly growing in length and it is making it hard to maintain, add, or remove code. How should I go about cleaning it up and keeping the whole file clean? I was thinking of chopping it up into multiple files, but I am not sure of a good structure or organizational architecture for it.
I was thinking about taking all the one line variables that are being set and maybe putting them in their own files and keeping it clean that way or something like that. What do you guys think? What do you guys do? How do you keep your code clean and maintainable?
/r/django
https://redd.it/l9s3r4
My settings.py file is quickly growing in length and it is making it hard to maintain, add, or remove code. How should I go about cleaning it up and keeping the whole file clean? I was thinking of chopping it up into multiple files, but I am not sure of a good structure or organizational architecture for it.
I was thinking about taking all the one line variables that are being set and maybe putting them in their own files and keeping it clean that way or something like that. What do you guys think? What do you guys do? How do you keep your code clean and maintainable?
/r/django
https://redd.it/l9s3r4
reddit
How do you organize your Settings.py file to keep it clean?
My settings.py file is quickly growing in length and it is making it hard to maintain, add, or remove code. How should I go about cleaning it up...
Developer Ecosystem Survey 2021
https://surveys.jetbrains.com/s3/developer-ecosystem-survey-2021-sh?pcode=502436299808323392
/r/django
https://redd.it/l9tr5s
https://surveys.jetbrains.com/s3/developer-ecosystem-survey-2021-sh?pcode=502436299808323392
/r/django
https://redd.it/l9tr5s
Jetbrains
Developer Ecosystem Survey 2021
Share your coding expertise with the professional community. Take part in the survey, win prizes, and get personalized your results.
#DevEcosystem2021
#DevEcosystem2021
Should data be present in Docker-containerized db after applying migrations?
Been struggling with this for about a week now, and I’m probably not googling the right keywords.
I’m new to both django and docker. I’m able to stand up my web app and connect it to the Postgres db I created via docker-compose (db is created as a volume) but I’m running into a problem when I try to access data that should be on the db.
The behavior that confuses me:
If I navigate to localhost:8000 and try the “search” functionality (essentially should just be searching for the query within the db) before applying migrations I see in the logs two things:
1. The database logs trying to query the specific tables
2. Web app returns an error because those tables do not exist yet (need to apply migrations)
I also see the page error out. This is completely expected behavior IMO.
If I try this again after applying migrations (either manually or via an entry point) this is what I see:
1. The web app logs the GET requests of me navigating to the search page and my search query after I hit enter on the search page
2. Nothing is logged for the db container - shouldnt it still query the tables
/r/djangolearning
https://redd.it/l9r781
Been struggling with this for about a week now, and I’m probably not googling the right keywords.
I’m new to both django and docker. I’m able to stand up my web app and connect it to the Postgres db I created via docker-compose (db is created as a volume) but I’m running into a problem when I try to access data that should be on the db.
The behavior that confuses me:
If I navigate to localhost:8000 and try the “search” functionality (essentially should just be searching for the query within the db) before applying migrations I see in the logs two things:
1. The database logs trying to query the specific tables
2. Web app returns an error because those tables do not exist yet (need to apply migrations)
I also see the page error out. This is completely expected behavior IMO.
If I try this again after applying migrations (either manually or via an entry point) this is what I see:
1. The web app logs the GET requests of me navigating to the search page and my search query after I hit enter on the search page
2. Nothing is logged for the db container - shouldnt it still query the tables
/r/djangolearning
https://redd.it/l9r781
reddit
Should data be present in Docker-containerized db after applying...
Been struggling with this for about a week now, and I’m probably not googling the right keywords. I’m new to both django and docker. I’m able to...
Django security releases issued: 3.1.6, 3.0.12, and 2.2.18
https://www.djangoproject.com/weblog/2021/feb/01/security-releases/
/r/django
https://redd.it/l9zjex
https://www.djangoproject.com/weblog/2021/feb/01/security-releases/
/r/django
https://redd.it/l9zjex
reddit
Django security releases issued: 3.1.6, 3.0.12, and 2.2.18
Posted in r/django by u/dwaxe • 4 points and 1 comment
The Unexpected Find That Freed 20GB of Unused Index Space
https://hakibenita.com/postgresql-unused-index-size
/r/django
https://redd.it/la425l
https://hakibenita.com/postgresql-unused-index-size
/r/django
https://redd.it/la425l
Hakibenita
The Unexpected Find That Freed 20GB of Unused Index Space
How to free space without dropping indexes or deleting data
I’m creating a Django portfolio to both build experience and become a better programmer and was looking for suggestions/tips/tools etc I can incorporate?
The idea here is to start by building a simple personal portfolio that includes apps for an about me page, a projects page, a blog and a ‘versions’ section which will keep note of my progress and modifications.
So far I’ve built out the about me, projects and blog apps using Python, JS and Bootstrap. I would like to continue adding new apps that are built with new concepts, tools and languages. For instance, what I plan on adding next is a Todo app built with React.
I’m looking for any suggestions as far as future apps I can build that can be implemented well with Django and Python. For example, developing a section built with TypeScript or another functional programming language.
Aside from new languages & tools, I’m also looking for general ideas that will test my knowledge and teach me new skills.
I appreciate any feedback or leaning tips that can be provided!
/r/django
https://redd.it/laa3ti
The idea here is to start by building a simple personal portfolio that includes apps for an about me page, a projects page, a blog and a ‘versions’ section which will keep note of my progress and modifications.
So far I’ve built out the about me, projects and blog apps using Python, JS and Bootstrap. I would like to continue adding new apps that are built with new concepts, tools and languages. For instance, what I plan on adding next is a Todo app built with React.
I’m looking for any suggestions as far as future apps I can build that can be implemented well with Django and Python. For example, developing a section built with TypeScript or another functional programming language.
Aside from new languages & tools, I’m also looking for general ideas that will test my knowledge and teach me new skills.
I appreciate any feedback or leaning tips that can be provided!
/r/django
https://redd.it/laa3ti
reddit
I’m creating a Django portfolio to both build experience and...
The idea here is to start by building a simple personal portfolio that includes apps for an about me page, a projects page, a blog and a...
A list of 30 Python language tricks
I wrote this article, 30 Python Language Tricks, on Medium. it's a "friend link" which bypasses the paywall. It contains a wide selection of topics, for both beginners and more advanced level programmers. Enjoy and let me know if you liked it!
/r/Python
https://redd.it/la04qd
I wrote this article, 30 Python Language Tricks, on Medium. it's a "friend link" which bypasses the paywall. It contains a wide selection of topics, for both beginners and more advanced level programmers. Enjoy and let me know if you liked it!
/r/Python
https://redd.it/la04qd
Medium
30 Python Language Tricks That Will Make You a Better Coder
If you think you mastered the language, you’ve got to read this
Django & React Tutorial For Beginners #3 : Configure CORS Headers And Django REST Framework
https://youtu.be/Co-bXuanfP0
/r/django
https://redd.it/la5kcn
https://youtu.be/Co-bXuanfP0
/r/django
https://redd.it/la5kcn
YouTube
Django & React Tutorial For Beginners #3 : Configure CORS Headers And Django REST Framework
@Okay Dexter
#fullstack #django #react #javascript #beginners #corspolicy #restapi
In this video we'll cover the installation & configuration of Django CORS headers & Django REST Framework.
Django REST Framework link : https://www.django-rest-framework.org/…
#fullstack #django #react #javascript #beginners #corspolicy #restapi
In this video we'll cover the installation & configuration of Django CORS headers & Django REST Framework.
Django REST Framework link : https://www.django-rest-framework.org/…
Python Rich - My favorite way to add Colors, Emojis, Tables and More...
https://www.youtube.com/watch?v=JrGFQp9njas
/r/Python
https://redd.it/laaz60
https://www.youtube.com/watch?v=JrGFQp9njas
/r/Python
https://redd.it/laaz60
YouTube
Python Rich - The BEST way to add Colors, Emojis, Tables and More...
In this video, I go over my Favorite Python Module - Python Rich. Python Rich allows you to add color, emojis, tables, progress bars, and more to your python application.
Official Github: https://github.com/willmcgugan/rich
☕ Buy me a coffee: https://…
Official Github: https://github.com/willmcgugan/rich
☕ Buy me a coffee: https://…
Tuesday Daily Thread: Advanced questions
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/lai6i5
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/lai6i5
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Flask or MERN for auction-like web applications?
I have experience with both Flask and MERN and there's a client who wants to create a web application for users to sell and bid on other products. Is there a better option between Flask and MERN for a robust web app like this? Do you have other recommendation regarding anything else related?
Thank you so much in advance:)
/r/flask
https://redd.it/la39qp
I have experience with both Flask and MERN and there's a client who wants to create a web application for users to sell and bid on other products. Is there a better option between Flask and MERN for a robust web app like this? Do you have other recommendation regarding anything else related?
Thank you so much in advance:)
/r/flask
https://redd.it/la39qp
reddit
Flask or MERN for auction-like web applications?
I have experience with both Flask and MERN and there's a client who wants to create a web application for users to sell and bid on other products....
Hey Reddit, here's my comprehensive course on Python Pandas, for free.
The course is called Python Pandas For Your Grandpa - So easy your grandpa could learn it. (It's the successor to Python NumPy For Your Grandma.)
## Course Curriculum
1. Introduction
1.1 Introduction
2. Series
2.1 Series Creation
2.2 Series Basic Indexing
2.3 Series Basic Operations
2.4 Series Boolean Indexing
2.5 Series Missing Values
2.6 Series Vectorization
2.7 Series `apply()`
2.8 Series View vs Copy
2.9 Challenge: Baby Names
2.10 Challenge: Bees Knees
2.11 Challenge: Car Shopping
2.12 Challenge: Price Gouging
2.13 Challenge: Fair Teams
3. DataFrame
3.1 DataFrame Creation
3.2 DataFrame To And From CSV
3.3 DataFrame Basic Indexing
3.4 DataFrame Basic Operations
3.5 DataFrame `apply()`
3.6 DataFrame View vs Copy
3.7 DataFrame `merge()`
3.8 DataFrame Aggregation
3.9 DataFrame `groupby()`
3.10 Challenge: Hobbies
3.11
/r/Python
[https://redd.it/lain0r
The course is called Python Pandas For Your Grandpa - So easy your grandpa could learn it. (It's the successor to Python NumPy For Your Grandma.)
## Course Curriculum
1. Introduction
1.1 Introduction
2. Series
2.1 Series Creation
2.2 Series Basic Indexing
2.3 Series Basic Operations
2.4 Series Boolean Indexing
2.5 Series Missing Values
2.6 Series Vectorization
2.7 Series `apply()`
2.8 Series View vs Copy
2.9 Challenge: Baby Names
2.10 Challenge: Bees Knees
2.11 Challenge: Car Shopping
2.12 Challenge: Price Gouging
2.13 Challenge: Fair Teams
3. DataFrame
3.1 DataFrame Creation
3.2 DataFrame To And From CSV
3.3 DataFrame Basic Indexing
3.4 DataFrame Basic Operations
3.5 DataFrame `apply()`
3.6 DataFrame View vs Copy
3.7 DataFrame `merge()`
3.8 DataFrame Aggregation
3.9 DataFrame `groupby()`
3.10 Challenge: Hobbies
3.11
/r/Python
[https://redd.it/lain0r
Gormanalysis
Python Pandas For Your Grandpa
Python Pandas For Your Grandpa Wanna learn Pandas? I did. And I consolidated everything I learned into a 43 videos spanning roughly three hours of content, including 23 lecture videos (~2 hrs) and 20 challenge videos (~1 hr).
Now available in written format…
Now available in written format…
🚀 Building a startup in 1 month with Django/Vue.js! (Daily Vlogs)
https://youtu.be/keG9vjTJGU0
/r/django
https://redd.it/laj5fb
https://youtu.be/keG9vjTJGU0
/r/django
https://redd.it/laj5fb
YouTube
Let's build a Social Network in 1 month (Day 1/28)
tech stack - nuxt.js(vue.js) / django / postgres
code: https://gitlab.com/isaacjoy/chitter.chat
time spent: 2 hours
code: https://gitlab.com/isaacjoy/chitter.chat
time spent: 2 hours