Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
[ open source project ] [ Flask ] point me in the right direction

Hi guys,

I'm looking to contribute in a flask open source project some what beginner friendly.

Please drop a link of some active ones that you know that helped you when you first started with flask.

thank you

/r/flask
https://redd.it/gukjqm
What is going on?

While using Jupyter Notebook after a short period of time the tab will get an hourglass in the corner. After waiting for several minutes the tab still won't run any code. By shutting down the notebook from the Home page and re-opening it, the notebook starts to work again until the hourglass appears and nothing works any more. Why is this happening?

/r/IPython
https://redd.it/guqp99
Adding 2fa to a website?

Hi, I'm in the process of making a webpage which will blog about malware and all things hacking related and wanted to know (since the nature of this page is hacking) how hard would it be to add two factor authentication to login pages and what would be the most secure way to do it? Does anyone have a link to making secure sites with flask? Any help is appreciated.

/r/flask
https://redd.it/guqs9r
"Automate the Boring Stuff with Python" online course is free to sign up for the next few days with code JUN2020FREE

https://inventwithpython.com/automateudemy (This link will automatically redirect you to the latest discount code.)

You can also click this link or manually enter the code: JUN2020FREE (on Monday the code changes to JUN2020FREE2)

https://www.udemy.com/course/automate/?couponCode=JUN2020FREE

