How do i set up a SSL certificate on flask app with mod_wsgi inside a docker containter
I signed up on cloudflare and got a free SSL certificate and i have a .pem file and a .key file and here is the dockerfile i used for my image
# Start with a base Python image
FROM python:3.11
# Install necessary system packages
RUN apt-get update && \
apt-get install -y \
apache2 \
apache2-dev \
libapache2-mod-wsgi-py3 \
locales \
&& rm -rf /var/lib/apt/lists/*
# Generate locale and set locale environment variables
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && \
update-locale LANG=en_US.UTF-8
# Create a non-root user and group
RUN groupadd -r mostafa && useradd -r -g mostafa mostafa
# Create a directory for your application
RUN mkdir /application
/r/flask
https://redd.it/1hnrmwm
I signed up on cloudflare and got a free SSL certificate and i have a .pem file and a .key file and here is the dockerfile i used for my image
# Start with a base Python image
FROM python:3.11
# Install necessary system packages
RUN apt-get update && \
apt-get install -y \
apache2 \
apache2-dev \
libapache2-mod-wsgi-py3 \
locales \
&& rm -rf /var/lib/apt/lists/*
# Generate locale and set locale environment variables
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && \
update-locale LANG=en_US.UTF-8
# Create a non-root user and group
RUN groupadd -r mostafa && useradd -r -g mostafa mostafa
# Create a directory for your application
RUN mkdir /application
/r/flask
https://redd.it/1hnrmwm
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
first contribution
Hey all, I'm a data engineer with 4 years of experience who has done side projects with django for last 2 years.
To be honest even though I like my job, I'm in love with django. And for the first time I was able to contribute to one of the most known packages of it, django-allauth.
The contribution was the simplest possible, just a config change. But I feel just too happy.
I hope in the future I'll use the project more extensively and do more significant contributions.
I just wanted to share my thrill, love you guys.
/r/django
https://redd.it/1ho51of
Hey all, I'm a data engineer with 4 years of experience who has done side projects with django for last 2 years.
To be honest even though I like my job, I'm in love with django. And for the first time I was able to contribute to one of the most known packages of it, django-allauth.
The contribution was the simplest possible, just a config change. But I feel just too happy.
I hope in the future I'll use the project more extensively and do more significant contributions.
I just wanted to share my thrill, love you guys.
/r/django
https://redd.it/1ho51of
Reddit
From the django community on Reddit
Explore this post and more from the django community
Is SQLite enough for this"small" app and what kind of security measures must I consider?
I'm developing an application for a hospital I work for, a website for medical residents to register so that the teaching department has better control and access to their data. It's fairly simple, very lean, and the population of residents is about 1000 with around 85 speciality courses.
Users will be able to register and set their data and there's 4 roles, student, profesor, division chief and teaching staff, with increased permissions.
I expect users creating accounts only on the first month of their program, all of which start at the same time of the year.
Data edits would be rare I think.
And the app won't store images or any other kind of file from users.
The questions are:
1) is SQLite with WAL enabled going to be enough to handle the app? I'm not an experienced dev (in web, I actually work on research), and I don't want to have to set up and maintain a server DBMS like MySQL.
2) What kind of security details must I work on beyond what Django does out of the box? I'm using the default auth system. I'm even using the default user and expanding it with a 1to1 rel model.
/r/django
https://redd.it/1ho7uy6
I'm developing an application for a hospital I work for, a website for medical residents to register so that the teaching department has better control and access to their data. It's fairly simple, very lean, and the population of residents is about 1000 with around 85 speciality courses.
Users will be able to register and set their data and there's 4 roles, student, profesor, division chief and teaching staff, with increased permissions.
I expect users creating accounts only on the first month of their program, all of which start at the same time of the year.
Data edits would be rare I think.
And the app won't store images or any other kind of file from users.
The questions are:
1) is SQLite with WAL enabled going to be enough to handle the app? I'm not an experienced dev (in web, I actually work on research), and I don't want to have to set up and maintain a server DBMS like MySQL.
2) What kind of security details must I work on beyond what Django does out of the box? I'm using the default auth system. I'm even using the default user and expanding it with a 1to1 rel model.
/r/django
https://redd.it/1ho7uy6
Reddit
From the django community on Reddit
Explore this post and more from the django community
Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1hoizxc
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1hoizxc
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How to learn more django?
I just started by backend learning journey with django. I did a project which is basically a basic blog application. But I am not able to learn any further. I don't know how to continue learning and building more projects using django.
I check for project tutorials on YouTube but many from the discord community recommend me not to learn from them as they may contain bad practices.
I don't know how to proceed. Please guide me
/r/djangolearning
https://redd.it/1ho6gsl
I just started by backend learning journey with django. I did a project which is basically a basic blog application. But I am not able to learn any further. I don't know how to continue learning and building more projects using django.
I check for project tutorials on YouTube but many from the discord community recommend me not to learn from them as they may contain bad practices.
I don't know how to proceed. Please guide me
/r/djangolearning
https://redd.it/1ho6gsl
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Following along with a docker django deployment tutorial; however I am getting connection to db refused
I built a quick dummy (main project, 1 app named "home" with a HttpResponse). I created a .env with database creds; added them to settings.py but when I deploy to docker on my machine the log returns
2024-12-27 10:11:53 django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5435 failed: Connection refused
2024-12-27 10:11:53 Is the server running on that host and accepting TCP/IP connections?
2024-12-27 10:11:53 connection to server at "localhost" (127.0.0.1), port 5435 failed: Connection refused
2024-12-27 10:11:53 Is the server running on that host and accepting TCP/IP connections?
I have postgres running in docker on port 5435. I can connect to the DB in DBeaver and PGAdmin
I have tried using the docker postgres ip, the name
❯ docker network inspect local-dev-servicesdefault
[
{
"Name": "local-dev-servicesdefault",
"Id": "7c41ef03af3ccf15edecd8XXXXXXXXXX648a571f23",
"Created": "2024-07-27T15:51:09.914911667Z",
/r/djangolearning
https://redd.it/1hnjxxu
I built a quick dummy (main project, 1 app named "home" with a HttpResponse). I created a .env with database creds; added them to settings.py but when I deploy to docker on my machine the log returns
2024-12-27 10:11:53 django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5435 failed: Connection refused
2024-12-27 10:11:53 Is the server running on that host and accepting TCP/IP connections?
2024-12-27 10:11:53 connection to server at "localhost" (127.0.0.1), port 5435 failed: Connection refused
2024-12-27 10:11:53 Is the server running on that host and accepting TCP/IP connections?
I have postgres running in docker on port 5435. I can connect to the DB in DBeaver and PGAdmin
I have tried using the docker postgres ip, the name
❯ docker network inspect local-dev-servicesdefault
[
{
"Name": "local-dev-servicesdefault",
"Id": "7c41ef03af3ccf15edecd8XXXXXXXXXX648a571f23",
"Created": "2024-07-27T15:51:09.914911667Z",
/r/djangolearning
https://redd.it/1hnjxxu
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
I Made a Drop-In Wrapper For `argparse` That Automatically Creates a GUI Interface
## What My Project Does
Since I end up using Python 3's built-in `argparse` a lot in my projects and have received many requests from downstream users for GUI interfaces, I created a package that wraps an existing `Parser` and generates a terminal-based GUI for it.
If you include the `--gui` flag (by default), it opens an interface using [Textual](https://github.com/Textualize/textual) which includes mouse support (in all the terminals I've tested).
The best part is that you can still use the regular command line interface as usual if you'd prefer.
Using the large demo parser I typically use for testing, it looks like this:
https://github.com/Sorcerio/Argparse-Interface/blob/master/assets/ArgUIDemo_small.gif?raw=true
Currently, ArgUI supports:
- Text input (`str`, `int`, `float`).
- `nargs` arguments with styled list inputs.
- Booleans (with switches).
- Groups (exclusive and named).
- Subparsers.
Which, as far as I can tell, encompases the full suite of base-level `argparse` inputs.
## Target Audience
This project is designed for anyone who uses Python's `argparse` in their command-line applications and would like a more user-friendly terminal interface with mouse support.
It is good for developers who want to add a GUI to their existing CLI tools without losing the flexibility and power of the command line.
Right now, I would suggest using it for non-enterprise development until I can test the code
/r/Python
https://redd.it/1hojk2a
## What My Project Does
Since I end up using Python 3's built-in `argparse` a lot in my projects and have received many requests from downstream users for GUI interfaces, I created a package that wraps an existing `Parser` and generates a terminal-based GUI for it.
If you include the `--gui` flag (by default), it opens an interface using [Textual](https://github.com/Textualize/textual) which includes mouse support (in all the terminals I've tested).
The best part is that you can still use the regular command line interface as usual if you'd prefer.
Using the large demo parser I typically use for testing, it looks like this:
https://github.com/Sorcerio/Argparse-Interface/blob/master/assets/ArgUIDemo_small.gif?raw=true
Currently, ArgUI supports:
- Text input (`str`, `int`, `float`).
- `nargs` arguments with styled list inputs.
- Booleans (with switches).
- Groups (exclusive and named).
- Subparsers.
Which, as far as I can tell, encompases the full suite of base-level `argparse` inputs.
## Target Audience
This project is designed for anyone who uses Python's `argparse` in their command-line applications and would like a more user-friendly terminal interface with mouse support.
It is good for developers who want to add a GUI to their existing CLI tools without losing the flexibility and power of the command line.
Right now, I would suggest using it for non-enterprise development until I can test the code
/r/Python
https://redd.it/1hojk2a
GitHub
GitHub - Textualize/textual: The lean application framework for Python. Build sophisticated user interfaces with a simple Python…
The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser. - Textualize/textual
Created an open-source business management software using Django and HTMX
Hi everyone,
Over the past 2.5 years I've been learning Django (and Python). One of the main projects I started working on (quite naively I must say in hindsight) was creating business management software for a company I was interning at. Some two years and a lot of itterations later, I decided to open-source the project under the name **Bloomerp**.
The vision behind the project is to allow developers to build scalable business management software for companies **by just defining the Django models**, whilst maintaining the ability to add custom functionality that fits integrates within the project's UI.
Some out-of-the-box features that Bloomerp provides:
* Intuitive CRUD views with built-in access control
* Advanced list views offering powerful filtering
* A PDF generation system for documents based on objects (like contracts, using Employee objects)
* Customizable dashboards using SQL-based widgets
* An SQL query editor for advanced data analysis
* Automatic REST API generation for all models
* Bookmarking system
* Integration with an LLMs
* ...
It would be amazing to receive some well-needed feedback on the project, or even to get some contributors on board. You can check out the repo on Github at [DavidBloomer11/Bloomerp](https://github.com/DavidBloomer11/Bloomerp) or you can check out a live demo on [bloomerp.io](https://bloomerp.io/)
Feel free to ask me any questions!
Thanks
/r/django
https://redd.it/1hoh2hb
Hi everyone,
Over the past 2.5 years I've been learning Django (and Python). One of the main projects I started working on (quite naively I must say in hindsight) was creating business management software for a company I was interning at. Some two years and a lot of itterations later, I decided to open-source the project under the name **Bloomerp**.
The vision behind the project is to allow developers to build scalable business management software for companies **by just defining the Django models**, whilst maintaining the ability to add custom functionality that fits integrates within the project's UI.
Some out-of-the-box features that Bloomerp provides:
* Intuitive CRUD views with built-in access control
* Advanced list views offering powerful filtering
* A PDF generation system for documents based on objects (like contracts, using Employee objects)
* Customizable dashboards using SQL-based widgets
* An SQL query editor for advanced data analysis
* Automatic REST API generation for all models
* Bookmarking system
* Integration with an LLMs
* ...
It would be amazing to receive some well-needed feedback on the project, or even to get some contributors on board. You can check out the repo on Github at [DavidBloomer11/Bloomerp](https://github.com/DavidBloomer11/Bloomerp) or you can check out a live demo on [bloomerp.io](https://bloomerp.io/)
Feel free to ask me any questions!
Thanks
/r/django
https://redd.it/1hoh2hb
GitHub
GitHub - DavidBloomer11/Bloomerp: Bloomerp is an open source Business Management Software framework that let's you create a fully…
Bloomerp is an open source Business Management Software framework that let's you create a fully functioning business management application by just defining Django models. - GitHub - David...
What Do Recruiters and Employers Look for in Junior Web Developers?
Hi everyone,
I’m a junior web developer, and I’ve been actively applying for jobs lately. I’m curious—what do recruiters and employers typically look for when hiring junior web devs? Are there specific skills, experiences, or qualities that stand out?
I’ve primarily been applying for remote positions outside my current country of residence, the Philippines. Could this impact the hiring process? I assume it varies by country, as hiring a foreign employee often involves additional scrutiny.
Here are the links to my resume and portfolio as reference:
[Resume link](https://docs.google.com/document/d/1PCKXsHPvmur7mJHSiufv_Gid5Axo4LAi/edit?usp=sharing&ouid=112487098966462460918&rtpof=true&sd=true)
Portfolio link
If you’re a recruiter, employer, or someone who’s landed a junior dev position, I’d love to hear your insights and advice.
Thanks in advance!
/r/django
https://redd.it/1hoq5fa
Hi everyone,
I’m a junior web developer, and I’ve been actively applying for jobs lately. I’m curious—what do recruiters and employers typically look for when hiring junior web devs? Are there specific skills, experiences, or qualities that stand out?
I’ve primarily been applying for remote positions outside my current country of residence, the Philippines. Could this impact the hiring process? I assume it varies by country, as hiring a foreign employee often involves additional scrutiny.
Here are the links to my resume and portfolio as reference:
[Resume link](https://docs.google.com/document/d/1PCKXsHPvmur7mJHSiufv_Gid5Axo4LAi/edit?usp=sharing&ouid=112487098966462460918&rtpof=true&sd=true)
Portfolio link
If you’re a recruiter, employer, or someone who’s landed a junior dev position, I’d love to hear your insights and advice.
Thanks in advance!
/r/django
https://redd.it/1hoq5fa
Google Docs
resume.docx
ERIC ANDERSON Web Developer (Python, Django, DRF, React, JavaScript) +63-905-103-2541 | shinhosuck1973@gmail.com 96 Imelda Village, Baguio City, PH 2600 | Open to Rem...
Not able to login in a user to my VueJS frontend which communicates with my Django backend
This is for those that are also familiar with VueJS and DRF. But I am trying to login as a user, with an email/password I just created on the Login Page. But when I click the 'Login' button nothing happens, it should log me in and redirect me to the 'Homeowner Dashboard' page. To clarify I got DRF set with up Django, that is I created the API calls that connect to my Django API views.
So I'm not exactly sure why this is happening, I don't know if this is strictly a VueJS, Django or DRF issue or all of them. Also when I inspect the page in the console, it just says 'API call successful:'. I have axios implemented in my VueJS project.
I'd share my code here, however I wouldn't even know where to begin. I'm simply testing my project from the frontend to the backend. I'm not sure if creating a user in Django Admin would help or not. Pretty sure this is easy fix somewhere. Please help me with this, my project repos are set to private but I can make them both public for you guys to see if that would
/r/django
https://redd.it/1hopbtj
This is for those that are also familiar with VueJS and DRF. But I am trying to login as a user, with an email/password I just created on the Login Page. But when I click the 'Login' button nothing happens, it should log me in and redirect me to the 'Homeowner Dashboard' page. To clarify I got DRF set with up Django, that is I created the API calls that connect to my Django API views.
So I'm not exactly sure why this is happening, I don't know if this is strictly a VueJS, Django or DRF issue or all of them. Also when I inspect the page in the console, it just says 'API call successful:'. I have axios implemented in my VueJS project.
I'd share my code here, however I wouldn't even know where to begin. I'm simply testing my project from the frontend to the backend. I'm not sure if creating a user in Django Admin would help or not. Pretty sure this is easy fix somewhere. Please help me with this, my project repos are set to private but I can make them both public for you guys to see if that would
/r/django
https://redd.it/1hopbtj
Reddit
From the django community on Reddit
Explore this post and more from the django community
ERROR ImproperlyConfigured: Error loading psycopg2 or psycopg module
I'm currently trying to update a Django rest api on AWS Lambda using the following command.
zappa update dev
However it gives me the following error
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502 response code.
When I run the following
zappa tail
I see the error
ImproperlyConfigured: Error loading psycopg2 or psycopg module
Does anyone know how to fix this error? I check requirements.txt file and it has the latest version of both psycopg2 and psycopg2-binary (2.9.10). I don't know why I'm getting the error.
/r/flask
https://redd.it/1honehi
I'm currently trying to update a Django rest api on AWS Lambda using the following command.
zappa update dev
However it gives me the following error
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502 response code.
When I run the following
zappa tail
I see the error
ImproperlyConfigured: Error loading psycopg2 or psycopg module
Does anyone know how to fix this error? I check requirements.txt file and it has the latest version of both psycopg2 and psycopg2-binary (2.9.10). I don't know why I'm getting the error.
/r/flask
https://redd.it/1honehi
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
[D] Structure of Neural Embeddings
https://seanpedersen.github.io/posts/structure-of-neural-latent-space
/r/MachineLearning
https://redd.it/1hogog5
https://seanpedersen.github.io/posts/structure-of-neural-latent-space
/r/MachineLearning
https://redd.it/1hogog5
seanpedersen.github.io
Structure of Neural Embeddings
Another place for thought infusion
Robyn(Web Framework) is deprecating views
Hey Everyone 👋
Robyn is deprecating views soon, and I wanted to share it with the community who is not present in our discord.
For the unaware - (probably this post is not super relevant) - Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
To stay up to date with the PR - you can have a look here - https://github.com/sparckles/Robyn/pull/1096
/r/Python
https://redd.it/1hok999
Hey Everyone 👋
Robyn is deprecating views soon, and I wanted to share it with the community who is not present in our discord.
For the unaware - (probably this post is not super relevant) - Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
To stay up to date with the PR - you can have a look here - https://github.com/sparckles/Robyn/pull/1096
/r/Python
https://redd.it/1hok999
GitHub
GitHub - sparckles/Robyn: Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
Robyn is a Super Fast Async Python Web Framework with a Rust runtime. - sparckles/Robyn
Automated Dataset Generation for Object Detection
# What My Project Does
This project shows how we can generate custom synthetic datasets for training object detection models. Think of it like making your own training data on demand, especially when getting real-world images is a headache.
# Target audience
This project is designed for individuals who want to learn how to create their own datasets for computer vision tasks but are tired of the usual data struggles. It’ll walk you through the whole process, from coming up with ideas for your data to automatically labeling it, so you can skip the endless manual work.
# Comparison
Right now, if you need data to train a custom object detector, you're usually stuck either spending forever labeling stuff yourself or dealing with the hassle of finding and paying for existing datasets. And even then, it might not be exactly what you need. But now, with all these AI vision models and image generators popping up, there's a new way to do things. Instead of the usual manual grind, we can use LLMs and vision models to create the training data we actually need. Since there are tons of these models out there, both free and paid, you've got a lot of choices to find
/r/Python
https://redd.it/1hop3tn
# What My Project Does
This project shows how we can generate custom synthetic datasets for training object detection models. Think of it like making your own training data on demand, especially when getting real-world images is a headache.
# Target audience
This project is designed for individuals who want to learn how to create their own datasets for computer vision tasks but are tired of the usual data struggles. It’ll walk you through the whole process, from coming up with ideas for your data to automatically labeling it, so you can skip the endless manual work.
# Comparison
Right now, if you need data to train a custom object detector, you're usually stuck either spending forever labeling stuff yourself or dealing with the hassle of finding and paying for existing datasets. And even then, it might not be exactly what you need. But now, with all these AI vision models and image generators popping up, there's a new way to do things. Instead of the usual manual grind, we can use LLMs and vision models to create the training data we actually need. Since there are tons of these models out there, both free and paid, you've got a lot of choices to find
/r/Python
https://redd.it/1hop3tn
Reddit
From the Python community on Reddit: Automated Dataset Generation for Object Detection
Explore this post and more from the Python community
Simplify Jupyter Notebook Sharing with This IPYNB to PDF Tool
Hi Pythonistas! 👋
Ever needed to share your Jupyter Notebook as a professional-looking PDF but got stuck fiddling with nbconvert or other complex tools? I’ve found a super simple solution: rare2pdf.com/ipynb-to-pdf/.
✅ Just upload your
I’d love to hear if this saves you some time! Give it a try and let me know what you think. 😊
/r/IPython
https://redd.it/1hp33i0
Hi Pythonistas! 👋
Ever needed to share your Jupyter Notebook as a professional-looking PDF but got stuck fiddling with nbconvert or other complex tools? I’ve found a super simple solution: rare2pdf.com/ipynb-to-pdf/.
✅ Just upload your
.ipynb files. and it converts to a neat PDF in seconds. Perfect for presentations, sharing with non-tech folks, or archiving your work.I’d love to hear if this saves you some time! Give it a try and let me know what you think. 😊
/r/IPython
https://redd.it/1hp33i0
Rare2PDF
IPYNB to PDF Converter – Free & Online
Easily convert IPYNB (Jupyter Notebook) to high-quality PDFs with our free online tool. Perfect for Colab, VS Code, and more!
I made an AI-powered IPython REPL
Hey everyone, I made an AI-powered IPython REPL that lets you understand, debug, and write better code faster. It uses relevant context from your session to suggest the best responses to your questions. You can choose between gpt-4o and claude-3.5-sonnet, I'm planning to add local models soon. You can check out the code on GitHub and install it from PyPI using
Here's a demo:
https://i.redd.it/7ex5dpezdu9e1.gif
/r/IPython
https://redd.it/1hp42eq
Hey everyone, I made an AI-powered IPython REPL that lets you understand, debug, and write better code faster. It uses relevant context from your session to suggest the best responses to your questions. You can choose between gpt-4o and claude-3.5-sonnet, I'm planning to add local models soon. You can check out the code on GitHub and install it from PyPI using
pip install ipychat.Here's a demo:
https://i.redd.it/7ex5dpezdu9e1.gif
/r/IPython
https://redd.it/1hp42eq
GitHub
GitHub - vinayak-mehta/ipychat: An AI extension for IPython that makes it work like Cursor
An AI extension for IPython that makes it work like Cursor - vinayak-mehta/ipychat
What’s your library “stack”?
Hello! I’m switching to Django for my personal projects haven’t spent a lot of energy using Go, which I love but I have had to reimplement a lot from scratch.
I’m curious to know what are your go-to libraries for the most common needs (but feel free to drop any amazing library worth mentioning) so that I can migrate what I usually do in go to Django.
I’ll mention what I’m thinking of using so far:
- Django rest framework to implement rest api (I’ll focus on react + drf for my projects)
- djoser for authentication (I’d need jwt and social)
- celery for async events and crons
- throttling, I think drf offers a solution using django-redis
- Django-impersonate to impersonate users for troubleshooting purposes
- uploading files to s3 instead of local storage
- channels for webhooks and web sockets
- permissions/groups/roles to allow disallow users from accessing other users’ resources (images and documents included).
/r/django
https://redd.it/1houdby
Hello! I’m switching to Django for my personal projects haven’t spent a lot of energy using Go, which I love but I have had to reimplement a lot from scratch.
I’m curious to know what are your go-to libraries for the most common needs (but feel free to drop any amazing library worth mentioning) so that I can migrate what I usually do in go to Django.
I’ll mention what I’m thinking of using so far:
- Django rest framework to implement rest api (I’ll focus on react + drf for my projects)
- djoser for authentication (I’d need jwt and social)
- celery for async events and crons
- throttling, I think drf offers a solution using django-redis
- Django-impersonate to impersonate users for troubleshooting purposes
- uploading files to s3 instead of local storage
- channels for webhooks and web sockets
- permissions/groups/roles to allow disallow users from accessing other users’ resources (images and documents included).
/r/django
https://redd.it/1houdby
Reddit
From the django community on Reddit
Explore this post and more from the django community
How do you manage sending mails with SMTP with all analytics and tracking on SES?
I am looking to have a custom implementation for sending and tracking mails. SES can do tracking, but I want to have a robust mail sending system. I have tried listmonk and it does not track for campaigns and the customizability is limited there. I'm looking to build a custom sender.
Is there anything I should avoid while building this? Is send and forget the right way and forcing SES to manage delivery +other analytics the best way?
Does anyone have some repos with a really good implementation of a mail sending system?
/r/django
https://redd.it/1hoz76e
I am looking to have a custom implementation for sending and tracking mails. SES can do tracking, but I want to have a robust mail sending system. I have tried listmonk and it does not track for campaigns and the customizability is limited there. I'm looking to build a custom sender.
Is there anything I should avoid while building this? Is send and forget the right way and forcing SES to manage delivery +other analytics the best way?
Does anyone have some repos with a really good implementation of a mail sending system?
/r/django
https://redd.it/1hoz76e
Reddit
From the django community on Reddit
Explore this post and more from the django community
Django courses focusing beyond the basics
Most online courses focus on zero-to-one content (introducing the basics of a language or framework). I'm planning on creating micro-courses that go beyond stage one.
These micro-courses,
focus on one outcome
have a series of tasks/objectives to complete (learning by doing)
can be completed within a week by spending a few hours a day and
cover intermediate or advanced concepts
Examples,
1. Implementing webhooks for payment gateways
2. Processing webhook payloads the right way
3. Deploying a Django application on a VPS
4. Developing CLI tools for application housekeeping
5. Monitoring 500 errors in LIVE/PROD servers
6. Designing a backup policy and automating backups
Would you be interested in such micro-courses?
Any topic that you wish to add to this list?
/r/django
https://redd.it/1hpgv15
Most online courses focus on zero-to-one content (introducing the basics of a language or framework). I'm planning on creating micro-courses that go beyond stage one.
These micro-courses,
focus on one outcome
have a series of tasks/objectives to complete (learning by doing)
can be completed within a week by spending a few hours a day and
cover intermediate or advanced concepts
Examples,
1. Implementing webhooks for payment gateways
2. Processing webhook payloads the right way
3. Deploying a Django application on a VPS
4. Developing CLI tools for application housekeeping
5. Monitoring 500 errors in LIVE/PROD servers
6. Designing a backup policy and automating backups
Would you be interested in such micro-courses?
Any topic that you wish to add to this list?
/r/django
https://redd.it/1hpgv15
Reddit
From the django community on Reddit
Explore this post and more from the django community
Looking for remote job as Backend Engineer
Hi,
I have more than 3 years of experience with Python, Django, DRF, Rest APIs, Postgresql, Postgis, GIS, QGIS Plugin Development, LLMs, Generative AI, Git Versioning, and AWS(EC2, S3, Lambda, RDS).
I do have references from my previous clients.
Can you please guide me on how to land a remote job?
Thanks
/r/django
https://redd.it/1hpirb7
Hi,
I have more than 3 years of experience with Python, Django, DRF, Rest APIs, Postgresql, Postgis, GIS, QGIS Plugin Development, LLMs, Generative AI, Git Versioning, and AWS(EC2, S3, Lambda, RDS).
I do have references from my previous clients.
Can you please guide me on how to land a remote job?
Thanks
/r/django
https://redd.it/1hpirb7
Reddit
From the django community on Reddit
Explore this post and more from the django community