Some advice: will my setup be production ready?
Hi,
I'm a software developer of 1.5 years. I've just deployed my first django API for my small company solo into staging, and was looking for advice from others on how to make sure the app is absolutely safe and secure. The company is very small (6 people) and so I have to wear many hats. This is the first thing I've been solely responsible for, so I would like to make it through successfully.
It's a Django 3.0 application that is based on a Cookie Cutter template (that has three settings levels) that uses MongoDB (successfully) that's hosted on EC2 that at max should take about 500 requests a day for each consumer (only other servers). We expect the API right now only to have 1 consumer, and a few others on the way. I've set up HTTPS in Apache with LetsEncrypt. The database in MongoDB should **not** be externally visible, only available to localhost.
I've also set up Sentry for logging (which is just the best...), and I need to speak with my boss about purchasing the company plan since right now it is on the free version. I have EC2's dashboard for monitoring.
I know i need to do the following
/r/django
https://redd.it/lfd1l3
Hi,
I'm a software developer of 1.5 years. I've just deployed my first django API for my small company solo into staging, and was looking for advice from others on how to make sure the app is absolutely safe and secure. The company is very small (6 people) and so I have to wear many hats. This is the first thing I've been solely responsible for, so I would like to make it through successfully.
It's a Django 3.0 application that is based on a Cookie Cutter template (that has three settings levels) that uses MongoDB (successfully) that's hosted on EC2 that at max should take about 500 requests a day for each consumer (only other servers). We expect the API right now only to have 1 consumer, and a few others on the way. I've set up HTTPS in Apache with LetsEncrypt. The database in MongoDB should **not** be externally visible, only available to localhost.
I've also set up Sentry for logging (which is just the best...), and I need to speak with my boss about purchasing the company plan since right now it is on the free version. I have EC2's dashboard for monitoring.
I know i need to do the following
/r/django
https://redd.it/lfd1l3
reddit
Some advice: will my setup be production ready?
Hi, I'm a software developer of 1.5 years. I've just deployed my first django API for my small company solo into staging, and was looking for...
Can Jupyter Notebook be used with files saved on cloud, or computer only?
Do my Jupyter Notebook files have to be saved on my computer hard drive? Can they be saved on a cloud instead?
/r/JupyterNotebooks
https://redd.it/lfn7b8
Do my Jupyter Notebook files have to be saved on my computer hard drive? Can they be saved on a cloud instead?
/r/JupyterNotebooks
https://redd.it/lfn7b8
reddit
Can Jupyter Notebook be used with files saved on cloud, or...
Do my Jupyter Notebook files have to be saved on my computer hard drive? Can they be saved on a cloud instead?
ckk
# Piedmont Lithium Limited (PLL)
NasdaqGS - NasdaqGS Real Time Price. Currency in USDAdd to watchlist**Visitors trend2W10W9M**57.70+7.27 (+14.42%)At close: 4:00PM EST
57.20 -0.50 (-0.87%)
After hours: 5:31PM EST
/r/IPython
https://redd.it/lfnyea
# Piedmont Lithium Limited (PLL)
NasdaqGS - NasdaqGS Real Time Price. Currency in USDAdd to watchlist**Visitors trend2W10W9M**57.70+7.27 (+14.42%)At close: 4:00PM EST
57.20 -0.50 (-0.87%)
After hours: 5:31PM EST
/r/IPython
https://redd.it/lfnyea
Yahoo
PLL Interactive Stock Chart | Piedmont Lithium Limited Stock - Yahoo Finance
At Yahoo Finance, you get free stock quotes, up-to-date news, portfolio management resources, international market data, social interaction and mortgage rates that help you manage your financial life.
Lazy load imports for jupyter notebooks
Usually, I have a ton of imports at the top of my notebooks which slows down my startup time. I created a dead-simple (less than 50 lines of code) jupyter extension that enables lazy imports, which only imports packages as needed. This enables rapid bootups and a faster workflow!
Check it out here: https://github.com/jungerm2/JupyterLazyLoader
Let me know what you think! Any help/contributions are welcome!
/r/IPython
https://redd.it/lezphk
Usually, I have a ton of imports at the top of my notebooks which slows down my startup time. I created a dead-simple (less than 50 lines of code) jupyter extension that enables lazy imports, which only imports packages as needed. This enables rapid bootups and a faster workflow!
Check it out here: https://github.com/jungerm2/JupyterLazyLoader
Let me know what you think! Any help/contributions are welcome!
/r/IPython
https://redd.it/lezphk
GitHub
jungerm2/JupyterLazyLoader
Lazy module importer for Jupyter. Contribute to jungerm2/JupyterLazyLoader development by creating an account on GitHub.
D Low data regime, what are your moves?
Hi, it's more than a month now since i've started working on a Project.
Basically it can be viewed as a medical image classification task.
The main problem is the dataset size, actually its a huuge problem, (<100). I've tried with GANs, TL, some sort of analitycal ROI extraction to feed the net.
But onestly right now I'm running out of ideas.
What do you tipically do in these situations? What was the size of the smallest dataset you've been able to achieve some valid results?
Any advice on papers to read?
Thanks.
/r/MachineLearning
https://redd.it/lfpw1w
Hi, it's more than a month now since i've started working on a Project.
Basically it can be viewed as a medical image classification task.
The main problem is the dataset size, actually its a huuge problem, (<100). I've tried with GANs, TL, some sort of analitycal ROI extraction to feed the net.
But onestly right now I'm running out of ideas.
What do you tipically do in these situations? What was the size of the smallest dataset you've been able to achieve some valid results?
Any advice on papers to read?
Thanks.
/r/MachineLearning
https://redd.it/lfpw1w
reddit
[D] Low data regime, what are your moves?
Hi, it's more than a month now since i've started working on a Project. Basically it can be viewed as a medical image classification task. The...
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/lfpln1
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/lfpln1
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
I wrote a song about everyone's favorite Python Enhancement Proposal
https://www.youtube.com/watch?v=hgI0p1zf31k
/r/Python
https://redd.it/lfuy5e
https://www.youtube.com/watch?v=hgI0p1zf31k
/r/Python
https://redd.it/lfuy5e
YouTube
🎵 The PEP 8 Song 🎵
A songification of that most holiest of Python Enhancement Proposals, the PEP 8.
Based on an idea by Daniel "Mr. Hemlock" Brown.
Written and performed by Leon Sandøy, A.K.A. lemonsaurus.
Music and melody from Mad World by Roland Orzabal. This version was…
Based on an idea by Daniel "Mr. Hemlock" Brown.
Written and performed by Leon Sandøy, A.K.A. lemonsaurus.
Music and melody from Mad World by Roland Orzabal. This version was…
Building a Social Network in 1 Month (Day 8 of 28) (Daily Coding Vlogs)
https://www.youtube.com/watch?v=v1-of1G48aQ&feature=youtu.be&ab_channel=IsaacJoy
/r/django
https://redd.it/lfq4sd
https://www.youtube.com/watch?v=v1-of1G48aQ&feature=youtu.be&ab_channel=IsaacJoy
/r/django
https://redd.it/lfq4sd
YouTube
Let's build a Social Network in 1 month (Day 8 of 28)
building https://chitterchat.com - a social network for meeting people online
tech stack - nuxt.js(vue.js) / django / postgres
code: https://gitlab.com/isaacjoy/chitter.chat
time spent: 3 hours
tech stack - nuxt.js(vue.js) / django / postgres
code: https://gitlab.com/isaacjoy/chitter.chat
time spent: 3 hours
Writing a book on autonomous quadcopter projects? Latex vs Jupyter Book?
Hi, So I finished my masters in computer science with a focus on deep learning and computer vision. Now I want to write a book showcasing some useful and popular things in this field. Here's a small list of libraries that I use in some chapters:
1. Eigen (3D geometry, Linear algebra)
2. Sophus (3D geometry, Lie algebra)
3. Ceres Solver (3D geometry)
4. ROS (Robotics software)
5. OpenCV (computer vision)
6. Tensorflow (deep learning)
7. Pandas, numpy, matplotlib (Data science)
I want to explore concepts in papers and showcase examples and projects which use these libraries. In Latex, I can simply add a code block in `listing` environment. But I want the code to be executable so that users can try it out themselves. Can the top 4 libraries be used along with Jupyter book so that the code I specify (which is written in C++ 14 btw, not python) is executable? These libraries are installed natively and not in a conda (or virtual) environment.
/r/JupyterNotebooks
https://redd.it/lg0exy
Hi, So I finished my masters in computer science with a focus on deep learning and computer vision. Now I want to write a book showcasing some useful and popular things in this field. Here's a small list of libraries that I use in some chapters:
1. Eigen (3D geometry, Linear algebra)
2. Sophus (3D geometry, Lie algebra)
3. Ceres Solver (3D geometry)
4. ROS (Robotics software)
5. OpenCV (computer vision)
6. Tensorflow (deep learning)
7. Pandas, numpy, matplotlib (Data science)
I want to explore concepts in papers and showcase examples and projects which use these libraries. In Latex, I can simply add a code block in `listing` environment. But I want the code to be executable so that users can try it out themselves. Can the top 4 libraries be used along with Jupyter book so that the code I specify (which is written in C++ 14 btw, not python) is executable? These libraries are installed natively and not in a conda (or virtual) environment.
/r/JupyterNotebooks
https://redd.it/lg0exy
reddit
Writing a book on autonomous quadcopter projects? Latex vs Jupyter...
Hi, So I finished my masters in computer science with a focus on deep learning and computer vision. Now I want to write a book showcasing some...
Is there a way for Django to secure the connection to a Postgres DB using one of Postgres's supported authentication methods?
When Django uses the Postgres credentials configured in the settings..py file to connect to the DB, is there a way to secure this connection that Django provides?
Postgres's supported authentication methods
/r/django
https://redd.it/lfyxrs
When Django uses the Postgres credentials configured in the settings..py file to connect to the DB, is there a way to secure this connection that Django provides?
Postgres's supported authentication methods
/r/django
https://redd.it/lfyxrs
PostgreSQL Documentation
20.3. Authentication Methods
20.3. Authentication Methods # PostgreSQL provides various methods for authenticating users: Trust authentication, which simply trusts that users are who they …
PEP 634 (Structural Pattern Matching) is approved! Welcome match statement,
https://realworldpython.hashnode.dev/structural-pattern-matching-pep-634-in-python
/r/Python
https://redd.it/lfz5af
https://realworldpython.hashnode.dev/structural-pattern-matching-pep-634-in-python
/r/Python
https://redd.it/lfz5af
The Most Popular Programming Languages - 1965/2020
https://youtu.be/UNSoPa-XQN0
/r/pystats
https://redd.it/lg45z6
https://youtu.be/UNSoPa-XQN0
/r/pystats
https://redd.it/lg45z6
YouTube
The Most Popular Programming Languages - 1965/2020
In this video the most used programming languages from 1965 to 2020. The data are updated to the second quarter of 2020. In the second quarter of 2020 the most used programming languages are: Python, Javascript and Java. C#, PHP, C++ and others follow.
…
…
The 22 Most-Used Python Packages in The World
Hi Reddit, I assembled the **top 22 most used Python packages in the world** (medium, link bypasses the paywall).
I did some research and wrote about each of them. I had a lot of fun writing this. I'd love to hear your comments!
/r/Python
https://redd.it/lfzbcg
Hi Reddit, I assembled the **top 22 most used Python packages in the world** (medium, link bypasses the paywall).
I did some research and wrote about each of them. I had a lot of fun writing this. I'd love to hear your comments!
/r/Python
https://redd.it/lfzbcg
Medium
The 22 Most-Used Python Packages in The World in 2021
Educational and surprising insights into how Python is used
Sending full html link through rendertemplate?
Hi all,
It is possible to send an html link through flask render\template?
\-----------------------
app.route('/site1')
def site1():
data = '<a href="/info?id=12345">12345</a>'
return render_template('site1.html', data=data)
\-----------------------
I've tested the above, but it comes out as a string and not recognized as a link.
I can send the data and format it as <a href="/info?id={data}">{data}</a> within the html, but i'm using a table loop and the first entry is an id that I'd also like to be a link for drill down purposes. Fairly new to web design and hope I'm asking the question accurately.
Thank you!
/r/flask
https://redd.it/lg68xd
Hi all,
It is possible to send an html link through flask render\template?
\-----------------------
app.route('/site1')
def site1():
data = '<a href="/info?id=12345">12345</a>'
return render_template('site1.html', data=data)
\-----------------------
I've tested the above, but it comes out as a string and not recognized as a link.
I can send the data and format it as <a href="/info?id={data}">{data}</a> within the html, but i'm using a table loop and the first entry is an id that I'd also like to be a link for drill down purposes. Fairly new to web design and hope I'm asking the question accurately.
Thank you!
/r/flask
https://redd.it/lg68xd
reddit
Sending full html link through render_template?
Hi all, It is possible to send an html link through flask render\_template? \----------------------- app.route('/site1') def site1(): ...
Django as a pure backend independent of the frontend or Django alongside the frontend when using React.
I've already built some parts of the frontend using React, and I was wondering now that I am going to start building the backend, which of the two approaches is more suitable.
​
I know that both approaches are useable, but I am not sure about the trade-offs between using Django as an independent backend or using react as an app of a Django project.
​
I am hoping that someone could point of the trade-offs between the two approaches or provide some resource to learn about the topic if possible.
​
Thank you
/r/djangolearning
https://redd.it/lg50u2
I've already built some parts of the frontend using React, and I was wondering now that I am going to start building the backend, which of the two approaches is more suitable.
​
I know that both approaches are useable, but I am not sure about the trade-offs between using Django as an independent backend or using react as an app of a Django project.
​
I am hoping that someone could point of the trade-offs between the two approaches or provide some resource to learn about the topic if possible.
​
Thank you
/r/djangolearning
https://redd.it/lg50u2
reddit
Django as a pure backend independent of the frontend or Django...
I've already built some parts of the frontend using React, and I was wondering now that I am going to start building the backend, which of the two...
[Python 3][Flask] need help with a generator object thats supposed to be returning 2 values as a dictionary
https://www.reddit.com/r/learnpython/comments/lgg7qm/python_3flask_need_help_with_a_generator_object/
/r/flask
https://redd.it/lggml6
https://www.reddit.com/r/learnpython/comments/lgg7qm/python_3flask_need_help_with_a_generator_object/
/r/flask
https://redd.it/lggml6
reddit
[Python 3][Flask] need help with a generator object thats supposed...
im following a course on flask using codecademy, this is the question that i am stuck on In app.py collect the name and value data from the...
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/lgh38f
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/lgh38f
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
I made a Password Generator which uses diceware password generating algorithm to generate cryptographically strong memorable passphrases.
https://github.com/sameera-madushan/Diceware-Password-Generator
​
https://i.redd.it/kzl259o0hig61.gif
/r/Python
https://redd.it/lgcjcq
https://github.com/sameera-madushan/Diceware-Password-Generator
​
https://i.redd.it/kzl259o0hig61.gif
/r/Python
https://redd.it/lgcjcq
GitHub
GitHub - sameera-madushan/Diceware-Password-Generator: Python implementation of the diceware password generating algorithm.
Python implementation of the diceware password generating algorithm. - GitHub - sameera-madushan/Diceware-Password-Generator: Python implementation of the diceware password generating algorithm.
Whats the role tools like django-environ, python-dotenv etc when using django with docker?
I'm wondering what's the role/benfit of using the tools mentioned above when using django with docker? Is it mainly for local use without docker?
/r/django
https://redd.it/lghy32
I'm wondering what's the role/benfit of using the tools mentioned above when using django with docker? Is it mainly for local use without docker?
/r/django
https://redd.it/lghy32
reddit
Whats the role tools like django-environ, python-dotenv etc when...
I'm wondering what's the role/benfit of using the tools mentioned above when using django with docker? Is it mainly for local use without docker?
A little jab at C in PEP 20 that I just noticed
In "The Zen of Python", PEP 20, the thirteenth guideline is written
Based on how those em-dashes are formatted, it feels like the guideline is poking fun at C (and other languages with C-like syntax). For those that aren't aware, in C you can decrement a variable by one, either with
In other words, there are two ways to do it; it's not Pythonic. I don't know if I'm a moron for not seeing this in the PEP until now, but in my defense I learned Python before I learned C. Also, it seems like the Wikipedia editors missed it, too, based on the formatting.
/r/Python
https://redd.it/lgeb8m
In "The Zen of Python", PEP 20, the thirteenth guideline is written
There should be one-- and preferably only one --obvious way to do it.Based on how those em-dashes are formatted, it feels like the guideline is poking fun at C (and other languages with C-like syntax). For those that aren't aware, in C you can decrement a variable by one, either with
var-- or --var. (The difference being that the first expression evaluates, then increments, and the second increments, then evaluates, if that brief explanation makes any sense.) In other words, there are two ways to do it; it's not Pythonic. I don't know if I'm a moron for not seeing this in the PEP until now, but in my defense I learned Python before I learned C. Also, it seems like the Wikipedia editors missed it, too, based on the formatting.
/r/Python
https://redd.it/lgeb8m