cookie

We use cookies to improve your browsing experience. By clicking «Accept all», you agree to the use of cookies.

avatar

Python Daily

Daily Python News Question, Tips and Tricks, Best Practices on Python Programming Language Find more reddit channels over at @r_channels

Show more
Advertising posts
2 497
Subscribers
+224 hours
+77 days
+930 days

Data loading in progress...

Subscriber growth rate

Data loading in progress...

Show all...

I am overwhelmed by the django docs. I am constantly trying to grasp the idea about DRF from their docs but I am afraid and overwhelmed by the topics and languages used there. Most of the time when I sit to read certain topic and while reading the topic there comes another topic or feature which is new to me and I click into that link and the cycle repeats and I found myself to be lost. If you are in the field of DRF, please suggest me how you get confidence at your initial days and what we're the strategies you used to grasp the good understanding over this framework. Your suggestions would also mean another. Thank you. /r/djangolearning https://redd.it/1fl7mm6
Show all...

Tips on structuring modern python apps (e.g. a web api) that uses types, typeddict, pydantic, etc? I worked a lot on python web/api apps like 10-15 years ago but have mostly used other languages since then. Now I'm back to building a python app, using all the latest tools like type hinting, FastAPI, and Pydantic which I'm really enjoying overall. I feel like code organization is more of a headache than it used to be, though, and I need better patterns than just MVC to keep things organized. E.g. a simple example - if I define a pydantic class for my request body in a controller file and then pass it as an argument to a method on my model, there's automatically a circular import (the model needs to define the type it takes as its argument, and the controller needs to import the model). I know you can use "if TYPE_CHECKING" but that seems messy and it means you can't use the type at runtime to do something like "if type(foo) = MyImportedType". What are some good file structure conventions to follow that make this easier? /r/Python https://redd.it/1fkz1cb
Show all...

Friday Daily Thread: r/Python Meta and Free-Talk Fridays # Weekly Thread: Meta Discussions and Free Talk Friday 🎙️ Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related! ## How it Works: 1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community. 2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community. 3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting. ## Guidelines: All topics should be related to Python or the /r/python community. Be respectful and follow Reddit's Code of Conduct. ## Example Topics: 1. New Python Release: What do you think about the new features in Python 3.11? 2. Community Events: Any Python meetups or webinars coming up? 3. Learning Resources: Found a great Python tutorial? Share it here! 4. Job Market: How has Python impacted your career? 5. Hot Takes: Got a controversial Python opinion? Let's hear it! 6. Community Ideas: Something you'd like to see us do? tell us. Let's keep the conversation going. Happy discussing! 🌟 /r/Python https://redd.it/1fkyw3m
Show all...
Content Policy

SQLAlchemy Helper (for VS Code) Hey guys, wanted to share this VS Code chat extension that makes it easier to use SQLAlchemy. It's basically a RAG system trained on SQLAlchemy's docs that developers can query through VS Code. https://marketplace.visualstudio.com/items?itemName=buildwithlayer.sqlalchemy-integration-expert-jYSzG /r/flask https://redd.it/1fkv8uj
Show all...
SQLAlchemy - Visual Studio Marketplace

Extension for Visual Studio Code - An AI Chat System Trained on SQLAlchemy Documentation

Best way to eliminate or reduce redundancy in views? I'm in the process of building a live chat using django\_channels and frontend as reactJS. In this project, I'm trying to be more familiar with class based views and utilize them as much as I can . The question that I have is what is the convention or best practice when eliminating or reducing redundancy in the views. I have three sets of snippets in the bottom and all of them are using .list() method to implement .filter(). Is there a way to reduce this or better way to this with less code? Any info will be greatly appreciated. Thank you very much. class CommunityMessagesView(ListAPIView): queryset = CommunityMessage.objects.all() # authentication_classes = [TokenAuthentication] # permission_classes = [IsAuthenticated] def list(self, request, *args, **kwargs): queryset = self.get_queryset().filter(community__name=kwargs['community_name']) serializer = CommunityMessageSerializer(queryset, many=True) /r/django https://redd.it/1fkzzih
Show all...

🇧🇷 Marketplace de Veículos. Consegue me ajudar? Fala galera, beleza? Meu nome é João, e to desenvolvendo um Marketplace de Veículos. Obviamente pretendo atuar regionalmente a princípio, com plano de escalar pra nível estadual, a depender da adoção do mercado. Pra resumir bastante trabalho com revenda de veículos usados já tem uns 8 anos. Minha família empreende no ramo tendo mais duas outras empresas do mesmo nicho na nossa cidade, e eu recentemente (junho de 2022) abri a minha própria loja de motos. Diante dessa experiência prévia no mercado de revenda de veículos, ao observar o quanto do orçamento de marketing é direcionado pra esses marketplaces como WebMotors, iCarros, e muitos outros a nível regional do seu Estado, pensei: tem espaço pra mais um. Não é uma ideia inovadora, nem disruptiva, é um mercado consolidado e validado com grandes players bem estabelecidos. Mas a depender da região e da abordagem de marketing e vendas, existe uma lacuna. Vamos falar de desenvolvimento. Tenho uma pequena experiência com Flask, HTML, CSS, Bootstrap e JS. Já construí alguns projetos com essas tecnologias e me atenderam bem até onde precisei ir. Mas quando se trata de um marketplace de veículos com múltiplos usuários, múltiplas sessões simultâneas, alto volume de upload de imagens, eu sinceramente /r/flask https://redd.it/1fl0cub
Show all...

Looking to hire Django developer with strong frontend skills I run a med student education platform (Geeky Medics) built on Django with several hundred thousand users. You’re welcome to sign up and explore the app's various elements (app.geekymedics.com). I've been working on it for the last 14 years, alongside my training as a doctor. We already have a couple of awesome, senior Django developers, but I’m looking for someone who is particularly strong in frontend development/UI/UX (even if junior from a Django perspective).  Our stack is straightforward Bootstrap 5, JS and some recent sprinklings of HTMX (no fancy JS frameworks). We’re fully remote and async. I'm looking for someone able to commit to 1-3 days a week, ideally. I'm happy to discuss rates, etc. You can message me with some details of your experience, and I’ll get back to you ASAP.   /r/django https://redd.it/1fkxfa9
Show all...

Choose a Different Plan

Your current plan allows analytics for only 5 channels. To get more, please choose a different plan.