blank page on python flask project
Im working on a web application with python flask, html, css, bootstrap and sqlite db. I have created the base.html file (instead of index), base_guest.html (extends base) and the login_fron.html (extends base_guest) which is for the login. Even though everything seems to be fine everytime i try to run 127.0.0.1:5000/login nothing appears on my vs code terminal or the web page and when i press ctrl + u to see the source of the page nothing appears on the source. Does anyone have an idea what coulod be wrong. ( "* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 167-011-435" thats the only thing that appears on my vs code even when i run the web page)
base.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<noscript>Tasks {% block noscript %}{% endblock %}</noscript>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a
/r/flask
https://redd.it/1pj5fpr
Im working on a web application with python flask, html, css, bootstrap and sqlite db. I have created the base.html file (instead of index), base_guest.html (extends base) and the login_fron.html (extends base_guest) which is for the login. Even though everything seems to be fine everytime i try to run 127.0.0.1:5000/login nothing appears on my vs code terminal or the web page and when i press ctrl + u to see the source of the page nothing appears on the source. Does anyone have an idea what coulod be wrong. ( "* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 167-011-435" thats the only thing that appears on my vs code even when i run the web page)
base.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<noscript>Tasks {% block noscript %}{% endblock %}</noscript>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a
/r/flask
https://redd.it/1pj5fpr
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
django intertia might be the biggest game changer
Have been using it for a bit now when before I had a nextjs app and was using django as our api backend
We ended up trashing the nextjs app and brought it over to inertia so django can be the beautiful monolith it is and its been flawless
thats all. Had to share
/r/django
https://redd.it/1pjapxb
Have been using it for a bit now when before I had a nextjs app and was using django as our api backend
We ended up trashing the nextjs app and brought it over to inertia so django can be the beautiful monolith it is and its been flawless
thats all. Had to share
/r/django
https://redd.it/1pjapxb
Reddit
From the django community on Reddit
Explore this post and more from the django community
Howto: File Uploads with Django & DRF
https://django.wtf/blog/file-uploads-with-django-drf/
/r/django
https://redd.it/1pj99hk
https://django.wtf/blog/file-uploads-with-django-drf/
/r/django
https://redd.it/1pj99hk
How to make long dropdown options break into multiple lines in Django?
Hi everyone,
I’m facing an issue in my Django project with a dropdown (select field). Some of the options have long text, but instead of wrapping to the next line, the text gets cut off. I’ve already tried several approaches, but none of them worked due to Django’s select widget behavior, which doesn’t seem to allow modifying this easily.
Has anyone dealt with this before or knows a CSS/HTML workaround that works for Django forms or admin? Or maybe an alternative would be to show the full content when hovering over the option?
Thanks in advance!
/r/djangolearning
https://redd.it/1pd3uto
Hi everyone,
I’m facing an issue in my Django project with a dropdown (select field). Some of the options have long text, but instead of wrapping to the next line, the text gets cut off. I’ve already tried several approaches, but none of them worked due to Django’s select widget behavior, which doesn’t seem to allow modifying this easily.
Has anyone dealt with this before or knows a CSS/HTML workaround that works for Django forms or admin? Or maybe an alternative would be to show the full content when hovering over the option?
Thanks in advance!
/r/djangolearning
https://redd.it/1pd3uto
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
R How does one get "invited talks" or any "talk" for that matter for a published work?
The noscript --- I see PhD students get invited to present their recently published (or even arXiv based) work here and there. How does that work? Do people just reach out to you or do you reach out to people looking for speakers?
In case of the latter, how and where do you find such people? In case of the former, how to get noticed (without best paper awards and chunky publication history)?
P.S. If any of y'all looking for speakers, I'm doing some causal ML stuff.
/r/MachineLearning
https://redd.it/1pjbo1m
The noscript --- I see PhD students get invited to present their recently published (or even arXiv based) work here and there. How does that work? Do people just reach out to you or do you reach out to people looking for speakers?
In case of the latter, how and where do you find such people? In case of the former, how to get noticed (without best paper awards and chunky publication history)?
P.S. If any of y'all looking for speakers, I'm doing some causal ML stuff.
/r/MachineLearning
https://redd.it/1pjbo1m
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
This one liner bug fix took 3 hours to identify and understand.
Yesterday I lost two full hours of my life to the most infuriating Django + Celery bug in a freelanced code base.
Issue:
Orders were being created fine.
Related OrderItems (created in a post_save signal) were saving correctly.
The confirmation email Celery task was being sent.
But inside the task, order.items.all() was empty.
Every. Single. Time.
I checked everything:
Signals were connected.
Transaction was committing.
No database replication lag.
Task was running on the same DB.
Even added time.sleep(5) in the task, still no items.
I was one step away from rewriting the whole thing with a service layer and explicit item creation inside the view. Then I looked at the code again:
def create_order(data):
with transaction.atomic():
order = Order.objects.create(**data)
transaction.on_commit(
lambda: send_order_confirmation.delay(order.id)
)
return order
Did you get it?
Turns out this is the classic Python closure-in-loop gotcha, but inside a single function.
The lambda captures the name order, not the value.
By the time the on_commit callback runs (after the transaction
/r/django
https://redd.it/1pjre47
Yesterday I lost two full hours of my life to the most infuriating Django + Celery bug in a freelanced code base.
Issue:
Orders were being created fine.
Related OrderItems (created in a post_save signal) were saving correctly.
The confirmation email Celery task was being sent.
But inside the task, order.items.all() was empty.
Every. Single. Time.
I checked everything:
Signals were connected.
Transaction was committing.
No database replication lag.
Task was running on the same DB.
Even added time.sleep(5) in the task, still no items.
I was one step away from rewriting the whole thing with a service layer and explicit item creation inside the view. Then I looked at the code again:
def create_order(data):
with transaction.atomic():
order = Order.objects.create(**data)
transaction.on_commit(
lambda: send_order_confirmation.delay(order.id)
)
return order
Did you get it?
Turns out this is the classic Python closure-in-loop gotcha, but inside a single function.
The lambda captures the name order, not the value.
By the time the on_commit callback runs (after the transaction
/r/django
https://redd.it/1pjre47
Reddit
From the django community on Reddit
Explore this post and more from the django community
What if groups are not enough for authorization?
In many cases, just a group doesn't give enough information to decide what a user can do or see.
Let's say I'm creating a site for car sharing. For the sake of simplicity, let's say we have administrators, car owners, and drivers. Administrators can do everything, so I'll just ignore those for now.
For a given car, we have different things that various users can do, and that depends on the relation between the user and the specific car/reservation, for example:
\- only the person who owns the car can edit the schedule for sharing it, and assign drivers to free slots in the schedule
\- everyone can request to reserve a slot in the schedule
\- only the owner of the car and the driver who made a reservation, can cancel that reservation
So we need to know the group someone is in, AND whether they are the owner of the current car, or the driver for the current reservation, etc. That makes the standard permissions framework a bit useless.
In the past I've use django-rules for this, but that seems to be poorly maintained. I was wondering how people in general implement this, do you extend the permissions framework somehow? Is there a best practice
/r/django
https://redd.it/1pj8ew3
In many cases, just a group doesn't give enough information to decide what a user can do or see.
Let's say I'm creating a site for car sharing. For the sake of simplicity, let's say we have administrators, car owners, and drivers. Administrators can do everything, so I'll just ignore those for now.
For a given car, we have different things that various users can do, and that depends on the relation between the user and the specific car/reservation, for example:
\- only the person who owns the car can edit the schedule for sharing it, and assign drivers to free slots in the schedule
\- everyone can request to reserve a slot in the schedule
\- only the owner of the car and the driver who made a reservation, can cancel that reservation
So we need to know the group someone is in, AND whether they are the owner of the current car, or the driver for the current reservation, etc. That makes the standard permissions framework a bit useless.
In the past I've use django-rules for this, but that seems to be poorly maintained. I was wondering how people in general implement this, do you extend the permissions framework somehow? Is there a best practice
/r/django
https://redd.it/1pj8ew3
Reddit
From the django community on Reddit
Explore this post and more from the django community
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/1pjisyw
# 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/1pjisyw
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Python tool to quickly create a nicely animated .gif out of an .stl for communicating ideas wout cad
* **What My Project Does**
takes a 3d model in stl and renders a quick isometric animation about two axes then does a crazy undo thing and loops all nice, just run, select .stl file and boom
* **Target Audience** (e.g., Is it meant for production, just a toy project, etc.
anyone working with 3d models that want to quickly send a visual to a colleague / friend / investor etc.
* **Comparison** (A brief comparison explaining how it differs from existing alternatives.)
I googled around for 5 minutes and it didn't exist in the form I imagined where it just selects a file and plops out a perfectly animated and scaled isometric rotating gif that loops all aesthetically perfectly and yes I did use claude but this is art okay
[https://github.com/adamdevmedia/stl2gif](https://github.com/adamdevmedia/stl2gif)
/r/Python
https://redd.it/1pjklha
* **What My Project Does**
takes a 3d model in stl and renders a quick isometric animation about two axes then does a crazy undo thing and loops all nice, just run, select .stl file and boom
* **Target Audience** (e.g., Is it meant for production, just a toy project, etc.
anyone working with 3d models that want to quickly send a visual to a colleague / friend / investor etc.
* **Comparison** (A brief comparison explaining how it differs from existing alternatives.)
I googled around for 5 minutes and it didn't exist in the form I imagined where it just selects a file and plops out a perfectly animated and scaled isometric rotating gif that loops all aesthetically perfectly and yes I did use claude but this is art okay
[https://github.com/adamdevmedia/stl2gif](https://github.com/adamdevmedia/stl2gif)
/r/Python
https://redd.it/1pjklha
GitHub
GitHub - adamdevmedia/stl2gif: takes a 3d model in stl and renders a quick isometric animation about two axes then does a crazy…
takes a 3d model in stl and renders a quick isometric animation about two axes then does a crazy undo thing and loops all nice - adamdevmedia/stl2gif
Just created a css utility class generator for my admin panel
Features:
* Generates a minified file for CSS utility classes.
* Generates a guide file for quick explaination and for feeding into AI models with as few tokens as possible.
* Compresses with brotli 11 because the main file is massive
[https://github.com/flicksell/css-utils-generator/](https://github.com/flicksell/css-utils-generator/)
Note - since it's something I made for my project, I don't imagine many people being able to use it as-is, but I think this could be an inspiration for something you might build (or vibe code) yourself in an opinionated manner.
/r/Python
https://redd.it/1pk6ij4
Features:
* Generates a minified file for CSS utility classes.
* Generates a guide file for quick explaination and for feeding into AI models with as few tokens as possible.
* Compresses with brotli 11 because the main file is massive
[https://github.com/flicksell/css-utils-generator/](https://github.com/flicksell/css-utils-generator/)
Note - since it's something I made for my project, I don't imagine many people being able to use it as-is, but I think this could be an inspiration for something you might build (or vibe code) yourself in an opinionated manner.
/r/Python
https://redd.it/1pk6ij4
GitHub
GitHub - flicksell/css-utils-generator: Simple CSS utility class generator
Simple CSS utility class generator. Contribute to flicksell/css-utils-generator development by creating an account on GitHub.
Just had the weirdest bug today
My plugin loading system started to hang indefinitely in all my tests randomly during one of my refactors. After a lot of painful stepping through I finally found out the bug was in fact cause by aiohttp which was hanging indefinitely on import for only God knows why. Rebooted my pc and it fixed itself and i couldn't replicate the bug since. Im on python 3.14 with the latest version of aiohttp anyone else had something similar to this happen to them recently? Trying to figure out the cause so it doesn't make my tests shit themselves again wasting debug time
/r/Python
https://redd.it/1pk5hnv
My plugin loading system started to hang indefinitely in all my tests randomly during one of my refactors. After a lot of painful stepping through I finally found out the bug was in fact cause by aiohttp which was hanging indefinitely on import for only God knows why. Rebooted my pc and it fixed itself and i couldn't replicate the bug since. Im on python 3.14 with the latest version of aiohttp anyone else had something similar to this happen to them recently? Trying to figure out the cause so it doesn't make my tests shit themselves again wasting debug time
/r/Python
https://redd.it/1pk5hnv
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Massive Excel exportation problem
I was assigned to solve a problem with a report. The problem is exporting massive amounts of data without overloading the container's CPU.
My solution was to create a streaming Excel exporter, processing and writing all the data in chunks. The details of my implementation were, first, to use the iterator() method of Django QuerySet to query the data in chunks from the database and then pass it to Pandas Dataframe, apply some transformations and overwrite a temporary file to complete all the data in the report, and finally upload it to a bucket.
This solution works very well, but I would like to know if you know of a better way to solve it.
/r/django
https://redd.it/1pkfzr4
I was assigned to solve a problem with a report. The problem is exporting massive amounts of data without overloading the container's CPU.
My solution was to create a streaming Excel exporter, processing and writing all the data in chunks. The details of my implementation were, first, to use the iterator() method of Django QuerySet to query the data in chunks from the database and then pass it to Pandas Dataframe, apply some transformations and overwrite a temporary file to complete all the data in the report, and finally upload it to a bucket.
This solution works very well, but I would like to know if you know of a better way to solve it.
/r/django
https://redd.it/1pkfzr4
Reddit
From the django community on Reddit
Explore this post and more from the django community
BezBartek/django-db-views: Creating automatic migrations for Views models witch working reverse and full command options like in normal makemigrations
https://github.com/BezBartek/django-db-views
/r/django
https://redd.it/1pjvsut
https://github.com/BezBartek/django-db-views
/r/django
https://redd.it/1pjvsut
GitHub
GitHub - BezBartek/django-db-views: Creating automatic migrations for Views models witch working reverse and full command options…
Creating automatic migrations for Views models witch working reverse and full command options like in normal makemigrations - BezBartek/django-db-views
Sveltekit authentication using better-auth and Django
I've been working on a side SaaS project for a couple of days and have reached a point where I'm satisfied with the backend and thinking on creating a Sveltekit front end. I've read a bit on how to setup authentication and a lot of resources mentioned better-auth which offers out of the box support for Sveltekit. However, I went through the documentation and it seems intended to be used as its own authentication backend/frontend, where better-auth saves user credentials and sessions in its own database separate from Django. I spent some time thinking about it and consulted stack overflow as well as ChatGPT and was recommended the following approach:
- Better auth handles all authentication and user registration, and saves credentials in its own database
- Sveltekit receives session token from better-auth as well as a JWT token
- Sveltekit uses the token to add an Authorization header to request made to Django
- Django decodes the JWT token, extracts the user making the request from the token claims, and authorizes the request
I'm not sure if this approach would be valid, since this would mean either having the credentials saved on both the Django db and authentication db/table, or the SaaS users would
/r/djangolearning
https://redd.it/1pkne5h
I've been working on a side SaaS project for a couple of days and have reached a point where I'm satisfied with the backend and thinking on creating a Sveltekit front end. I've read a bit on how to setup authentication and a lot of resources mentioned better-auth which offers out of the box support for Sveltekit. However, I went through the documentation and it seems intended to be used as its own authentication backend/frontend, where better-auth saves user credentials and sessions in its own database separate from Django. I spent some time thinking about it and consulted stack overflow as well as ChatGPT and was recommended the following approach:
- Better auth handles all authentication and user registration, and saves credentials in its own database
- Sveltekit receives session token from better-auth as well as a JWT token
- Sveltekit uses the token to add an Authorization header to request made to Django
- Django decodes the JWT token, extracts the user making the request from the token claims, and authorizes the request
I'm not sure if this approach would be valid, since this would mean either having the credentials saved on both the Django db and authentication db/table, or the SaaS users would
/r/djangolearning
https://redd.it/1pkne5h
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Django RAPID Architecture, a guide to structuring Django projects
https://www.django-rapid-architecture.org/
/r/django
https://redd.it/1pko7q6
https://www.django-rapid-architecture.org/
/r/django
https://redd.it/1pko7q6
www.django-rapid-architecture.org
Django RAPID architecture
A curated collection of patterns and idioms for successful, maintainable and robust Django codebases
Manage database sessionsor connections
I have API service using
(Python + MYSQL + SQLAlchemy + Celery workers)
Application starting to see more traffic.
I want to make sure I avoid connection leaks, timeouts, or overloading the DB.
1. How to monitor the connection count properly ?
2. Should every request open/close a DB connection or should I rely on a global connection pool ?
3. Rule of thumb for max connections vs DB instance size ?
Any references , appreciated Thanks
/r/flask
https://redd.it/1pkjdeo
I have API service using
(Python + MYSQL + SQLAlchemy + Celery workers)
Application starting to see more traffic.
I want to make sure I avoid connection leaks, timeouts, or overloading the DB.
1. How to monitor the connection count properly ?
2. Should every request open/close a DB connection or should I rely on a global connection pool ?
3. Rule of thumb for max connections vs DB instance size ?
Any references , appreciated Thanks
/r/flask
https://redd.it/1pkjdeo
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
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/1pkd3is
# 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/1pkd3is
Redditinc
Reddit Rules
Reddit Rules - Reddit
D Interview preparation for research scientist/engineer or Member of Technical staff position for frontier labs
How do people prepare for interviews at frontier labs for research oriented positions or member of techncial staff positions? I am particularly interested in as someone interested in post-training, reinforcement learning, finetuning, etc.
1. How do you prepare for research aspect of things
2. How do you prepare for technical parts (coding, leetcode, system design etc)
/r/MachineLearning
https://redd.it/1pkhblb
How do people prepare for interviews at frontier labs for research oriented positions or member of techncial staff positions? I am particularly interested in as someone interested in post-training, reinforcement learning, finetuning, etc.
1. How do you prepare for research aspect of things
2. How do you prepare for technical parts (coding, leetcode, system design etc)
/r/MachineLearning
https://redd.it/1pkhblb
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Open-sourcing my “boring auth” defaults for FastAPI services
What My Project Does
I bundled the auth-related parts we kept re-implementing in FastAPI services into an open-source package so auth stays “boring” (predictable defaults, fewer footguns).
Under the hood it covers the usual “infrastructure” chores (JWT/session patterns, password hashing, OAuth hooks, rate limiting, and related glue).
Project hub/docs: https://nfrax.com
Repo: https://github.com/nfraxlab/svc-infra
Target Audience
- Python devs building production APIs/services with FastAPI.
- Teams who want an opinionated baseline they can override instead of reinventing auth each project.
Comparison
- Vs rolling auth in-house: this packages the boring defaults + integration surface so you don’t keep rebuilding the same flows.
- Vs hosted providers: you can still use hosted auth, but this helps when you want auth in your stack and need consistent plumbing.
- Vs copy-pasting snippets/templates: upgrading a package is usually less error-prone than maintaining many repo forks.
(Companion repos: https://github.com/nfraxlab/ai-infra and https://github.com/nfraxlab/fin-infra)
/r/Python
https://redd.it/1pkto7d
What My Project Does
I bundled the auth-related parts we kept re-implementing in FastAPI services into an open-source package so auth stays “boring” (predictable defaults, fewer footguns).
from svc_infra.api.fastapi.auth.add import add_auth_users
add_auth_users(app)
Under the hood it covers the usual “infrastructure” chores (JWT/session patterns, password hashing, OAuth hooks, rate limiting, and related glue).
Project hub/docs: https://nfrax.com
Repo: https://github.com/nfraxlab/svc-infra
Target Audience
- Python devs building production APIs/services with FastAPI.
- Teams who want an opinionated baseline they can override instead of reinventing auth each project.
Comparison
- Vs rolling auth in-house: this packages the boring defaults + integration surface so you don’t keep rebuilding the same flows.
- Vs hosted providers: you can still use hosted auth, but this helps when you want auth in your stack and need consistent plumbing.
- Vs copy-pasting snippets/templates: upgrading a package is usually less error-prone than maintaining many repo forks.
(Companion repos: https://github.com/nfraxlab/ai-infra and https://github.com/nfraxlab/fin-infra)
/r/Python
https://redd.it/1pkto7d
Nfrax
nfrax - Infrastructure that just works
Production-ready infrastructure frameworks for AI, backend services, and financial data. Ship products, not infrastructure.
Open-source Flask projects to contribute to?
I’ve been working with Flask for two years, mostly on my own projects, but now I’d like to join a larger project and contribute to the open-source ecosystem.
Do you maintain or know of any projects where I could get some practice?
/r/flask
https://redd.it/1pkajq1
I’ve been working with Flask for two years, mostly on my own projects, but now I’d like to join a larger project and contribute to the open-source ecosystem.
Do you maintain or know of any projects where I could get some practice?
/r/flask
https://redd.it/1pkajq1
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
D On the essence of the diffusion model
Hi all, I am learning about diffusion models and want to understand their essence rather than just applications. My initial understanding is that diffusion models can generate a series of new data starting from isotropic Gaussian noise.
I noticed that some instructions describe the inference of the diffusion model as a denoising process, which can be represented as a set of regression tasks. However, I still find it confusing. I want to understand the essence of the diffusion model, but its derivation is rather mathematically heavy. The more abstract summaries would be helpful. Thanks in advance.
/r/MachineLearning
https://redd.it/1pkuoay
Hi all, I am learning about diffusion models and want to understand their essence rather than just applications. My initial understanding is that diffusion models can generate a series of new data starting from isotropic Gaussian noise.
I noticed that some instructions describe the inference of the diffusion model as a denoising process, which can be represented as a set of regression tasks. However, I still find it confusing. I want to understand the essence of the diffusion model, but its derivation is rather mathematically heavy. The more abstract summaries would be helpful. Thanks in advance.
/r/MachineLearning
https://redd.it/1pkuoay
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community