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 Daily Thread: Python Careers, Courses, and Furthering Education!

# Weekly Thread: Professional Use, Jobs, and Education 🏢

Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.

---

## How it Works:

1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.

---

## Guidelines:

- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.

---

## Example Topics:

1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?

---

Let's help each other grow in our careers and education. Happy discussing! 🌟

/r/Python
https://redd.it/18ci6c7
Need help with first flask project ( collage management system)

Hey people of flask . I am new here as well as to flask , i am doing that flask project with my mates for a college assignment . the project is a "college management system" i am doing the oop with pure python , someone is doing the front-end with html and css , and there is someone doing flask and handling database (we are using sqlachemy and sqlite) . for me i am doing classes for students,profs,prof-assts,courses, and creating relations between them. so there will be the courses with their labs and the prof teaching it and assistant giving the lab. when a student enrolls a course he will be added to list of students who enrolled the course, to list of students the prof is teaching and this list contains dictionaries each with the course and students enrolled it ,same for the assistant , and finally the student will have a list of courses they enrolled . as for oop i guess i did a pretty solid structure and relations . the front-end is pretty good also, now when it comes to flask and data base how can we connect those together . when we take

/r/flask
https://redd.it/18cfkm9
Simple and easy documentation Builder

Hello redditors,

I've been working on an open-source project called BrowseDocs, designed to assist open-source developers in documenting their libraries and tools with greater intuitiveness. The goal is to provide developers with an integrated and enhanced user experience while reading documentation.

​

Some of the current features include:

Generate documentation pages from markdown files (chose .md because most of the developers are familiar).
Create multi-version, multi-paged documentation with a click of button.
dark/light themes included by default.
A quick search. (currently just a simple search)
A separate about page for every project.
Rich text editor for developers to write blogs and tutorials.

Now the project itself is in its first iteration, which is why I look forward for your feedback. I'd like to know what features you'd like to see in the upcoming releases and what features you'd like to be removed from the project. I look forward to your responses.

PS: I am still working on enhancing the UI of the landing page, any heads up would be greatly appreciated

​

You can visit the project at https://browsedocs.com

Github repo for the project: https://github.com/PaulleDemon/BrowseDocs

​

Thanks,

Have a great day ahead.

​

/r/Python
https://redd.it/18c8uqu
Saluting the Unsung Hero: A Tribute to Django Admin

In the bustling world of web development, where flashy front-ends and complex back-ends often steal the spotlight, there lies an unsung hero quietly powering many of our projects – Django Admin. This tool has been a steadfast ally to developers, making database management seem like a breeze.

From the effortless customization to the intuitive user interface, Django Admin has transformed the mundane tasks of data entry and management into a smooth and efficient process. Its robust yet flexible framework allows us to tailor it to our specific needs, making each project not just manageable but enjoyable.

What truly sets Django Admin apart is its seamless integration with Django applications. It respects our time, understands our needs, and delivers without fail. Whether it's handling complex queries or managing vast amounts of data, Django Admin does it with unparalleled grace and efficiency.

So here's to Django Admin - a tool that doesn't just make our lives easier but also enhances the quality of our work. In a tech world where the latest tools often overshadow the foundational ones, Django Admin continues to be a pillar of reliability and functionality.

As we continue to navigate the ever-evolving landscape of web development, let's take a moment to appreciate

/r/django
https://redd.it/18ciefr
Introducing Pharaoh-Report: a report-generation framework powered by Sphinx and Jinja

I'd like to introduce Pharaoh,

a Sphinx\-based Python framework for generating reports in various formats by combining the power of configurable Jinja templates and Python scripts for asset generation.

We have developed it last year in our company to simplify and automate the report generation for measurement results. We mostly output HTML and Confluence reports, but also Latex might be needed in future (contributions welcome).
Since we didn't want to reinvent the wheel, we decided to stick to open-source libs like Sphinx and Jinja, which retrospectively was a good move since it turned out so well.

Also we decided to give something back and management allowed us to make it open source (MIT), hoping it will get picked up by this great community ;)

Pharaoh may be extended using pluggy (e.g. for company internal plugins).

Please let me know what you think! If you like it, give it a star ;)
It's our team's first project on GitHub, so help and contributions highly welcome!

For more information, please refer to the official documentation, Github and PyPI.

Installation via pip: pip install pharaoh-report

Here some info right away (from the docs):

https://preview.redd.it/q0kn5kf34u4c1.png?width=1002&format=png&auto=webp&s=c831ed71e261bf67fdbefdd2a20122d562b05ac2

Pharaoh automated the process of manually creating assets (plots, tables, ...) and including it into

/r/Python
https://redd.it/18crkc5
GoDaddy with Flask Mail

Hello everybody, I recenty signed up for my own domain using GoDaddy. However when I try to send emails using the flask-mail wrapper it does nothing, the program keeps running (so no errors) however there is no mail being send and all the code after it will not execute.

