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
Running a tensorflow model using celery/huey worker

Hey i am making a django project that uses a tensorflow model to create and make predictions. What i am trying to do is that, i wanna use a celery worker to achieve this. The prediction will be made in the background using that celery worker. Is this a good approach and will this work?

/r/django
https://redd.it/it684g
Can I use Flask for only the database, but create all the front end in Html, CSS, and some JS?

So I am a beginner and I was following Corey Schafer's Flask tutorial when I ran into a huge problem and couldn't debug it. I was forced to scrap it and I wanted to try again, but this time only use SQLAlchemy for the database part, and Html/CSS/JS for the front end. Is that possible or do I HAVE to use the exact html and css?

/r/flask
https://redd.it/ithy8u
Wednesday megathread: Beginner questions

New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!

/r/Python
https://redd.it/itknop
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