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
Where is css for admin pages?

Hi there, could someone point me at the css for the admin pages so I can make sure I don't change them in my own css by unwittingly using django class and id naming please?

/r/djangolearning
https://redd.it/cephv6
Python Machine Learning

2 months ago, I created and posted videos from my Python Machine Learning basics course on the this subreddit. So far they have been received very well! But as some videos were never posted I decided to include them all in this updated post for people in need of the new videos or for those who where not around when the first ones where posted. Feel free to give some feedback on my work. (All Implementation is done using Python 3)

* **Part 1 - Machine Learning For Beginners - Basics**

[https://youtu.be/E3l\_aeGjkeI](https://youtu.be/E3l_aeGjkeI)

* **Part 2 - MI environment**

[https://youtu.be/HqyrqxyDwPU](https://youtu.be/HqyrqxyDwPU)

* **Part 3 - Python Decision Tree (Theory)**

[https://youtu.be/8isUCINSmys](https://youtu.be/8isUCINSmys)

* **Part 4 - Python Decision Tree (Coding)**

[https://youtu.be/24mxQzd3EsU](https://youtu.be/24mxQzd3EsU)

* **Part 5 - Python Decision Tree (Graphiviz)**

[https://youtu.be/aVEfKRfWjHc](https://youtu.be/aVEfKRfWjHc)

* **Part 6 - Knn(Friend Recommender)**

[https://youtu.be/LK0zgA6Mr6k](https://youtu.be/LK0zgA6Mr6k)

* **Part 7- 5-Fold Cross Validation**

[https://youtu.be/Zx5cz8pXnOM](https://youtu.be/Zx5cz8pXnOM)

/r/Python
https://redd.it/cew4iw
Python script to install modules

I made a small python script which can parse other python scripts, and install modules/packages declared in an import or a from.


I made this because it's annoying to be receiving a script/file to work on, and not being provided a requirements.txt.


This install script can also intake multiple script inputs, and download specific versions of packages.


\*the specific version part is not convenient at all, but it's something\*

​

I'm just trying to make anything I can, to continue improving my python and developing in general. Hopefully this helps someone.

​

[https://github.com/alex067/Python-Module-Installer-Script](https://github.com/alex067/Python-Module-Installer-Script)

/r/Python
https://redd.it/cf0kw8
So many libraries, so little time.

Anyone else have that "I need to learn and know everything now!" syndrome? I listed like 15 libraries and a handful of other technologies I found being requested on Indeed. It was more or less a way to compensate for the inevitable imposter syndrome. Has anyone gotten hired for jobs not knowing the "required proficiencies"?



I've only been coding Python for a year and feel like I have a pretty good grasp on the language. That is, until I look for jobs. I have a feeling I'm not the only one thinking to just learn what I need to right now and figure the rest will be taught to me at whatever job I'm able to acquire.

/r/Python
https://redd.it/ceycit
How does a Flask app serve multiple users/requests at once?

How does a Flask/Django app which is synchronous and single threaded serve multiple users at once?

Im learning a bit of JS off a playlist on Youtube and a video discusses async programming and its advantages in context of I/O. This made me wonder: are there certain kinds of web applications which are better suited to being developed using Node.js than a Python framework? Since a lot of the general web apps(read CRUD) need database access, would all such apps be better off being written in Node ?

/r/flask
https://redd.it/cesmvt
ELK (Elasticsearch, Logstash & Kibana) stack setup in Django

Hey everyone.. Has anybody worked on ELK stack in their Django project?? If so please help me in integrating in my project.. Its really blowing up my mind and i need to finish the task.. Also if you could show some code that will be great..

I googled it and know what is the use of it but how to integrate it with Django i just couldn't understand.

/r/django
https://redd.it/cf2oxt
Debugging Flask on a digital ocean droplet server (using ubuntu)

Recently I deployed my first Flask application on a Droplet that uses an Ubuntu with nginx and uWSGI.

Now, I have a problem and I can't use the GET/POST methods to signup and login, at least that is what I hypothesised, because I filled every input for the signup and when I tried to login I couldn't. Furthermore I tried to login with wrong credentials and I got an error, which is normal since I programmed it to output an error if I tried to login as a non-user.


Now if you try to recreate that exact problem follow [this tutorial](https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04) and instead of the simple app that it uses just [git clone this repo](https://github.com/anfederico/Flaskex) which is a Flask example that uses an SQLite db (that is what I used as my base app to create the one that I wanted to deploy, so I thought that if it worked my Flask app will work as well).


But to summarize my problem; **I can't access the sub directories of my Flask app, using login/signup methods and I don't know how to debug that.**


Can anyone help me with that?

/r/flask
https://redd.it/cf4r9l
I made an application which shows a new motivational quote every 2 minutes.

/r/Python
https://redd.it/cf3n3v
[P] I made a video review of The Hundred-Page Machine Learning Book

I enjoy learning about machine learning.

And I enjoy making videos.

So I made a video reviewing [The Hundred-Page Machine Learning Book](https://themlbook.com) by Andriy Burkov.

I read it from the perspective of a machine learning engineer and still learned a bunch.

If you haven't checked out the book, it's a great concise read. There's nothing like a complex topic explained simply.

If you do watch the video, any advice on ways to improve or future reviews/topics would be greatly appreciated.

[https://youtu.be/btLxTTkSZuY](https://youtu.be/btLxTTkSZuY)

/r/MachineLearning
https://redd.it/cf4rh5
[P] Comprehensive Machine Learning Trading Strategies - Google Colab

100+ Machine Learning Trading Strategies

[https://github.com/firmai/machine-learning-asset-management](https://github.com/firmai/machine-learning-asset-management)

​

\- Deep Learning

\- Reinforcement Learning

\- Evolutionary Strategies

\- Stacked Models

/r/MachineLearning
https://redd.it/cf111a
How to link Flask static files?

I am making a basic blog using HTML,and CSS. I linked my HTML file but I am having trouble linking the CSS.

This is the following code:

from flask import Flask,render_template,url_for

app = Flask(__name__)

@app.route('/')
def hello_world():
return render_template('home.html'), url_for('static', filename='main.css')

Thanks,

/r/flask
https://redd.it/cf7zr4
Is there a tutorial around to make a reddit like site?

I've googled it but keep finding reddit threads about making django sites. I would like to make something like reddit, but not sure where to start. Having a guide or tutorial I could follow would help a lot.

/r/django
https://redd.it/cfbapi