Django tutorial videos by Nigel George, author of "Mastering Django"
https://www.youtube.com/channel/UCiuZer2ELlG3dAhWCzwz9Og/videos
/r/django
https://redd.it/beih8j
https://www.youtube.com/channel/UCiuZer2ELlG3dAhWCzwz9Og/videos
/r/django
https://redd.it/beih8j
YouTube
djangotutorials
Python script + Azure ad sso
Hey everyone,
I browsed the sub, stackoverflow and whatever I saw related but with no luck, so its time for a post.
I'm trying to work on a webscrapper that gets some static data from a few URLS, however to access them you first need your microsoft authentication done which is shared for all the pages..
Overall its simple up un till you get to the authentication step... problem comes that the accounts that would use this have MFA attached which sends push notifications, doing it with a simple user+pass account seemed easy, but thats not what I need sadly... I looked over the azure documentation, adal library and all sorts of solutions but I could not find a way to even trigger the push notification on my phone..
Only way i've gotten it to work is to use selenium to simulate the user access, but thats not what I want generally speaking.. Anyone has any tips to share with me? :)
​
Thanks
/r/Python
https://redd.it/bejqy6
Hey everyone,
I browsed the sub, stackoverflow and whatever I saw related but with no luck, so its time for a post.
I'm trying to work on a webscrapper that gets some static data from a few URLS, however to access them you first need your microsoft authentication done which is shared for all the pages..
Overall its simple up un till you get to the authentication step... problem comes that the accounts that would use this have MFA attached which sends push notifications, doing it with a simple user+pass account seemed easy, but thats not what I need sadly... I looked over the azure documentation, adal library and all sorts of solutions but I could not find a way to even trigger the push notification on my phone..
Only way i've gotten it to work is to use selenium to simulate the user access, but thats not what I want generally speaking.. Anyone has any tips to share with me? :)
​
Thanks
/r/Python
https://redd.it/bejqy6
reddit
r/Python - Python script + Azure ad sso
0 votes and 0 comments so far on Reddit
Summing squares of 32M doubles performance: Python vs C++ vs Node.js
https://twitter.com/dimitrovskif/status/1118810876084092928
/r/Python
https://redd.it/bejttw
https://twitter.com/dimitrovskif/status/1118810876084092928
/r/Python
https://redd.it/bejttw
Twitter
Filip Dimitrovski
By also adding fastmath=True to numba I got to 25ms. I don't think it can get any better without intervening with the LLVM generation. Table w/ all cases:
Packaging Python inside your organization with GitLab and Conda
https://stefan.sofa-rockers.org/2019/04/18/python-packaging-gitlab-conda/
/r/Python
https://redd.it/bekm8c
https://stefan.sofa-rockers.org/2019/04/18/python-packaging-gitlab-conda/
/r/Python
https://redd.it/bekm8c
reddit
r/Python - Packaging Python inside your organization with GitLab and Conda
0 votes and 1 comment so far on Reddit
Python programmers, what's a regular day in your job like?
Like the title says: I'm not a python programmer myself, I'm a motion designer who learned (and learned to love) using python, and I'm considering a change of carrier. However I know that doing something you like as a job is much different than doing it as a hobby, hence my question: what's it like to be a python professional?
/r/Python
https://redd.it/belx64
Like the title says: I'm not a python programmer myself, I'm a motion designer who learned (and learned to love) using python, and I'm considering a change of carrier. However I know that doing something you like as a job is much different than doing it as a hobby, hence my question: what's it like to be a python professional?
/r/Python
https://redd.it/belx64
reddit
r/Python - Python programmers, what's a regular day in your job like?
0 votes and 3 comments so far on Reddit
[AF] Anyone know how to use WTForms MultipleFileField?
There's no documentation other than "it works like FielField but for multiple files". Does anyone have an example for how to access raw data from the multiple uploaded files?
/r/flask
https://redd.it/beagm2
There's no documentation other than "it works like FielField but for multiple files". Does anyone have an example for how to access raw data from the multiple uploaded files?
/r/flask
https://redd.it/beagm2
reddit
r/flask - [AF] Anyone know how to use WTForms MultipleFileField?
10 votes and 3 comments so far on Reddit
Keeping track of what rating each User gave to each Movie, where Users and Movies can be added at any time?
What field will do this job? A onetoone field? Manytoone? Manytomany?
Basically, let's say I'm building a site where users rate movies. Each user gives each movie a rating (or lack thereof) and different users can have different rating for each movie. New users are joining all the time. New movies are also being added all the time.
The default rating for all his/her movies when a new user joins is "None". The default rating from all users when a new movie is added is also "None".
I also want to quickly look up what the average rating a particular movie has gotten across all users that rated it. And similarly, look up the average rating a user has given for all movies he/she rated.
(Ok, I'm actually not building a movie rating app but that's the closest example I can think of to describe this type of data structure that I have no idea what to call and hence cannot rely on Google for answers, hence that's why I'm asking here.)
/r/djangolearning
https://redd.it/begpts
What field will do this job? A onetoone field? Manytoone? Manytomany?
Basically, let's say I'm building a site where users rate movies. Each user gives each movie a rating (or lack thereof) and different users can have different rating for each movie. New users are joining all the time. New movies are also being added all the time.
The default rating for all his/her movies when a new user joins is "None". The default rating from all users when a new movie is added is also "None".
I also want to quickly look up what the average rating a particular movie has gotten across all users that rated it. And similarly, look up the average rating a user has given for all movies he/she rated.
(Ok, I'm actually not building a movie rating app but that's the closest example I can think of to describe this type of data structure that I have no idea what to call and hence cannot rely on Google for answers, hence that's why I'm asking here.)
/r/djangolearning
https://redd.it/begpts
reddit
r/djangolearning - Keeping track of what rating each User gave to each Movie, where Users and Movies can be added at any time?
2 votes and 3 comments so far on Reddit
Pyodide: Bringing the scientific Python stack to the browser – Mozilla Hacks - the Web developer blog
https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scientific-python-stack-to-the-browser/
/r/Python
https://redd.it/bengir
https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scientific-python-stack-to-the-browser/
/r/Python
https://redd.it/bengir
Mozilla Hacks – the Web developer blog
Pyodide: Bringing the scientific Python stack to the browser
Pyodide is an experimental project from Mozilla to create a full Python data science stack that runs entirely in the browser. We think it’s worthwhile to work on moving the ...
Django Admin - Hide For Unauthorized People
Hi. I created a Django webserver which will go online soon. I want to raise a 404 on the admin page when the user is not logged in. I have my own login-service and only admins should be able to access the admin page.
I mean this:
**Normal User, Logged out:**
\-> 404
**Normal User, Logged in:**
\-> 404
**Admin User, Logged out:**
\-> 404
**Admin User, Logged in:**
\-> Access
​
Do you have any idea how to do this?
Thanks.
/r/django
https://redd.it/bepmlt
Hi. I created a Django webserver which will go online soon. I want to raise a 404 on the admin page when the user is not logged in. I have my own login-service and only admins should be able to access the admin page.
I mean this:
**Normal User, Logged out:**
\-> 404
**Normal User, Logged in:**
\-> 404
**Admin User, Logged out:**
\-> 404
**Admin User, Logged in:**
\-> Access
​
Do you have any idea how to do this?
Thanks.
/r/django
https://redd.it/bepmlt
reddit
r/django - Django Admin - Hide For Unauthorized People
0 votes and 3 comments so far on Reddit
R processes left over after nbconvert
I have a notebook running some R code every night on a server using nbconvert. For some reason when the job is done there's still an R process running in the background. I end up just killing them all every other week or so after they've piled up.
Has anyone else experienced this before? Is there a way to make sure that these are ended when the nbconvert finishes?
/r/JupyterNotebooks
https://redd.it/ber4rb
I have a notebook running some R code every night on a server using nbconvert. For some reason when the job is done there's still an R process running in the background. I end up just killing them all every other week or so after they've piled up.
Has anyone else experienced this before? Is there a way to make sure that these are ended when the nbconvert finishes?
/r/JupyterNotebooks
https://redd.it/ber4rb
reddit
r/JupyterNotebooks - R processes left over after nbconvert
0 votes and 0 comments so far on Reddit
Jupyter Notebook dot notation dropdown menu arrowkeys problem
Hi guys,
I didn’t know where else to turn, I couldn’t find anything online about this small problem I’m having with jupyter notebook.
When I tab and open the dropdown menu to see the options for the dot notation I can’t scroll through the options with my arrow keys like I see in vids. I can’t do this on my computer, but on my laptop I don’t have this issue. Is it some option I accidentally turned off or something? Thanks.
/r/JupyterNotebooks
https://redd.it/benrfl
Hi guys,
I didn’t know where else to turn, I couldn’t find anything online about this small problem I’m having with jupyter notebook.
When I tab and open the dropdown menu to see the options for the dot notation I can’t scroll through the options with my arrow keys like I see in vids. I can’t do this on my computer, but on my laptop I don’t have this issue. Is it some option I accidentally turned off or something? Thanks.
/r/JupyterNotebooks
https://redd.it/benrfl
reddit
r/JupyterNotebooks - Jupyter Notebook dot notation dropdown menu arrowkeys problem
1 vote and 0 comments so far on Reddit
Good or Bad Idea? IPython Integration With Microsoft OneNote
https://www.reddit.com/r/OneNote/comments/berf4o/good_or_bad_idea_ipython_integration_with/
/r/IPython
https://redd.it/berk3f
https://www.reddit.com/r/OneNote/comments/berf4o/good_or_bad_idea_ipython_integration_with/
/r/IPython
https://redd.it/berk3f
reddit
r/OneNote - Good or Bad Idea? IPython Integration With Microsoft OneNote
6 votes and 6 comments so far on Reddit
Having some trouble with my production server and NGINX with Google Search Console
Hey /r/Django,
​
I have recently put my Django site on production and configured it with NGINX so that it redirects from port 80 to port 8000, so that the URL doens't have to contain the port number when accessing it. I recently was trying to set up the google search console to index my website, and the crawl worked perfectly fine when I put in the URL with port 8000 \[[http://example.com:8000/\]](http://website.com:8000/]), however I get a: `This page is not in the index, but not because of an error. See the details below to learn why it wasn't indexed. Learn More` error when I try to crawl the website default [http://](http://website.com/)[example](http://website.com:8000/])[.com/](http://website.com/). So in essence it isn't crawling when I use the url without the 8000 port even though I can access my site perfectly fine without the port 8000 now.
​
I have spent quite some time researching on this specific issue however I think there is something that I am missing that I might not know about and hope that somebody can point me in the right direction. This is very new to me, I can post relevant information if needed however I would appreciate any guidance in further assisting me with this
/r/django
https://redd.it/beub5v
Hey /r/Django,
​
I have recently put my Django site on production and configured it with NGINX so that it redirects from port 80 to port 8000, so that the URL doens't have to contain the port number when accessing it. I recently was trying to set up the google search console to index my website, and the crawl worked perfectly fine when I put in the URL with port 8000 \[[http://example.com:8000/\]](http://website.com:8000/]), however I get a: `This page is not in the index, but not because of an error. See the details below to learn why it wasn't indexed. Learn More` error when I try to crawl the website default [http://](http://website.com/)[example](http://website.com:8000/])[.com/](http://website.com/). So in essence it isn't crawling when I use the url without the 8000 port even though I can access my site perfectly fine without the port 8000 now.
​
I have spent quite some time researching on this specific issue however I think there is something that I am missing that I might not know about and hope that somebody can point me in the right direction. This is very new to me, I can post relevant information if needed however I would appreciate any guidance in further assisting me with this
/r/django
https://redd.it/beub5v
Website.com
Create Your Free Website | Free Website Builder | Website.com
Create a professional website for free with the Website.com website builder. Domain names, web hosting, website templates, and ecommerce solutions included.
Why Use Anaconda?
Hi, I'm pretty new to python and I was wondering why do you use Anaconda and should I use it, and also what are some downsides of it
/r/Python
https://redd.it/betkoj
Hi, I'm pretty new to python and I was wondering why do you use Anaconda and should I use it, and also what are some downsides of it
/r/Python
https://redd.it/betkoj
reddit
r/Python - Why Use Anaconda?
39 votes and 23 comments so far on Reddit
Python: Lambda, Map, Filter, Reduce Functions explained in 1 simple video
https://youtu.be/w1Iy02rRdE4
/r/Python
https://redd.it/betytq
https://youtu.be/w1Iy02rRdE4
/r/Python
https://redd.it/betytq
YouTube
Python: Lambda, Map, Filter, Reduce Functions
A simple introduction to Pythons basic functions covering Lambda, Map, Filter and Reduce. If you do have any questions with what we covered in this video the...
Simple Linear Regression: How It works? (Python Implementation)
https://www.codeingschool.com/2019/04/simple-linear-regression-how-it-works-python.html
/r/Python
https://redd.it/bevaik
https://www.codeingschool.com/2019/04/simple-linear-regression-how-it-works-python.html
/r/Python
https://redd.it/bevaik
Codeingschool
Simple Linear Regression: How It works? (Python Implementation)
Simple linear regression is an approach for predicting a response using a single feature.
It is assumed that the two variables are linearly related. Hence, we try to find a linear function that predicts the response value(y) as accurately as possible as…
It is assumed that the two variables are linearly related. Hence, we try to find a linear function that predicts the response value(y) as accurately as possible as…
reqparse parser.add_argument()
Hi everyone,
​
I am not sure I understand how to user parser correctly. My confusion is: when adding arguments to the parser, say:
parser.add_argument('username', help = 'This field cannot be blank', required = True)
how does flask know to only look for the required argument in a specific route (in this case /login) ?
I haven't really tested it, but if I have multiple required arguments for different routes, I wonder if the application knows which ones are required for that route.
I would appreciate some help understanding this :) Thank you and happy holiday!
/r/flask
https://redd.it/beywgw
Hi everyone,
​
I am not sure I understand how to user parser correctly. My confusion is: when adding arguments to the parser, say:
parser.add_argument('username', help = 'This field cannot be blank', required = True)
how does flask know to only look for the required argument in a specific route (in this case /login) ?
I haven't really tested it, but if I have multiple required arguments for different routes, I wonder if the application knows which ones are required for that route.
I would appreciate some help understanding this :) Thank you and happy holiday!
/r/flask
https://redd.it/beywgw
reddit
r/flask - reqparse parser.add_argument()
0 votes and 0 comments so far on Reddit
Processing Unicode Data in Python - A Primer to Understand Non-English Data Processing
https://www.pixelstech.net/article/1554875127-Processing-Unicode-Data-in-Python---A-Primer-to-Understand-Non-English-Data-Processing
/r/Python
https://redd.it/beyilp
https://www.pixelstech.net/article/1554875127-Processing-Unicode-Data-in-Python---A-Primer-to-Understand-Non-English-Data-Processing
/r/Python
https://redd.it/beyilp
www.pixelstech.net
Processing Unicode Data in Python - A Primer to Understand Non-English Data Processing
Introduction:Currently we live in a world where people of diverse cultures/backgrounds use electronic devices to express their ideas, do their daily work that earns them their daily bread, and enterta