I made a family dashboard using Flask (code included)
DinkyDash is a simple, customizable dashboard designed to display family-oriented information such as recurring tasks, countdowns to special events, and daily rotations. It’s perfect for mounting on a Raspberry Pi with a display in a common area of your home, providing at-a-glance information for all family members.
https://preview.redd.it/pd6rp9f51bdd1.png?width=1200&format=png&auto=webp&s=dd561fe822f610a4c55088612dcf95d6ea75401f
DinkyDash is great for quickly answering those questions that kids like to ask again and again and again and again.
“How many days till Christmas?”
“Who’s turn is it to take the trash out?”
“When is my birthday party?”
The dashboard shows:
Today’s date
Recurring tasks or roles (e.g., who’s turn it is to do the dishes)
Countdowns to important dates (birthdays, holidays, events)
DinkyDash is built with Flask and can be easily configured using a YAML file, making it simple to update and maintain without diving into the code.
Get the code on GitHub
/r/flask
https://redd.it/1e6fo4o
DinkyDash is a simple, customizable dashboard designed to display family-oriented information such as recurring tasks, countdowns to special events, and daily rotations. It’s perfect for mounting on a Raspberry Pi with a display in a common area of your home, providing at-a-glance information for all family members.
https://preview.redd.it/pd6rp9f51bdd1.png?width=1200&format=png&auto=webp&s=dd561fe822f610a4c55088612dcf95d6ea75401f
DinkyDash is great for quickly answering those questions that kids like to ask again and again and again and again.
“How many days till Christmas?”
“Who’s turn is it to take the trash out?”
“When is my birthday party?”
The dashboard shows:
Today’s date
Recurring tasks or roles (e.g., who’s turn it is to do the dishes)
Countdowns to important dates (birthdays, holidays, events)
DinkyDash is built with Flask and can be easily configured using a YAML file, making it simple to update and maintain without diving into the code.
Get the code on GitHub
/r/flask
https://redd.it/1e6fo4o
Is it really best for backend only or is that just a myth
I've seen a couple of tutorials now specifying that Django is best used for backend and not for rendering html. It 'can' do html if you really want to but it's not great or something....
Well if I can, why shouldn't I? What's wrong with using Django for rendering my html? It even does jinja2 for templating.
The tutorials I watched just said it and didn't explain anything about their reasoning behind it (probably just copying others).
Is there any truth to it? And if so, what's the reason?
/r/djangolearning
https://redd.it/1e6fbjh
I've seen a couple of tutorials now specifying that Django is best used for backend and not for rendering html. It 'can' do html if you really want to but it's not great or something....
Well if I can, why shouldn't I? What's wrong with using Django for rendering my html? It even does jinja2 for templating.
The tutorials I watched just said it and didn't explain anything about their reasoning behind it (probably just copying others).
Is there any truth to it? And if so, what's the reason?
/r/djangolearning
https://redd.it/1e6fbjh
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Help with form layout/logic
Hi guys. I'm looking for some input on the design of a dynamic form I'm trying to make. The goal of the form is to allow the user to create an activity. This activity has a start date and an end date (date of the first activity and date of the last activity) and times the activity will run (e.g. 8am-10am).
However, I'd like to give the user the option to specify a different start time and end time for an activity on a certain month or months.
Currently I have the following:
https://preview.redd.it/zchu0z5lh9dd1.png?width=1082&format=png&auto=webp&s=c56bcbd23cc8f5bc2e2e669d00136307b37e6cdf
Based on the user selection of Activity Frequency (Weekly or Monthly), HTMX fetches a different form and appends it beneath in a placeholder div.
https://preview.redd.it/98u8joixh9dd1.png?width=1061&format=png&auto=webp&s=b9ceeae2a657e043be3789363eddde08c8ff6b79
In in the Monthly form, the user has the choice to change the start and end time of the activity for certain months. Clicking "Add Another" appends an additional form below the first. The code for this form is below.
class DifferentTimePerMonth(forms.Form):
MONTHS =
(0, 'Jan'),
(1, 'Feb'),
(2, 'Mar'),
/r/djangolearning
[https://redd.it/1e693ft
Hi guys. I'm looking for some input on the design of a dynamic form I'm trying to make. The goal of the form is to allow the user to create an activity. This activity has a start date and an end date (date of the first activity and date of the last activity) and times the activity will run (e.g. 8am-10am).
However, I'd like to give the user the option to specify a different start time and end time for an activity on a certain month or months.
Currently I have the following:
https://preview.redd.it/zchu0z5lh9dd1.png?width=1082&format=png&auto=webp&s=c56bcbd23cc8f5bc2e2e669d00136307b37e6cdf
Based on the user selection of Activity Frequency (Weekly or Monthly), HTMX fetches a different form and appends it beneath in a placeholder div.
https://preview.redd.it/98u8joixh9dd1.png?width=1061&format=png&auto=webp&s=b9ceeae2a657e043be3789363eddde08c8ff6b79
In in the Monthly form, the user has the choice to change the start and end time of the activity for certain months. Clicking "Add Another" appends an additional form below the first. The code for this form is below.
class DifferentTimePerMonth(forms.Form):
MONTHS =
(0, 'Jan'),
(1, 'Feb'),
(2, 'Mar'),
/r/djangolearning
[https://redd.it/1e693ft
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/1e6q1qs
# 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/1e6q1qs
Redditinc
Reddit Rules
Reddit Rules - Reddit
Use Python to get Pydantic models and Python types from your LLM responses.
Hi r/Python!
I am excited to share a python package that I have slowly been working on over the last few months. It is called *modelsmith*.
Repo link:[ ~https://github.com/christo-olivier/modelsmith~](https://github.com/christo-olivier/modelsmith)
Documentation:[ ~https://christo-olivier.github.io/modelsmith/~](https://christo-olivier.github.io/modelsmith/)
# What My Project Does:
Modelsmith is a Python library that allows you to get structured responses in the form of Pydantic models and Python types from Anthropic, Google Vertex AI, and OpenAI models.
It has a default prompt built in to allow entity extraction from any text prompt. It uses the default prompt and the python type or pydantic model you specify as your expected output, then it processes the text you passed as your user input and tries to extract an instance of your desired output for you.
But you are not limited to using the default prompt or behaviour. You can customise to your heart's content.
**Key features:**
* **Structured Responses**: Specify both Pydantic models and Python types as the outputs of your LLM responses.
* **Templating**: Use Jinja2 templating in your prompts to allow complex prompt logic.
* **Default and Custom Prompts**: A default entity extraction prompt template is provided but you can also specify your own prompt templates.
* **Retry Logic**: Number of retries is user configurable.
* **Validation**: Outputs from the LLM are validated against your
/r/Python
https://redd.it/1e6l3qp
Hi r/Python!
I am excited to share a python package that I have slowly been working on over the last few months. It is called *modelsmith*.
Repo link:[ ~https://github.com/christo-olivier/modelsmith~](https://github.com/christo-olivier/modelsmith)
Documentation:[ ~https://christo-olivier.github.io/modelsmith/~](https://christo-olivier.github.io/modelsmith/)
# What My Project Does:
Modelsmith is a Python library that allows you to get structured responses in the form of Pydantic models and Python types from Anthropic, Google Vertex AI, and OpenAI models.
It has a default prompt built in to allow entity extraction from any text prompt. It uses the default prompt and the python type or pydantic model you specify as your expected output, then it processes the text you passed as your user input and tries to extract an instance of your desired output for you.
But you are not limited to using the default prompt or behaviour. You can customise to your heart's content.
**Key features:**
* **Structured Responses**: Specify both Pydantic models and Python types as the outputs of your LLM responses.
* **Templating**: Use Jinja2 templating in your prompts to allow complex prompt logic.
* **Default and Custom Prompts**: A default entity extraction prompt template is provided but you can also specify your own prompt templates.
* **Retry Logic**: Number of retries is user configurable.
* **Validation**: Outputs from the LLM are validated against your
/r/Python
https://redd.it/1e6l3qp
N Fish Speech 1.3 Update: Enhanced Stability, Emotion, and Voice Cloning
We're excited to announce that Fish Speech 1.3 now offers enhanced stability and emotion, and can clone anyone's voice with just a 10-second audio prompt! As strong advocates of the open-source community, we've open-sourced Fish Speech 1.2 SFT today and introduced an Auto Reranking system. Stay tuned as we'll be open-sourcing Fish Speech 1.3 soon! We look forward to hearing your feedback.
Playground (DEMO): http://fish.audio
GitHub: fishaudio/fish-speech
/r/MachineLearning
https://redd.it/1e6g122
We're excited to announce that Fish Speech 1.3 now offers enhanced stability and emotion, and can clone anyone's voice with just a 10-second audio prompt! As strong advocates of the open-source community, we've open-sourced Fish Speech 1.2 SFT today and introduced an Auto Reranking system. Stay tuned as we'll be open-sourcing Fish Speech 1.3 soon! We look forward to hearing your feedback.
Playground (DEMO): http://fish.audio
GitHub: fishaudio/fish-speech
/r/MachineLearning
https://redd.it/1e6g122
fish.audio
Fish Audio
TTS and voice cloning with unmatched emotion control.
I started with pure Django and ended up with Django + DRF + AlpineJS
I am building a bookings management app that has a fairly interactive user interface. I initially started with pure Django where to add or modify a booking on the calendar required a full page load. I then was recommended to use HTMX to help avoid the full page loads for every interaction and some said AlpineJs would be good to add some front-end interactions that would complement HTMX.
HTMX seems great for very simple things, but over time I kept finding myself using AlpineJS instead because it would also manage state.
After a year of building I seem to be using a stack that I don't seem to hear much about and I would like to hear some opinions, pros and cons about it.
I'm using Alpine for everything now. I basically have for each major section of my application a dedicated Alpine store that contains the relevant functions and manages state for that section (createBooking, updateBooking, submitForm, etc).
On my backend views I use DRF to serialize the data and return it to my Alpine store that then updates the page in a reactive manner.
This seems to be working for me, since I'm not
/r/django
https://redd.it/1e6ed7b
I am building a bookings management app that has a fairly interactive user interface. I initially started with pure Django where to add or modify a booking on the calendar required a full page load. I then was recommended to use HTMX to help avoid the full page loads for every interaction and some said AlpineJs would be good to add some front-end interactions that would complement HTMX.
HTMX seems great for very simple things, but over time I kept finding myself using AlpineJS instead because it would also manage state.
After a year of building I seem to be using a stack that I don't seem to hear much about and I would like to hear some opinions, pros and cons about it.
I'm using Alpine for everything now. I basically have for each major section of my application a dedicated Alpine store that contains the relevant functions and manages state for that section (createBooking, updateBooking, submitForm, etc).
On my backend views I use DRF to serialize the data and return it to my Alpine store that then updates the page in a reactive manner.
This seems to be working for me, since I'm not
/r/django
https://redd.it/1e6ed7b
Reddit
From the django community on Reddit
Explore this post and more from the django community
Caching Auth/Permission?
I've been exploring Django Silk SQL profiles for a number of common actions with my server. Something I noticed is that for a lot of them, half the queries are just about auth. In one case, a POST causes 9 SQL queries, 4 of which are auth, which includes 7 joins and takes up 50% of the SQL execution time.
I do sometimes add/remove/update users. But those tables change maybe once per day. So it feels ripe for some local caching.
Is there a sensible approach for caching these lookups without completely tearing apart `django.contrib.auth` If this was my own code, I know how to use caching, but it's not so I'm not sure where I could hook into Django's attempt to retrieve all these data.
/r/django
https://redd.it/1e6s08m
I've been exploring Django Silk SQL profiles for a number of common actions with my server. Something I noticed is that for a lot of them, half the queries are just about auth. In one case, a POST causes 9 SQL queries, 4 of which are auth, which includes 7 joins and takes up 50% of the SQL execution time.
I do sometimes add/remove/update users. But those tables change maybe once per day. So it feels ripe for some local caching.
Is there a sensible approach for caching these lookups without completely tearing apart `django.contrib.auth` If this was my own code, I know how to use caching, but it's not so I'm not sure where I could hook into Django's attempt to retrieve all these data.
/r/django
https://redd.it/1e6s08m
Reddit
From the django community on Reddit
Explore this post and more from the django community
connect to AWS RDS mysql database for querying NOT use it as the backend
I want my django app to be able to read from a 5.7 mysql db in RDS, and I haven't been able to find how to do this. I do not want this database to be the backend for my app. Should I use the rds or rds-data sdk? I haven't found an example of how to configure these though. Or do I just use a generic mysql driver? (It seems like better practice would be to use AWS rather than user/pass to authenticate though)
/r/django
https://redd.it/1e6qli8
I want my django app to be able to read from a 5.7 mysql db in RDS, and I haven't been able to find how to do this. I do not want this database to be the backend for my app. Should I use the rds or rds-data sdk? I haven't found an example of how to configure these though. Or do I just use a generic mysql driver? (It seems like better practice would be to use AWS rather than user/pass to authenticate though)
/r/django
https://redd.it/1e6qli8
Reddit
From the django community on Reddit
Explore this post and more from the django community
Learning django for internship (months or two)
I am learning django to get internship as fast as possible.
Realistically speaking how much time it should takes for me to learn.
I know postgressql, python, theory related to web and protocols. Etc basic networking theory.
I have also done basic Linux administration like setting mail server or Apache Web server type things.
I am trying to get internship in django. Also I am learning about nginx web server.
Is this a good approach I am trying to get internship or fresher job.
/r/djangolearning
https://redd.it/1e6xr1y
I am learning django to get internship as fast as possible.
Realistically speaking how much time it should takes for me to learn.
I know postgressql, python, theory related to web and protocols. Etc basic networking theory.
I have also done basic Linux administration like setting mail server or Apache Web server type things.
I am trying to get internship in django. Also I am learning about nginx web server.
Is this a good approach I am trying to get internship or fresher job.
/r/djangolearning
https://redd.it/1e6xr1y
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Django Templates
what is best place for finding ready templates ?
/r/djangolearning
https://redd.it/1e7959m
what is best place for finding ready templates ?
/r/djangolearning
https://redd.it/1e7959m
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
D Answer explainability and transparency with Retrieval Augmented Generation model
Hi everyone,
I've been exploring the fascinating world of Retrieval-Augmented Generation (RAG) systems, and their ability to combine large language models with retrieval mechanisms to provide accurate and contextually rich answers is truly impressive. However, I've been wondering about the explainability and transparency of the answers these models generate. Specifically, I'm curious about understanding which parts of the provided context are being used by the model to generate its answers.
Despite my efforts, I haven't been able to find much relevant research, articles, or public use cases on this topic. Is it just me, am I not googling using the appropriate keywords, or is there genuinely a lack of research in this area? I believe it's crucial to know how the model arrives at its answers, especially in applications where trust and verification of the information are important.
I'm eager to hear your thoughts and experiences. If you have worked with RAG or similar models, how do you ensure the answers are explainable and transparent? Any best practices or insights would be greatly appreciated.
Looking forward to your responses!
/r/MachineLearning
https://redd.it/1e77yul
Hi everyone,
I've been exploring the fascinating world of Retrieval-Augmented Generation (RAG) systems, and their ability to combine large language models with retrieval mechanisms to provide accurate and contextually rich answers is truly impressive. However, I've been wondering about the explainability and transparency of the answers these models generate. Specifically, I'm curious about understanding which parts of the provided context are being used by the model to generate its answers.
Despite my efforts, I haven't been able to find much relevant research, articles, or public use cases on this topic. Is it just me, am I not googling using the appropriate keywords, or is there genuinely a lack of research in this area? I believe it's crucial to know how the model arrives at its answers, especially in applications where trust and verification of the information are important.
I'm eager to hear your thoughts and experiences. If you have worked with RAG or similar models, how do you ensure the answers are explainable and transparent? Any best practices or insights would be greatly appreciated.
Looking forward to your responses!
/r/MachineLearning
https://redd.it/1e77yul
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Dodecaphony: Algorithmic Composition of Modern Classical Music
What does this project do?
My Python package is named after an alternative musical system. The vast majority of music is tonal (at least, in Western culture). In the 20th century, composers started to look for novel principles of music creation. Although some of these were based on the music of non-Western nations, some others were developed from scratch. The most famous of such musical paradigms is called the twelve-tone technique and it is also known as dodecaphony.
As a software developer, I am interested in dodecaphony, because it is logic-oriented and has many symmetries. I find it very suitable for combinatorial optimization.
So, I created a tool that takes YAML config as input and generates MIDI and WAV musical fragments in the twelve-tone technique. Given enough number of properly filled configs, it is possible to stack output fragments together and get a complete musical track.
This is a production-grade tool, not a toy project. With this tool, I released a 26-minutes album on Spotify and many other streaming platforms. However, main melodies for the album were written manually by myself and a lot of hard work was done with configs, but, nevertheless, the package really helped to generate background melodies. To read more
/r/Python
https://redd.it/1e6zh24
What does this project do?
My Python package is named after an alternative musical system. The vast majority of music is tonal (at least, in Western culture). In the 20th century, composers started to look for novel principles of music creation. Although some of these were based on the music of non-Western nations, some others were developed from scratch. The most famous of such musical paradigms is called the twelve-tone technique and it is also known as dodecaphony.
As a software developer, I am interested in dodecaphony, because it is logic-oriented and has many symmetries. I find it very suitable for combinatorial optimization.
So, I created a tool that takes YAML config as input and generates MIDI and WAV musical fragments in the twelve-tone technique. Given enough number of properly filled configs, it is possible to stack output fragments together and get a complete musical track.
This is a production-grade tool, not a toy project. With this tool, I released a 26-minutes album on Spotify and many other streaming platforms. However, main melodies for the album were written manually by myself and a lot of hard work was done with configs, but, nevertheless, the package really helped to generate background melodies. To read more
/r/Python
https://redd.it/1e6zh24
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
i need help with a project
hi there i am doing a project for my fullstack course but have come across an issue I am trying to make a detailed post view put once I added it to my URLs.py I get this error
Reverse for 'postdetail' with arguments '('DEAD-BY-DAYLIGHT’S-MYTHIC-TOME-EXPLORES-YUI-KIMURA-AND-THE-SPIRIT',)' not found. 1 pattern(s) tried: ['(?P<slug>[-a-zA-Z0-9]+)/\\Z']
and it is saying this line is giving me that error
<a href="{% url 'post_detail' post.slug %}" class="post-link black-text">
but when I delete this from my urls.py
path('<slug:slug>/', views.postdetail, name='postdetail'),
my page loads again how do I fix it
/r/django
https://redd.it/1e7dhlg
hi there i am doing a project for my fullstack course but have come across an issue I am trying to make a detailed post view put once I added it to my URLs.py I get this error
Reverse for 'postdetail' with arguments '('DEAD-BY-DAYLIGHT’S-MYTHIC-TOME-EXPLORES-YUI-KIMURA-AND-THE-SPIRIT',)' not found. 1 pattern(s) tried: ['(?P<slug>[-a-zA-Z0-9]+)/\\Z']
and it is saying this line is giving me that error
<a href="{% url 'post_detail' post.slug %}" class="post-link black-text">
but when I delete this from my urls.py
path('<slug:slug>/', views.postdetail, name='postdetail'),
my page loads again how do I fix it
/r/django
https://redd.it/1e7dhlg
Stateful Objects and Data Types in Python: Pyliven
A new way to calculate in python!
If you have used ReactJS, you might have encountered the famous useState hook and have noticed how it updates the UI every time you update a variable. I looked around and couldn't find something similar for python. And hence, I built this package called **Pyliven**
**What My Project Does**
I have released the first version and as of now, it supports a stateful numeric data-type called LiveNum. It can be used to create dependent expressions which can be updated by just updating dependencies. The functionality is illustrated by a simple code block below:
a = LiveNum(3)
b = 2 * a
print(b) # 6
a.update(4)
print(b) # 8
It is also compatible with int and float type conversions.
**Target Audience**
The project is meant for use in production. Although for practical use cases, a lot of functionalities need to be build. So for now, this can be used for small/toy projects or people looking for a way
/r/Python
https://redd.it/1e7dg1h
A new way to calculate in python!
If you have used ReactJS, you might have encountered the famous useState hook and have noticed how it updates the UI every time you update a variable. I looked around and couldn't find something similar for python. And hence, I built this package called **Pyliven**
**What My Project Does**
I have released the first version and as of now, it supports a stateful numeric data-type called LiveNum. It can be used to create dependent expressions which can be updated by just updating dependencies. The functionality is illustrated by a simple code block below:
a = LiveNum(3)
b = 2 * a
print(b) # 6
a.update(4)
print(b) # 8
It is also compatible with int and float type conversions.
**Target Audience**
The project is meant for use in production. Although for practical use cases, a lot of functionalities need to be build. So for now, this can be used for small/toy projects or people looking for a way
/r/Python
https://redd.it/1e7dg1h
Reddit
From the Python community on Reddit: Stateful Objects and Data Types in Python: Pyliven
Explore this post and more from the Python community
Need help with User's API key management in flask app
I am currently working on a Flask App that I want users to use with an API key. I am providing a frontend where users can generate/revoke api keys. I want to know the best way to create a backend system for the api key management. I am aware that keys are not stored in plaintext, they should be hashed or encrypted, I am struggling to find good resources for this, I need to be able to query all of a user's keys to show them in the frontend. Right now this is what I am thinking:
The generate endpoint will take in a user_id, based on this user_id I will generate a jwt token (storing the user_id in the payload), this jwt token itself will serve as the api key. I need this because when validating an api key I do not want to go through all the hashes in the database, I can get the user_id and narrow down the search. I am also planning to encrypt the jwt token and store it in the database so it can be used to query a user's api keys from the frontend (encrypted jwt will be decrypted in the frontend),
/r/flask
https://redd.it/1e7678a
I am currently working on a Flask App that I want users to use with an API key. I am providing a frontend where users can generate/revoke api keys. I want to know the best way to create a backend system for the api key management. I am aware that keys are not stored in plaintext, they should be hashed or encrypted, I am struggling to find good resources for this, I need to be able to query all of a user's keys to show them in the frontend. Right now this is what I am thinking:
The generate endpoint will take in a user_id, based on this user_id I will generate a jwt token (storing the user_id in the payload), this jwt token itself will serve as the api key. I need this because when validating an api key I do not want to go through all the hashes in the database, I can get the user_id and narrow down the search. I am also planning to encrypt the jwt token and store it in the database so it can be used to query a user's api keys from the frontend (encrypted jwt will be decrypted in the frontend),
/r/flask
https://redd.it/1e7678a
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
I just published a new video on my YouTube channel where I show how to configure PostgreSQL in Django
https://youtu.be/5i_5TzxX5e0
/r/django
https://redd.it/1e7i8yb
https://youtu.be/5i_5TzxX5e0
/r/django
https://redd.it/1e7i8yb
YouTube
Débuter avec PostgreSQL dans Django : Configuration Facile et Rapide ! 🚀
Vous cherchez à configurer PostgreSQL dans Django sans stress ? Cette vidéo est faite pour vous ! Découvrez étape par étape comment intégrer PostgreSQL dans votre projet Django, améliorer la performance de votre base de données et tirer parti des fonctionnalités…
could somebody in here help me with MTV??
I created a file "routes.py" inside folder view, where all my routes (only routes, not their functions) are stored in the py file
eg:
from flask import Flask
app = Flask(name)
# Route for home
@app.route("/")
def home():
return helloworld()
# Route for signup
@app.route("/signup", methods=["GET", "POST"])
def createaccount():
return signup()
now, how to import the routes.py module into my app.py module that contains the functions for the routes?
i have tried
from view.routes import hello_world (not working)
from view.routes import routes (not working)
please help me with it
/r/flask
https://redd.it/1e6wkvv
I created a file "routes.py" inside folder view, where all my routes (only routes, not their functions) are stored in the py file
eg:
from flask import Flask
app = Flask(name)
# Route for home
@app.route("/")
def home():
return helloworld()
# Route for signup
@app.route("/signup", methods=["GET", "POST"])
def createaccount():
return signup()
now, how to import the routes.py module into my app.py module that contains the functions for the routes?
i have tried
from view.routes import hello_world (not working)
from view.routes import routes (not working)
please help me with it
/r/flask
https://redd.it/1e6wkvv
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
DETAIL: User does not have CONNECT privilege, Heroku Database Issues
Hi,
I am attempting to deploy a Django application on Heroku. I have created a PostgreSQL database for the app in Heroku and implemented it into the settings.py, but every time I try to access it from Django in any way I receive the following errors:
And a 500 error.
This is an error I receive from running
user = authenticate(
request
,
username
=username,
password
=password)
All the this worked locally. I also am unable to make migrations to the database through
I have tried manually changing permission through PostgreSQL but have been denied permission every time, and also have tried destroying and recreating my database. I have pretty much spent the last four hours on this with no resolution. If anyone has experienced a similar error or may have a potential solution, please let me know. If you need more information, also let me know.
Thank
/r/django
https://redd.it/1e7nyvn
Hi,
I am attempting to deploy a Django application on Heroku. I have created a PostgreSQL database for the app in Heroku and implemented it into the settings.py, but every time I try to access it from Django in any way I receive the following errors:
2024-07-20T05:00:24.595711+00:00 app[web.1]: connection to server at "c5flugvup2318r.cluster-czrs8kj4isg7.us-east-1.rds.amazonaws.com" (44.209.39.179), port 5432 failed: FATAL: permission denied for database "postgres"2024-07-20T05:00:24.595713+00:00 app[web.1]: DETAIL: User does not have CONNECT privilege.And a 500 error.
This is an error I receive from running
user = authenticate(
request
,
username
=username,
password
=password)
All the this worked locally. I also am unable to make migrations to the database through
heroku run python `manage.py` migrate. I have tried manually changing permission through PostgreSQL but have been denied permission every time, and also have tried destroying and recreating my database. I have pretty much spent the last four hours on this with no resolution. If anyone has experienced a similar error or may have a potential solution, please let me know. If you need more information, also let me know.
Thank
/r/django
https://redd.it/1e7nyvn
Is Using Django Templates for Frontend Good Enough?
I'm trying to create a farm manager web app in Django. I am most definitely going to use it as the backend but I'm not so sure about as a frontend. I just want to see what people recommend for the frontend. I need to control users and a lot of agriculture data.
/r/django
https://redd.it/1e7onm4
I'm trying to create a farm manager web app in Django. I am most definitely going to use it as the backend but I'm not so sure about as a frontend. I just want to see what people recommend for the frontend. I need to control users and a lot of agriculture data.
/r/django
https://redd.it/1e7onm4
Reddit
From the django community on Reddit
Explore this post and more from the django community