​

In my config I did:
MAIL_USERNAME = 'mail_username'

MAIL_PASSWORD = 'mail_password'

MAIL_SERVER = 'smtpout.secureserver.net'

MAIL_PORT = 465

MAIL_USE_TLS = True

MAIL_USE_SSL = False

​

And this is the function I have for sending a mail:

def send_contact_mail(content, name, subject, user_mail):

msg = Message("User Question",sender='test@test.com',recipients=[user_mail\])

msg.body = CONTACT_BODY.format(name=name, mail=user_mail, subject=subject, content=content)

web_mail.send(msg)

​

Any clue as to why it does not work?

​

PS. If I use the script from this Github page it does work https://github.com/RohanDas28/Go-Daddy-email-sender-python/blob/main/main.py , however I would prefer using flask-mail

/r/flask
https://redd.it/18c7b6n
HELP

so im a student i dont have much experience, im working on a project where i need to manage two types of users initially i created 2 tables in the database and now the login part is messed up can someone guide me how do i manage two different users both will have different attributes for signing up ,how will the form and everything else work?

/r/flask
https://redd.it/18cttue
I created a no-cost AWS infrastructure boilerplate for Python API

Hi r/Python!

I created a low-cost AWS infrastructure boilerplate for Python API (Django as implemented). Works with free tiers for accounts less than a year old. The only thing you need to pay for is Secret Manager (1$ monthly for each secret).

What's in the box?
It's a boilerplate to link up your Python API with AWS. It keeps things straightforward, and AWS CDK makes it easy to tweak the setup.

Why bother?
If you've ever wanted a straightforward way to get your API going without making things overly complicated, this could be useful. It's all about building your app fast without boxing you into a rigid system. By using AWS CDK your infrastructure could be extended without any limits!


Fully deployed project uses:

RDS (postgres, T3 MICRO)
S3 bucket (for static files, images or/and django-admin)
Lambda (DockerImage with 3 MB of memory and 60 second timeout by default)
ECR (keeps only 2 newest images)
API Gateway
RDS secrets (generated automatically)
Other secrets (like DJANGO_SECRET_KEY, generated manually)

It's my first "open source" solution. I'm open to hearing your thoughts and any ideas you might have. Thanks for checking it out, and I hope this makes your development process a bit

/r/Python
https://redd.it/18crgim
Which AI is best for Django help?

I have found chatgpt 3.5 pretty great for certain tasks, on waitlist for 4.0. Obviously it has its limitations but I'm wondering if there are any AIs out there that work better specifically for django/python. I have not tried anything else.

/r/django
https://redd.it/18cxjsy
I finally have something worthy of posting on the Python Reddit. I present to you SavonPython!

https://github.com/huths0lo/SavonPython


I shop at vons. They have digital coupons that can offer some hefty discounts if you use them. The best way to maximize your savings is to literally just clip every single coupon; whether you use it or not. They are adding literally hundreds every single week, so this could be a huge time suck. I wanted to find a way to automate this so that all of my coupons were clipped automatically.


This lead me on a journey of understanding what are the interactions that take place between an end user and their app. I was initially trying to understand how their app worked on my iphone, but eventually realized that the iphone app always requires a one time passcode; which I cant automate around easily. I do have some sms automation, but it would require I change my account to a different phone number, and wouldnt really be usable by others. But I found that they have the same functionality on vons.com, which does allow for the use of passwords.


I'm not a web developer. In fact I only have a couple of years of programming

/r/Python
https://redd.it/18d6oyz
Inherited Model with Inherited Serializer

Hi all!

Even just the necessary keywords to look this up on my own would be awesome, I'm not sure how to phrase it.

I have two models, where ChildModel is inheriting from ParentModel:

class ParentModel(models.Model):
field_1 = models.IntField()
field_2 = models.IntField()
count = models.IntField(default=0)


class ChildModel(ParentModel):
field_3 = models.IntField()
sub_count = models.IntField(default=0)

Then, I have two serializers:

class ParentModelSerializer(serializers.ModelSerializer):
class Meta:
model = models.ParentModel
fields = '__all__'

field_2 = serializers.IntField(read_only=True)
count = serializers.IntField(read_only=True)

def create(self, validated_data):
instance = models.ParentModel.objects.create(**validated_data)


/r/django
https://redd.it/18d6roz
Developing APIs with DRF

I have a question regarding the text case used when developing APIs from Django models. DRF has a model serializer class that automatically creates a serializer based on model fields. For instance, if you have a User model and there's a field called first_name is it OK to use the field_name as a key name in your API or firstName? In short, which one is appropriate between {'first_name': 'Django'} and {'firstName':'Django'}

/r/django
https://redd.it/18cvawj
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/18d9i0f