This promo code works until June 7th (I can't extend it past that). Sometimes it takes 30 minutes or so for the code to become active just after I create it, so if it doesn't work, go ahead and try again a while later.

Udemy has changed their coupon policies, and I'm now only allowed to make 3 coupon codes each month with several restrictions. Hence why each code only lasts 3 days. **I won't be able to make codes after this period**, but I will be making free codes next month. [Meanwhile, the first 15 of the course's 50 videos are free on YouTube.](https://www.youtube.com/watch?v=1F_OgqRuSdI&list=PL0-84-yl1fUnRuXGFe_F7qSH1LEnn9LkW)

You can also purchase the course at a discount using my code MAY2020 or JUN2020 (or whatever month/year it is) or clicking https://inventwithpython.com/automateudemy to redirect to the latest discount code. I have to manually renew this each month (until I get that automation script done). And the cheapest I can offer the course is about $14 to $16. (Meanwhile, this lets Udemy undercut my discount by offering it

/r/Python
https://redd.it/guwhkt
This media is not supported in your browser
VIEW IN TELEGRAM
Made a script that visualizes the vocabulary diversity in given user's followers' tweets. Bigger nodes in the network show diversity

/r/Python
https://redd.it/gutydj
Python Newbie needs help with selenium

Hello everyone,

I'm pretty much at the beginning of learning python and I'm facing a problem with finding a solution how to select and extract a specific text.

​

https://preview.redd.it/3275n32e3e251.png?width=1229&format=png&auto=webp&s=8ad70b59a180b297f2b294de8a64acc6ea1d3648

All lists look like that.. In the end I want to end up with the href's extracted in a text document.. but I'm already having a struggle searching this exact element in my code + I never extracted something out of selenium.

​

I'd appreciate a helping hand if someone has the experience and time.

Thanks in advance.

/r/Python
https://redd.it/guwjgl
User and request authentication. Flask API securely interacting with React front end?

Hi all,

I have a flask app that uses `bootstrap`, `jinja` templates and all that good stuff. I followed the excellent tutorials by Nick Janetakis and setup quite a nice little app.

I now want to learn `React` so I've setup some docker containers and I have a barebones Flask API running in one container, React running in another and the Flask API is now talking to a remote Mongo database.

In the current version of the app I simply do all the auth etc using `Flask-Login`. Works a treat but I now need to interact with the API externally via React.

How do you go about securely connecting to the API, authenticating the requests, etc so that I can create a CRUD system with this stack?

It's my first move away from the fully contained world of Flask so apologies if it seems a bit of a basic question.

Thank you

/r/flask
https://redd.it/gv04jx
The jabs at asp just doesn't stop lol

/r/django
https://redd.it/gunzqt
All jokes aside, the Django tutorial is one of the most organized and educational tutorials I've ever done.

It gently introduces you to every aspect of the framework so you quickly understand the "big picture" and provides you with additional links on each part if you want to dive deeper on your own. It also points out common errors that beginners get stuck on such as typing in [http://127.0.0.1:8000/](http://127.0.0.1:8000/) instead of [http://127.0.0.1:8000/polls/](http://127.0.0.1:8000/).

One other thing I liked was the tidbits about the design philosophy behind each part so we understand why we do this the way we do.

/r/django
https://redd.it/guuqw9
I made a coding interview site with video conferencing, collaborative code editing and remote code execution.

/r/Python
https://redd.it/gv2dy5
Can't create index page

I'm trying to make my app with blueprints and when trying to set up the index page it catches an error. Index is under Localito/core/views.py. I don't know what I'm doing wrong.

werkzeug.routing.BuildError: Could not build url for endpoint 'index'. Did you mean 'core.index' instead?

​

code: [https://github.com/halabito8/Localito](https://github.com/halabito8/Localito)

/r/flask
https://redd.it/guzuxb
what's the easiest way to get information on ipython release 5.10.0?

i noticed today that there is a new ipython release 5.10.0.

### what's the easiest way to get information on ipython release 5.10.0?

i tried readthedocs but they stopped at about 5.9 and for that release and earlier they only had like 1-3 high level bullet points.

i did find mention of the release on the github.com/ipython/ipython/releases but no summary.

### do i need to generate the release notes myself via https://github.com/github-tools/github-release-notes?

usually release notes are done by the project not the developer using the project.

---

i guess ipython-5.x is still getting a release because it supports python-2.7 and there's still a lot of python-2.7 users.

so maybe any ipython-5.x release won't get any release docs going forward.

/r/IPython
https://redd.it/gulyce
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/gv80nx
What is going on?

While using Jupyter Notebook after a short period of time the tab will get an hourglass in the corner. After waiting for several minutes the tab still won't run any code. By shutting down the notebook from the Home page and re-opening it, the notebook starts to work again until the hourglass appears and nothing works any more. Why is this happening?

/r/JupyterNotebooks
https://redd.it/guqmnz
I'm learning Digital Image Processing with opencv in Python at my university. Today I decided to write a script make deep fried memes. Link in my comments.

/r/Python
https://redd.it/gv2cu7
Can I automate a web scraping task that updates the django database?

I am working on an application that works with data which I have previously scraped from another website using Selenium. In order for my app to work with the most up-to-date data, I would like to set up a scheduled task that runs maybe twice a day to execute the script responsible for scraping said website.

Now I looked into this a little bit and see a lot of mentions of Celery as a scheduling tool. I was wondering whether it would be feasible for Celery to take care of running a Selenium driver.

I am planning to deploy this application to heroku and ideally the updating of the database would be fully automated once the application is live.

Can anyone confirm that this is feasible and potentially point me to some resources that will get me started?

Thank you

/r/django
https://redd.it/gvc9e3
How to Create a Grocery Delivery And Pick-up Service App in Python

In this project, we will build an online grocery store web application using Django 3.0 and PostgreSQL with third-party libraries.

[https://www.education-ecosystem.com/brahim\_chougrani/2PEBk-how-to-create-instacart-clone-with-django/voGEG-porject-introduction/](https://www.education-ecosystem.com/brahim_chougrani/2PEBk-how-to-create-instacart-clone-with-django/voGEG-porject-introduction/)

/r/djangolearning
https://redd.it/gvee7s
What are the exact uses of flask's SECRET_KEY

Hi, I just finished my project which I built with flask and I'm still not sure what the SECRET\_KEY is used for.I saw multiple answers over the web and wanted to be sure what's the correct one.I saw that the SECRET KEY is used for:

1. The csrf token in the forms ( { form.csrf\_token } ).
2. To encrypt the session id in the cookies (or something like that).

I want to know which one is correct (maybe both)My second question is: Is wekzeug.security.generate\_password\_hash uses it as well?

/r/flask
https://redd.it/gvekun