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
Thursday megathread: Python careers!

Discussion of using Python in a professional environment, getting jobs in Python and more!

**This thread is not for recruitment, please see** r/PythonJobs **or the thread in the sidebar for that.**

/r/Python
https://redd.it/iu8062
An update on Python 4

/r/Python
https://redd.it/itzn13
Best Way To Start Learning Python - A Complete Roadmap

Python is one of the most popular language among programmers.

Now the question is ***where to start? How much time it will take to learn this language? what topics you should cover? what are the Python libraries or frameworks?*** As a beginner, you will be confused that what should I choose first.

Should I learn all the concepts from a book or should I go for an online tutorial? Let’s discuss the [Entire road-map to become a Python developer.](https://www.geeksforgeeks.org/best-way-to-start-learning-python-a-complete-roadmap/)

/r/Python
https://redd.it/itoq8j
How to handle file uploads in Django Rest Framework?

Hello!

I'm currently working on a Django API in the Django Rest Framework. The API needs to be able to support ( and I suspect - a lot ) of file uploads more or less simultaneously. The file sizes may vary wildly. The application needs to analyse and then destroy the files.

I'm having trouble with the research for this issue, as there doesn't really seem to be a production ready solution out there.

In Flask I would probably use some sort of multi upload and maybe something like Celery. Does Django have it's own "worker" implementation? What would be the most optimal way to handle a lot of "analyse this file for me" requests?

/r/django
https://redd.it/iu4rf1
Build a web app in 20 minutes

Beset by pandemic, smoke and 2020 in general, I have found solace in creating a generator that creates multi-table, multi-form apps for sqlalchemy databases. It enables you to build an app in 10 minutes.

It’s based on Flask AppBuilder, itself based on Flask and SqlAlchemy.

Check it out on github: [https://github.com/valhuber/fab-quick-start](https://github.com/valhuber/fab-quick-start)

/r/Python
https://redd.it/iubkx2
Anyone doing Monolithic Django?

Printing a hello world over kubernetes cluster is an overkill, so are multiple microservices when you do not need them. I loved monolithic django, but with the advent of microservices architecture and modern JS libraries react, vue, and the likes, here is what you got to do

​

1. Create a DRF Backend
2. Take care of authentication at both ends
3. Build your SPA in a modern JS framework.

The good is modularity, maintainability, better UX controls, super interactive UIs, and the likes, the bad is you need to write more code. In simple cases the good old django templates is good enough. Is anyone still doing them? I love the organised new age FE framework code, the imports that come with ES6.

​

Is anyone still doing monolith with django template and ES6. If so, mind sharing your workflow, and libraries?

/r/django
https://redd.it/iudzvz
I made a bot that will randomly generate videos and upload them to youtube

[https://www.youtube.com/channel/UCDANaYKjOBTH4TsczbBj9KQ](https://www.youtube.com/channel/UCDANaYKjOBTH4TsczbBj9KQ)

​

using moviepy to compose the images and youtube api to upload,

/r/Python
https://redd.it/iudmic
Django ORM

I am developing with Django for a couple years now. The documentation is great but I don‘t seem to get many concepts of advanced querying. Can you recommend any resources that take a deep dive into the topic with explanations and examples?

/r/django
https://redd.it/iugo97
Problem in Deployment of hobby projects.

I’m currently building a simple hobby project which uses allauth with sendgrid integration. I’m still using sqlite3 since I can easily switch to other DB by changing settings.py

I want to deploy the project for free. I’ve tried PythonAnywhere so far, but the problem is it won’t allow for smtp requests. So I cannot send emails. Is there any fix for this?

Is there any other free deployment services for hobby projects that I can use!

/r/djangolearning
https://redd.it/iuge9w
What is the equivalent of home and clear in iPython?

Hi, I am using iPython through xterm on Mac. I tried to clear the screen and move the cursor on the top left using "home" but it does not work. What command can I use? Also, if I want to clear all the variables and values I created in iPython, what command should I use? Thank you

/r/IPython
https://redd.it/iunaf2
spark context times out

When in jupyter notebook, after some time my spark context times out and I have to reload my cells all over again. Is there a way to stop this from happening? Or to have it auto reload by itself without any manual intervention.

/r/JupyterNotebooks
https://redd.it/iuq72t
Flask-AWSCognito Client Question

I have a question if anyone here has used Flask-AWSCognito before. In the documentation page section for Client is very vague and I'm still very new at python web development so how would I get a client to remember the access token and present it to each request to the flask endpoints?

/r/flask
https://redd.it/iuu96b
Continuous graph when time resets

Hello! I'm trying to graph data, but when the time resets to 0, the graph goes back to the start and I get overlapping data in my graph. How can I make it such that the graph keeps going without overlapping? Example: let's say that time resets after 30 minutes, at which time the clock resets back to 0, but I want the graph to keep going forward instead of going back to the beginning and drawing over the old data.

I am using Matplotlib.pyplot in a jupyter notebook. Sorry for not saying that earlier.

/r/IPython
https://redd.it/iu5ghu
Django 3.0 and above on a Raspberry Pi. Is it possible?

I'm learning Django and my development server is a Raspberry Pi 4, has anyone got Django 3.0 or above installed and working on a Raspberry Pi?

Or am I going to have to ditch Raspberry Pi OS and install Ubuntu Server on my Pi?

EDIT: OK, so [onosendi](https://www.reddit.com/user/onosendi/) suggested pip3...

So I ran:

**pip3 install django==3.1.1**

And it appeared to install, but I am unable to confirm the version by running:

**django-admin --version**

But if I go into:

**Python3**

..and then:

**import django**

**print(django.get\_version())**

I get:

**3.1.1**

Result! :)

/r/django
https://redd.it/ius2to
Friday megathread: Free chat Friday!

Use this thread to talk about anything Python related! Questions, news, projects and any relevant discussion around Python is permitted!

/r/Python
https://redd.it/iuveug