How to create websites and practice backend without having front-end knowledge?
Someones who work with django or other backend's frameworks say to me that how can i do it without front end knowledge? i can just write html and css but i dont know about js.
I think this is a challenge for backend developers who dont have anyone for the front-end side, if they dont work full stack.
/r/django
https://redd.it/1jcoro8
Someones who work with django or other backend's frameworks say to me that how can i do it without front end knowledge? i can just write html and css but i dont know about js.
I think this is a challenge for backend developers who dont have anyone for the front-end side, if they dont work full stack.
/r/django
https://redd.it/1jcoro8
Reddit
From the django community on Reddit
Explore this post and more from the django community
Django celery
Hello guys, I wan tot know if I can found a free server to host redis and user celery I Want for send scheduled emails.
/r/django
https://redd.it/1jd1ofc
Hello guys, I wan tot know if I can found a free server to host redis and user celery I Want for send scheduled emails.
/r/django
https://redd.it/1jd1ofc
Reddit
From the django community on Reddit
Explore this post and more from the django community
Finally deployed my Flask app… and wow, I was NOT ready for this
So I finally deployed my first real Flask app, and let’s just say… I learned a lot the hard way. Thought I’d share in case it helps someone else (or at least gives you a laugh).
Spent hours debugging why my app worked locally but not on the server—turns out, I forgot to install Gunicorn. Flask’s built-in server is NOT for production. Lesson learned.
Hardcoded some API keys while testing and totally forgot about them. Almost pushed them to GitHub. Use environment variables, people.
Didn’t properly close my DB connections, so my app kept dying under even light load. SQLAlchemy’s connection pooling saved me.
Thought Docker was overkill. Spoiler: it’s not. Spinning up my app with a single docker-compose up is a game-changer.
Spent way too long fighting CORS issues. Flask-CORS was the easy fix, but I went down a rabbit hole first.
/r/flask
https://redd.it/1jcdaux
So I finally deployed my first real Flask app, and let’s just say… I learned a lot the hard way. Thought I’d share in case it helps someone else (or at least gives you a laugh).
Spent hours debugging why my app worked locally but not on the server—turns out, I forgot to install Gunicorn. Flask’s built-in server is NOT for production. Lesson learned.
Hardcoded some API keys while testing and totally forgot about them. Almost pushed them to GitHub. Use environment variables, people.
Didn’t properly close my DB connections, so my app kept dying under even light load. SQLAlchemy’s connection pooling saved me.
Thought Docker was overkill. Spoiler: it’s not. Spinning up my app with a single docker-compose up is a game-changer.
Spent way too long fighting CORS issues. Flask-CORS was the easy fix, but I went down a rabbit hole first.
/r/flask
https://redd.it/1jcdaux
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Embarking on My Django Journey – Seeking Guidance & Resources
Hello everyone,
I have a solid understanding of Python fundamentals, object-oriented programming, and basic HTML and CSS. However, I haven't ventured into JavaScript yet, as frontend styling hasn't particularly appealed to me, and the prospect of learning a new language solely for that purpose seems daunting.
This led me to explore backend development with Python, and I discovered Django. While I understand that Django is a backend framework, my knowledge about it is limited.
I'm eager to start learning Django but am uncertain about where to begin and which resources to utilize. I would greatly appreciate any guidance on effectively navigating this learning path to become a proficient backend developer.
Additionally, I've noticed that some websites built with Django appear outdated or simplistic. How can I ensure that the websites I create with Django have a modern and appealing design?
Furthermore, considering my lack of JavaScript knowledge, will I be able to integrate the Django backend with a pre-made frontend effectively?
If anyone else is starting with Django, please upvote and share the resources you're using! Let's embark on this learning journey together.
Thank you!
/r/djangolearning
https://redd.it/1jcuqlr
Hello everyone,
I have a solid understanding of Python fundamentals, object-oriented programming, and basic HTML and CSS. However, I haven't ventured into JavaScript yet, as frontend styling hasn't particularly appealed to me, and the prospect of learning a new language solely for that purpose seems daunting.
This led me to explore backend development with Python, and I discovered Django. While I understand that Django is a backend framework, my knowledge about it is limited.
I'm eager to start learning Django but am uncertain about where to begin and which resources to utilize. I would greatly appreciate any guidance on effectively navigating this learning path to become a proficient backend developer.
Additionally, I've noticed that some websites built with Django appear outdated or simplistic. How can I ensure that the websites I create with Django have a modern and appealing design?
Furthermore, considering my lack of JavaScript knowledge, will I be able to integrate the Django backend with a pre-made frontend effectively?
If anyone else is starting with Django, please upvote and share the resources you're using! Let's embark on this learning journey together.
Thank you!
/r/djangolearning
https://redd.it/1jcuqlr
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Monday Daily Thread: Project ideas!
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1jczjes
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1jczjes
YouTube
Build & Integrate your own custom chatbot to a website (Python & JavaScript)
In this fun project you learn how to build a custom chatbot in Python and then integrate this to a website using Flask and JavaScript.
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
Introducing Aurras - A Fast, Feature-Rich Terminal Music Player (Spotify, YouTube, Offline, TUI/CLI)
Hey r/python community, I've been tinkering with a project for the past few months, and I thought some of you might find it interesting. It's a terminal-based music player called Aurras, and honestly, it started because I was just scratching my own itch.
# Target Audience
Like a lot of you, I spend a lot of time in the terminal. I love the efficiency, but I always found it a bit jarring to switch over to a separate music player. So, I started playing around with the idea of a music player that could live right in my terminal.
# What my Project Does?
Basically, it lets you listen to music without leaving your command line. You can use it in a traditional CLI way, or there's a more modern TUI built with Textual if you prefer something more interactive(TUI support will be added in later releases). It handles online song streaming, local file playback, playlist management, lyrics, and even Spotify playlist imports.
Choose your interface: CLI or TUI, whatever suits your style.
Online song streaming: Stream directly without downloads.
Local playback: Play your offline music.
Playlist management: Create, edit, and organize your playlists.
Spotify integration: Import your Spotify playlists (securely, of course).
Lyrics
/r/Python
https://redd.it/1jd5o5s
Hey r/python community, I've been tinkering with a project for the past few months, and I thought some of you might find it interesting. It's a terminal-based music player called Aurras, and honestly, it started because I was just scratching my own itch.
# Target Audience
Like a lot of you, I spend a lot of time in the terminal. I love the efficiency, but I always found it a bit jarring to switch over to a separate music player. So, I started playing around with the idea of a music player that could live right in my terminal.
# What my Project Does?
Basically, it lets you listen to music without leaving your command line. You can use it in a traditional CLI way, or there's a more modern TUI built with Textual if you prefer something more interactive(TUI support will be added in later releases). It handles online song streaming, local file playback, playlist management, lyrics, and even Spotify playlist imports.
Choose your interface: CLI or TUI, whatever suits your style.
Online song streaming: Stream directly without downloads.
Local playback: Play your offline music.
Playlist management: Create, edit, and organize your playlists.
Spotify integration: Import your Spotify playlists (securely, of course).
Lyrics
/r/Python
https://redd.it/1jd5o5s
Reddit
From the Python community on Reddit: Introducing Aurras - A Fast, Feature-Rich Terminal Music Player (Spotify, YouTube, Offline…
Explore this post and more from the Python community
Installing requirements.txt taking forever...
I am working on a project and messed up something and it refuses to migrate. so i renamed the directory and cloned the last working commit. then I try to install requirements.txt and its taking forever. for last 10 minutes it is installing matplotlib. It is going somewhere just very very slowly. (using VScode, Ubuntu 24.04, AMD 3500U laptop.)
/r/djangolearning
https://redd.it/1jd6vaj
I am working on a project and messed up something and it refuses to migrate. so i renamed the directory and cloned the last working commit. then I try to install requirements.txt and its taking forever. for last 10 minutes it is installing matplotlib. It is going somewhere just very very slowly. (using VScode, Ubuntu 24.04, AMD 3500U laptop.)
/r/djangolearning
https://redd.it/1jd6vaj
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
uv starting to overtake Poetry in package download
Downloads chart for Wagtail by installer: uv overtakes Poetry. It’s the first time I pull those kinds of stats and it seem pretty expensive to process the data for all PyPI downloads, so I only pulled a few packages.
/r/Python
https://redd.it/1jd7nhh
Downloads chart for Wagtail by installer: uv overtakes Poetry. It’s the first time I pull those kinds of stats and it seem pretty expensive to process the data for all PyPI downloads, so I only pulled a few packages.
/r/Python
https://redd.it/1jd7nhh
Wagtail CMS
uv overtakes Poetry | Wagtail CMS
uv download statistics overtake Poetry for Wagtail users
Basic Memory: A Python-based Local-First Knowledge Graph for LLMs
# What My Project Does
Basic Memory is an open-source Python tool that creates a persistent knowledge graph from standard Markdown files to enhance LLM interactions. It works by:
* Using simple Markdown files as the primary storage medium
* Extracting semantic meaning from markdown patterns to build a knowledge graph
* Providing bi-directional synchronization between files and graph structure
* Integrating with Claude Desktop via the Model Context Protocol (MCP)
The system extracts semantic meaning from simple Markdown patterns:
- [category] Observation about a topic #tag (optional context)
- relation_type [[WikiLink]] (optional context)
Check out a short demo video showing Basic Memory in action: [https://basicmachines.co/images/Claude-Obsidian-Demo.mp4](https://basicmachines.co/images/Claude-Obsidian-Demo.mp4)
GitHub: [https://github.com/basicmachines-co/basic-memory](https://github.com/basicmachines-co/basic-memory)
Documentation: [https://memory.basicmachines.co/](https://memory.basicmachines.co/)
# Target Audience
Basic Memory is intended for:
* Researchers and knowledge workers who need to maintain context across multiple LLM conversations
* Developers working on LLM-powered applications who need a persistent memory layer
* Obsidian users looking to enhance their notes with AI capabilities
* Anyone looking for a production-ready, local-first solution for AI memory that respects data ownership
This is a fully functional production tool, not just a toy project. It's designed with data privacy in mind - everything stays on your local machine.
# Comparison
Unlike other memory solutions for LLMs:
* **vs. Built-in LLM memory** (like ChatGPT's memory): Basic
/r/Python
https://redd.it/1jctt1v
# What My Project Does
Basic Memory is an open-source Python tool that creates a persistent knowledge graph from standard Markdown files to enhance LLM interactions. It works by:
* Using simple Markdown files as the primary storage medium
* Extracting semantic meaning from markdown patterns to build a knowledge graph
* Providing bi-directional synchronization between files and graph structure
* Integrating with Claude Desktop via the Model Context Protocol (MCP)
The system extracts semantic meaning from simple Markdown patterns:
- [category] Observation about a topic #tag (optional context)
- relation_type [[WikiLink]] (optional context)
Check out a short demo video showing Basic Memory in action: [https://basicmachines.co/images/Claude-Obsidian-Demo.mp4](https://basicmachines.co/images/Claude-Obsidian-Demo.mp4)
GitHub: [https://github.com/basicmachines-co/basic-memory](https://github.com/basicmachines-co/basic-memory)
Documentation: [https://memory.basicmachines.co/](https://memory.basicmachines.co/)
# Target Audience
Basic Memory is intended for:
* Researchers and knowledge workers who need to maintain context across multiple LLM conversations
* Developers working on LLM-powered applications who need a persistent memory layer
* Obsidian users looking to enhance their notes with AI capabilities
* Anyone looking for a production-ready, local-first solution for AI memory that respects data ownership
This is a fully functional production tool, not just a toy project. It's designed with data privacy in mind - everything stays on your local machine.
# Comparison
Unlike other memory solutions for LLMs:
* **vs. Built-in LLM memory** (like ChatGPT's memory): Basic
/r/Python
https://redd.it/1jctt1v
GitHub
GitHub - basicmachines-co/basic-memory: AI conversations that actually remember. Never re-explain your project to your AI again.…
AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN - basicmachines-co/basic-memory
Cors Problem with Django in Production - Google Cloud Console
Hi, I'm having a CORS problem with Django on Google Cloud Run. I have tried different configurations, but nothing works. My frontend is on Vercel, a Next.js app. Can someone help me?.
This is my settings.py.
MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_HEADERS = ["*"]
/r/django
https://redd.it/1jd2llr
Hi, I'm having a CORS problem with Django on Google Cloud Run. I have tried different configurations, but nothing works. My frontend is on Vercel, a Next.js app. Can someone help me?.
This is my settings.py.
MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_HEADERS = ["*"]
/r/django
https://redd.it/1jd2llr
Reddit
From the django community on Reddit
Explore this post and more from the django community
Best practices for handling third-party API credentials
Hi,
What are the best practices for handling third-party API credentials in full stack apps?
Example: let's say we're building a SaaS app that uses OpenAI API. The user is expected to provide their own api key (and potentially the base url if they want to use an openai compatible api).
The backend will need these credentials to make calls to the third party api so we will have to send them from the frontend to the backend. We also don't want the user to enter these credentials every time they run an action, so we will have to store them in the database.
What are best practices for handling these credentials? We can't just hash them and store the hash as we need to get the actual key to send it to the 3rd party api. Should we encrypt the key in the backend before storing them in the database? If we do this, where do we store the encryption key? Should it be an environment variable that is provided during runtime (e.g. stored in a password manager in the cloud provider)? But this key needs to be stored permanently, which means we cannot rotate it easily, right?
Also, what about the frontend
/r/Python
https://redd.it/1jdb9fu
Hi,
What are the best practices for handling third-party API credentials in full stack apps?
Example: let's say we're building a SaaS app that uses OpenAI API. The user is expected to provide their own api key (and potentially the base url if they want to use an openai compatible api).
The backend will need these credentials to make calls to the third party api so we will have to send them from the frontend to the backend. We also don't want the user to enter these credentials every time they run an action, so we will have to store them in the database.
What are best practices for handling these credentials? We can't just hash them and store the hash as we need to get the actual key to send it to the 3rd party api. Should we encrypt the key in the backend before storing them in the database? If we do this, where do we store the encryption key? Should it be an environment variable that is provided during runtime (e.g. stored in a password manager in the cloud provider)? But this key needs to be stored permanently, which means we cannot rotate it easily, right?
Also, what about the frontend
/r/Python
https://redd.it/1jdb9fu
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Is asking for a walk through of a system when arriving in a new company a pipe dream
I have been blessed to have worked at 3 companies but in all 3 i never got a walk through of the system, i would arrive in my department get setup and get told what is done and required from the team ive been assigned too. As a fullstack dev i think it would be cool to get a short walkthrough what the frontend team work with or if im in the front, what the warehouse or backend team works with. Usually i have to figure who to asl and what they do once im assigned something.
So my question is, is it a pipe dream to think someone will give me that kind of deep rundown in my first day or week.
/r/django
https://redd.it/1jdeie6
I have been blessed to have worked at 3 companies but in all 3 i never got a walk through of the system, i would arrive in my department get setup and get told what is done and required from the team ive been assigned too. As a fullstack dev i think it would be cool to get a short walkthrough what the frontend team work with or if im in the front, what the warehouse or backend team works with. Usually i have to figure who to asl and what they do once im assigned something.
So my question is, is it a pipe dream to think someone will give me that kind of deep rundown in my first day or week.
/r/django
https://redd.it/1jdeie6
Reddit
From the django community on Reddit
Explore this post and more from the django community
Astrophysics - Earth's gravitational influence
Hey everyone,
I have a small "space science & astrophysics" Python tutorial series, and the corresponding code is freely available on my GitHub repo (stars are appreciated :-)). My recent "publication" is about the so called Hill-Sphere and Sphere-of-Influence, with our home planet as an example.
What are these concept?
Maybe you have heard in the past about some asteroids that become temporary moons of Earth, or some spacecraft mission that use so-called fly-bys to gain some speed for the outer planets.
In both cases these simple conceptual spheres are used to compute e.g. how stable an orbit is around our home planet.
Why this highly specific example?
Well I am preparing some future videos about these exact topics, so I am currently building up the basics :-). Hope you like it:
Link to the video
GitHub Repo
Cheers,
Thomas
/r/Python
https://redd.it/1jd9vp0
Hey everyone,
I have a small "space science & astrophysics" Python tutorial series, and the corresponding code is freely available on my GitHub repo (stars are appreciated :-)). My recent "publication" is about the so called Hill-Sphere and Sphere-of-Influence, with our home planet as an example.
What are these concept?
Maybe you have heard in the past about some asteroids that become temporary moons of Earth, or some spacecraft mission that use so-called fly-bys to gain some speed for the outer planets.
In both cases these simple conceptual spheres are used to compute e.g. how stable an orbit is around our home planet.
Why this highly specific example?
Well I am preparing some future videos about these exact topics, so I am currently building up the basics :-). Hope you like it:
Link to the video
GitHub Repo
Cheers,
Thomas
/r/Python
https://redd.it/1jd9vp0
GitHub
GitHub - ThomasAlbin/Astroniz-YT-Tutorials: Repository of my Space Science with Python YT tutorial series
Repository of my Space Science with Python YT tutorial series - ThomasAlbin/Astroniz-YT-Tutorials
VJUPYTER DOWNLODE AND RUN IN VISUAL STUDIO COMMUNITY 2022
HOW TO RUN AND INSTALL JUPYTYER IN VISUAL STUDIO COOMUNITY 2022 SAME AS VS CODE?
/r/IPython
https://redd.it/1jdagv6
HOW TO RUN AND INSTALL JUPYTYER IN VISUAL STUDIO COOMUNITY 2022 SAME AS VS CODE?
/r/IPython
https://redd.it/1jdagv6
Reddit
From the IPython community on Reddit
Explore this post and more from the IPython community
ETL completa com Python: Validando Dados e Planilhas de Excel para BI (Projeto end-to-end!)
Olá, pessoal!
Espero que todos estejam bem! Queria compartilhar um vídeo muito legal que pode ajudar a melhorar nossas habilidades em engenharia de dados. O vídeo é "ETL completa com Python: Validando Dados e Planilhas de Excel para BI (Projeto end-to-end!)". Confiram no link abaixo:
https://www.youtube.com/watch?v=JuOyNPjAer8
Aproveitem e bora aprender juntos!
/r/Python
https://redd.it/1jdkn65
Olá, pessoal!
Espero que todos estejam bem! Queria compartilhar um vídeo muito legal que pode ajudar a melhorar nossas habilidades em engenharia de dados. O vídeo é "ETL completa com Python: Validando Dados e Planilhas de Excel para BI (Projeto end-to-end!)". Confiram no link abaixo:
https://www.youtube.com/watch?v=JuOyNPjAer8
Aproveitem e bora aprender juntos!
/r/Python
https://redd.it/1jdkn65
YouTube
Pipeline ETL com Python: Validando Dados e Planilhas de Excel para BI (Projeto end-to-end!)
Faça parte da Jornada! 30% OFF aqui 👇
https://bit.ly/3SB2ohl
GitHub: https://github.com/lvgalvao/etl-python-excel-aovivo
Link dos certificados: https://drive.google.com/drive/folders/1gI5cZmGV5_efqtD_OObSi5DZJguMjOt2?usp=drive_link
► Inscreva-se em nosso…
https://bit.ly/3SB2ohl
GitHub: https://github.com/lvgalvao/etl-python-excel-aovivo
Link dos certificados: https://drive.google.com/drive/folders/1gI5cZmGV5_efqtD_OObSi5DZJguMjOt2?usp=drive_link
► Inscreva-se em nosso…
To GeoDjango or not to GeoDjango
Hello everyone,
I need some insight here. I have an existing Django app using a MySQL database. One of the models that is defined here is called Location. To give you an idea, it just has a name (CharField) and description (TextField), so nothing fancy here.
I have the idea to extend the Location model with actual coordinates. The use case here would be to show where some objects are that have Location as foreign key, using spatial maps and interactive visualizations on the front-end.
I want to extend Location with both a single (x,y) coordinate and a field that defines some sort of bouding box like a polygon. The easiest way would be to use both PointFields and PolygonFields from GeoDjango. I found this implementation to be highly excessive for just the addition of two fields. Also, I'm unsure of changing my database engine django.db.backends.mysql to django.contrib.gis.db.backends.mysql just like that. I can see the benefits of using GeoDjango, but it feels overkill. On the other hand, using plain JSONFields or other fields that represent this data feels like a 'messy' way to solve this issue.
I'm wondering if anyone else has had the same or similar issue? What are your thoughts on this?
Thanks
/r/django
https://redd.it/1jdfzqm
Hello everyone,
I need some insight here. I have an existing Django app using a MySQL database. One of the models that is defined here is called Location. To give you an idea, it just has a name (CharField) and description (TextField), so nothing fancy here.
I have the idea to extend the Location model with actual coordinates. The use case here would be to show where some objects are that have Location as foreign key, using spatial maps and interactive visualizations on the front-end.
I want to extend Location with both a single (x,y) coordinate and a field that defines some sort of bouding box like a polygon. The easiest way would be to use both PointFields and PolygonFields from GeoDjango. I found this implementation to be highly excessive for just the addition of two fields. Also, I'm unsure of changing my database engine django.db.backends.mysql to django.contrib.gis.db.backends.mysql just like that. I can see the benefits of using GeoDjango, but it feels overkill. On the other hand, using plain JSONFields or other fields that represent this data feels like a 'messy' way to solve this issue.
I'm wondering if anyone else has had the same or similar issue? What are your thoughts on this?
Thanks
/r/django
https://redd.it/1jdfzqm
Reddit
From the django community on Reddit
Explore this post and more from the django community
Feedback Wanted: GenAnalyzer - Web App for Protein Sequence Analysis & Mutation Detection
Hello everyone,
I created a web application called GenAnalyzer, which simplifies the analysis of protein sequences, identifies mutations, and explores their potential links to genetic diseases. It integrates data from multiple sources like UniProt for protein sequences and ClinVar for mutation-disease associations.
The application is built using Python Flask for the web framework and Biopython for protein sequence analysis, allowing users to compare sequences and detect mutations.
This project is my graduate project, and I would be really grateful if I could find someone who would use it and provide feedback. Your comments, ratings, and criticism would be greatly appreciated as they’ll help me improve the tool.
You can check out the app here: GenAnalyzer Web App
Feel free to explore the source code and contribute on the GenAnalyzer GitHub Repository
Feel free to leave any feedback, suggestions, or even criticisms. I would be happy for any comments or ratings.
Thanks for your time, and I look forward to hearing your thoughts.
/r/flask
https://redd.it/1jdlp5k
Hello everyone,
I created a web application called GenAnalyzer, which simplifies the analysis of protein sequences, identifies mutations, and explores their potential links to genetic diseases. It integrates data from multiple sources like UniProt for protein sequences and ClinVar for mutation-disease associations.
The application is built using Python Flask for the web framework and Biopython for protein sequence analysis, allowing users to compare sequences and detect mutations.
This project is my graduate project, and I would be really grateful if I could find someone who would use it and provide feedback. Your comments, ratings, and criticism would be greatly appreciated as they’ll help me improve the tool.
You can check out the app here: GenAnalyzer Web App
Feel free to explore the source code and contribute on the GenAnalyzer GitHub Repository
Feel free to leave any feedback, suggestions, or even criticisms. I would be happy for any comments or ratings.
Thanks for your time, and I look forward to hearing your thoughts.
/r/flask
https://redd.it/1jdlp5k
Looking for comments on a background task library I made
https://github.com/ross-sharma/django-task-queue
/r/django
https://redd.it/1jdr11d
https://github.com/ross-sharma/django-task-queue
/r/django
https://redd.it/1jdr11d
GitHub
GitHub - ross-sharma/django-task-queue: A Django app for processing background tasks
A Django app for processing background tasks. Contribute to ross-sharma/django-task-queue development by creating an account on GitHub.
DRF API url location
In Django we typically define our DRF endpoints with a prefix of '/api/'. For a project with multiple DRF apps, where do you define these. Do you define them in the core project folder or do you define each on within it's respective app folder?
/r/django
https://redd.it/1jdj449
In Django we typically define our DRF endpoints with a prefix of '/api/'. For a project with multiple DRF apps, where do you define these. Do you define them in the core project folder or do you define each on within it's respective app folder?
/r/django
https://redd.it/1jdj449
Reddit
From the django community on Reddit
Explore this post and more from the django community
Tuesday Daily Thread: Advanced questions
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1jdrtck
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1jdrtck
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members