what is the best way to deploy to a server safely?
is deploying with docker the best way to deploy from your computer to a digital ocean instance?
the reason I ask is because I noticed that when I deploy my code just by pulling it from github on the server and try to pip install everything I often end up with packages that don't have equivalence in ubuntu or package clashes or things that I did not foresee happening when I was deploying and I have to figure them out and fix them in the instance.
I think if I add docker to my projects it would just add another layer of complexity to debug, but I dont know how else to make deployment easy and simple so it always works.
I dont want to use heroku either because they charge an arm and a leg.
anyone have any ideas?
/r/django
https://redd.it/12x5l7o
is deploying with docker the best way to deploy from your computer to a digital ocean instance?
the reason I ask is because I noticed that when I deploy my code just by pulling it from github on the server and try to pip install everything I often end up with packages that don't have equivalence in ubuntu or package clashes or things that I did not foresee happening when I was deploying and I have to figure them out and fix them in the instance.
I think if I add docker to my projects it would just add another layer of complexity to debug, but I dont know how else to make deployment easy and simple so it always works.
I dont want to use heroku either because they charge an arm and a leg.
anyone have any ideas?
/r/django
https://redd.it/12x5l7o
Reddit
r/django on Reddit: what is the best way to deploy to a server safely?
Posted by u/warrior242 - 10 votes and 7 comments
Do you guys use Chat GPT to code? If so, what do you make?
I have been completely blown away with chat GPT. I'm basically a noob, but I am curious how common it is amongst serious coders. Also what kind of stuff are you guys creating with chat GPT? I've created a few programs that I am really proud of, and that I don't think I ever would've been able to code myself. I have noticed that chat GPT makes a lot of mistakes though, and I actually stayed up till like six in the morning one night trying to get it to write something correctly and it never did… I'm sure if I was a better coder I'd be better at correcting chat GPT... But it is still pretty amazing.
/r/Python
https://redd.it/12wsx2g
I have been completely blown away with chat GPT. I'm basically a noob, but I am curious how common it is amongst serious coders. Also what kind of stuff are you guys creating with chat GPT? I've created a few programs that I am really proud of, and that I don't think I ever would've been able to code myself. I have noticed that chat GPT makes a lot of mistakes though, and I actually stayed up till like six in the morning one night trying to get it to write something correctly and it never did… I'm sure if I was a better coder I'd be better at correcting chat GPT... But it is still pretty amazing.
/r/Python
https://redd.it/12wsx2g
Reddit
r/Python on Reddit: Do you guys use Chat GPT to code? If so, what do you make?
Posted by u/holymountaincacti - 33 votes and 101 comments
Swagger for Django api
Hi, I’m building a basic api while learning the Django framework and wanted to know how to add swagger to document it. Almost all tutorials I see has a reference to the Django test framework, but I’m building a small api that just returns a json. Can somebody provide some insight into this or point me in the right direction?
/r/django
https://redd.it/12x52sd
Hi, I’m building a basic api while learning the Django framework and wanted to know how to add swagger to document it. Almost all tutorials I see has a reference to the Django test framework, but I’m building a small api that just returns a json. Can somebody provide some insight into this or point me in the right direction?
/r/django
https://redd.it/12x52sd
Reddit
r/django on Reddit: Swagger for Django api
Posted by u/godspeedone - 3 votes and 4 comments
Is it possible to make multiple Django apps a single project run on separate ports instead of paths?
/r/django
https://redd.it/12xp61x
/r/django
https://redd.it/12xp61x
Reddit
r/django on Reddit: Is it possible to make multiple Django apps a single project run on separate ports instead of paths?
Posted by u/approaching77 - No votes and 1 comment
Help solving IOPub data rate error
I received an 'IOPub message rate exceeded" error when running a built-in trackpy function. All information online says "the problem was fixed when launching jupyter with "jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000". What does this mean? How do I do this? (I have zero knowledge of jupyter but I have to use it for a project)
I tried to run it from CMD but it just said that jupyter is not recognised as an internal or external command etc...
I'm using jupyter through anaconda 3.
/r/JupyterNotebooks
https://redd.it/12xpsfm
I received an 'IOPub message rate exceeded" error when running a built-in trackpy function. All information online says "the problem was fixed when launching jupyter with "jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000". What does this mean? How do I do this? (I have zero knowledge of jupyter but I have to use it for a project)
I tried to run it from CMD but it just said that jupyter is not recognised as an internal or external command etc...
I'm using jupyter through anaconda 3.
/r/JupyterNotebooks
https://redd.it/12xpsfm
Reddit
r/JupyterNotebooks on Reddit: Help solving IOPub data rate error
Posted by u/bloobybloob96 - 1 vote and no comments
Is it just me or are the docs for sqlalchemy a f*cking nightmare?
Granted, I have little to no experience when it comes to working with databases, but the docs for sqlalchemy are so god damn convoluted and the lingo is way too abstract. Perhaps someone can recommend a good in-depth tutorial?
/r/Python
https://redd.it/12xrvwz
Granted, I have little to no experience when it comes to working with databases, but the docs for sqlalchemy are so god damn convoluted and the lingo is way too abstract. Perhaps someone can recommend a good in-depth tutorial?
/r/Python
https://redd.it/12xrvwz
Reddit
r/Python on Reddit: Is it just me or are the docs for sqlalchemy a f*cking nightmare?
Posted by u/EntropyGoAway - 147 votes and 50 comments
I built a leaderboard creator app
Try this fully functional leaderboard maker app here, https://www.maketheboard.com/. Built with Python & Flask (obviously), SQLAlchemy, and JavaScript with the simple bootstrap frontend.
The next step is to add Google AdSense and create the paid plans, which are already modeled out. Finished it in December and honestly forgot about it but I am getting tons of emails from Google search console that it is finally ranking lol.
I am open to answering any questions that any beginners may have
/r/flask
https://redd.it/12xsxb1
Try this fully functional leaderboard maker app here, https://www.maketheboard.com/. Built with Python & Flask (obviously), SQLAlchemy, and JavaScript with the simple bootstrap frontend.
The next step is to add Google AdSense and create the paid plans, which are already modeled out. Finished it in December and honestly forgot about it but I am getting tons of emails from Google search console that it is finally ranking lol.
I am open to answering any questions that any beginners may have
/r/flask
https://redd.it/12xsxb1
Maketheboard
Free Online Leaderboard and Scoreboard Creator
Create and share free online leaderboards in seconds with MakeTheBoard. Ideal for classrooms, competitions, offices, and more. No signup or install needed.
Skip db system check when runserver command is executed
Basically, I'm looking for a way to break the norm. I recently realised that if for some reason my db connection fails, my entire app goes bunkers. Never imagined this use case until it happened.
What I want is for my drf endpoints that do not make db calls to work fine while also returning a custom db error for endpoints that connect to a db.
P.S: I know I should be concerned about the maintaining a near 100% uptime for the db server. However, I'm prepping for a scenario where something goes wrong and doesn't kill the entire system.
/r/django
https://redd.it/12xyh0w
Basically, I'm looking for a way to break the norm. I recently realised that if for some reason my db connection fails, my entire app goes bunkers. Never imagined this use case until it happened.
What I want is for my drf endpoints that do not make db calls to work fine while also returning a custom db error for endpoints that connect to a db.
P.S: I know I should be concerned about the maintaining a near 100% uptime for the db server. However, I'm prepping for a scenario where something goes wrong and doesn't kill the entire system.
/r/django
https://redd.it/12xyh0w
Reddit
r/django on Reddit: Skip db system check when runserver command is executed
Posted by u/cauhlins - 2 votes and 3 comments
Accepting Payments with Stripe, Vue.js, and Flask
https://testdriven.io/blog/accepting-payments-with-stripe-vuejs-and-flask/
/r/flask
https://redd.it/12xdzc7
https://testdriven.io/blog/accepting-payments-with-stripe-vuejs-and-flask/
/r/flask
https://redd.it/12xdzc7
testdriven.io
Accepting Payments with Stripe, Vue.js, and Flask
This tutorial details how to develop a web app for selling products using Stripe, Vue.js, and Flask.
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/12y1e49
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/12y1e49
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
We reduced conda’s index fetch bandwidth by 99%
https://conda.discourse.group/t/how-we-reduced-condas-index-fetch-bandwidth-by-99/257
/r/Python
https://redd.it/12y8tvg
https://conda.discourse.group/t/how-we-reduced-condas-index-fetch-bandwidth-by-99/257
/r/Python
https://redd.it/12y8tvg
Conda Community Forum
How we reduced conda's index fetch bandwidth by 99%
How we reduced conda’s index fetch bandwidth by 99% The new conda 23.3.1 release from March, 2023 includes an --experimental=jlap flag or experimental: ["jlap"] .condarc setting that can reduce repdata.json fetch bandwidth by orders of magnitude. This is…
Is it correct a models.py in each blueprint?
I am working in a project and we were discussing about this, what do you think? Is it possible?
I don’t know if the db is gonna work, we are using Oracle and it was a little bit complicated to reflect the tables 😅
Thank you!
/r/flask
https://redd.it/12y2e1l
I am working in a project and we were discussing about this, what do you think? Is it possible?
I don’t know if the db is gonna work, we are using Oracle and it was a little bit complicated to reflect the tables 😅
Thank you!
/r/flask
https://redd.it/12y2e1l
Reddit
r/flask on Reddit: Is it correct a models.py in each blueprint?
Posted by u/alphawro - 2 votes and 8 comments
Build Your Own Face Recognition Tool With Python – Real Python
https://realpython.com/face-recognition-with-python/
/r/Python
https://redd.it/12yhzzy
https://realpython.com/face-recognition-with-python/
/r/Python
https://redd.it/12yhzzy
Realpython
Build Your Own Face Recognition Tool With Python – Real Python
In this tutorial, you'll build your own face recognition command-line tool with Python. You'll learn how to use face detection to identify faces in an image and label them using face recognition. With this knowledge, you can create your own face recognition…
Hot reloading and ChatGPT - Simplify Complex Problems with AI and Reloadium
https://redd.it/12ykafo
@pythondaily
https://redd.it/12ykafo
@pythondaily
Reddit
r/flask on Reddit: Hot reloading and ChatGPT - Simplify Complex Problems with AI and Reloadium
Posted by u/thapasaan - 5 votes and 1 comment
Hosting Django project on Azure
Hello everyone,
I'm seeking some advice on hosting my Django-based project on Azure. I've used Docker-compose to build the project, but I'm feeling lost and unsure about which approach to take. Should I set up Kubernetes AKS or Azure Containers Instance? Or should I stick with the Containers Web App, or perhaps not use Docker at all?
Additionally, I'm not sure whether I should use Azure Postgres or a containerized database, which can be a bit of a pain to set up. I'm also curious about which Azure features I should use to ensure that my project runs smoothly on Azure.
My project utilizes multiple containers, including Redis, Celery, Flower, and Traefik. Can anyone offer any tips or guidance?
Thank you. 😊
/r/django
https://redd.it/12yhv5o
Hello everyone,
I'm seeking some advice on hosting my Django-based project on Azure. I've used Docker-compose to build the project, but I'm feeling lost and unsure about which approach to take. Should I set up Kubernetes AKS or Azure Containers Instance? Or should I stick with the Containers Web App, or perhaps not use Docker at all?
Additionally, I'm not sure whether I should use Azure Postgres or a containerized database, which can be a bit of a pain to set up. I'm also curious about which Azure features I should use to ensure that my project runs smoothly on Azure.
My project utilizes multiple containers, including Redis, Celery, Flower, and Traefik. Can anyone offer any tips or guidance?
Thank you. 😊
/r/django
https://redd.it/12yhv5o
Reddit
r/django on Reddit: Hosting Django project on Azure
Posted by u/fahddaher - 16 votes and 16 comments
In a nutshell, how do you tell the difference between API and Microservices in Python?
/r/Python
https://redd.it/12yq1e9
/r/Python
https://redd.it/12yq1e9
Reddit
r/Python on Reddit: In a nutshell, how do you tell the difference between API and Microservices in Python?
Posted by u/selva-online - 9 votes and 21 comments
I uploaded a Python Machine Learning Project video on Youtube - Predicting Incomes using Sci-kit Learn
Hey everyone, I uploaded a new video on my YouTube channel where I walk through a Python Machine Learning project using sci-kit learn to predict incomes based on individual data. In the video, I provide the data set and walk through each step of the project. Thanks, have a great day!
https://www.youtube.com/watch?v=47EzTeIuHYo
/r/Python
https://redd.it/12yo1kr
Hey everyone, I uploaded a new video on my YouTube channel where I walk through a Python Machine Learning project using sci-kit learn to predict incomes based on individual data. In the video, I provide the data set and walk through each step of the project. Thanks, have a great day!
https://www.youtube.com/watch?v=47EzTeIuHYo
/r/Python
https://redd.it/12yo1kr
YouTube
Python Machine Learning Project - Income Classification
Thanks for watching my video. Some other videos I published:
- Python Data Analysis Project: https://www.youtube.com/watch?v=xuSx4jpsTz8
- Python Machine Learning Project: https://www.youtube.com/watch?v=47EzTeIuHYo
- Python Course: https://www.youtube.…
- Python Data Analysis Project: https://www.youtube.com/watch?v=xuSx4jpsTz8
- Python Machine Learning Project: https://www.youtube.com/watch?v=47EzTeIuHYo
- Python Course: https://www.youtube.…
Flask 2.3.0 released
https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-0
/r/flask
https://redd.it/12ytmlk
https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-0
/r/flask
https://redd.it/12ytmlk
Wednesday Daily Thread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
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/12z0gle
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
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/12z0gle
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