Best relevant/real-world Django apps job seekers should make themselves...
Iam currently trying for a python django developer job as a career change after doing an internship, since the job market is shit and it will take some time to recover from it, Iam thinking of developing a practical application all by myself in the meantime , the kind that i will have to make after getting a job as a developer so that it will help me to master Django more efficiently and increase my chances of getting hired, what are the ones i should try ?, also it will be great if resources that will help me for this are suggested, also need to know about the relevant methods for things like authorisation etc...
/r/djangolearning
https://redd.it/183kfrq
Iam currently trying for a python django developer job as a career change after doing an internship, since the job market is shit and it will take some time to recover from it, Iam thinking of developing a practical application all by myself in the meantime , the kind that i will have to make after getting a job as a developer so that it will help me to master Django more efficiently and increase my chances of getting hired, what are the ones i should try ?, also it will be great if resources that will help me for this are suggested, also need to know about the relevant methods for things like authorisation etc...
/r/djangolearning
https://redd.it/183kfrq
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Bill Gates told a German newspaper that GPT5 wouldn't be much better than GPT4: "there are reasons to believe that we have reached a plateau" [N]
https://www.handelsblatt.com/technik/ki/bill-gates-mit-ki-koennen-medikamente-viel-schneller-entwickelt-werden/29450298.html
/r/MachineLearning
https://redd.it/183tft1
https://www.handelsblatt.com/technik/ki/bill-gates-mit-ki-koennen-medikamente-viel-schneller-entwickelt-werden/29450298.html
/r/MachineLearning
https://redd.it/183tft1
Handelsblatt
Bill Gates: „Mit KI können Medikamente viel schneller entwickelt werden"
Microsoft-Gründer Bill Gates spricht über Fortschritte in der künstlichen Intelligenz, wie sie dem globalen Süden helfen kann und warum Bäume pflanzen nicht das beste Mittel gegen den Klimawandel ist.
Cleanlab
Cleanlab is a new Python library that automatically cleans data sets (outliers, duplicates, data labels), featurizes and trains multi-modal data sets (eg tabular, image)
https://github.com/cleanlab/cleanlab
​
/r/Python
https://redd.it/18474eh
Cleanlab is a new Python library that automatically cleans data sets (outliers, duplicates, data labels), featurizes and trains multi-modal data sets (eg tabular, image)
https://github.com/cleanlab/cleanlab
​
/r/Python
https://redd.it/18474eh
GitHub
GitHub - cleanlab/cleanlab: Cleanlab's open-source library is the standard data-centric AI package for data quality and machine…
Cleanlab's open-source library is the standard data-centric AI package for data quality and machine learning with messy, real-world data and labels. - cleanlab/cleanlab
I made a CLI Python file that creates a template for a flask project. It creates all the folders and files plus databases and testing environment. Link to the GitHub repo in the description.
https://github.com/shakey0/flask-starter-template
Make sure you have Pipenv installed globally on your system. Instructions are at the bottom of the README.
Please note that if you're on Windows and haven't yet run anything on " 127.0.0.1 ", you may need to open Command Prompt as an administrator, run the command " netsh winsock reset " and then restart your computer.
/r/Python
https://redd.it/1848hpn
https://github.com/shakey0/flask-starter-template
Make sure you have Pipenv installed globally on your system. Instructions are at the bottom of the README.
Please note that if you're on Windows and haven't yet run anything on " 127.0.0.1 ", you may need to open Command Prompt as an administrator, run the command " netsh winsock reset " and then restart your computer.
/r/Python
https://redd.it/1848hpn
GitHub
GitHub - shakey0/flask-starter-template
Contribute to shakey0/flask-starter-template development by creating an account on GitHub.
How to organize your team to work with Django and Git ?
Hi everyone,
I'm a student in computer sciences and with 5 friends we will go on a challenge where we must create a web site in \~16 hours.
We chose to use Django because it really conform to what we need, and we learned how to use it for this challenge.
However, we learned separately and we might know how to create a project on our own but not as a team.
We know how to use Git and will obviously use it, but we don't know how we should organize ourselves to work efficiently.
How shoud we work with Git so our Django project is optimal ? I'll explain what I mean :
It might appends that we are working on dependant project, like one guy on a database and another one on the front end to show this database. How can we prepare and work so we don't have to always ask eachother what are they doing ?
Also for the templates, the url management, and how to avoid big merge conflict ? If we do separate apps in Django, how can we do so at the end it's easy to merge them ?
For now
/r/django
https://redd.it/1848sdk
Hi everyone,
I'm a student in computer sciences and with 5 friends we will go on a challenge where we must create a web site in \~16 hours.
We chose to use Django because it really conform to what we need, and we learned how to use it for this challenge.
However, we learned separately and we might know how to create a project on our own but not as a team.
We know how to use Git and will obviously use it, but we don't know how we should organize ourselves to work efficiently.
How shoud we work with Git so our Django project is optimal ? I'll explain what I mean :
It might appends that we are working on dependant project, like one guy on a database and another one on the front end to show this database. How can we prepare and work so we don't have to always ask eachother what are they doing ?
Also for the templates, the url management, and how to avoid big merge conflict ? If we do separate apps in Django, how can we do so at the end it's easy to merge them ?
For now
/r/django
https://redd.it/1848sdk
Reddit
From the django community on Reddit
Explore this post and more from the django community
Python to C translater: free, open-source and online
It walks Python ast and build C-code. You can use while...else, if...elif...else, functions with default arguments, pow and preproc constants, links, inline if...else.
I will try to use the translater to programming microcontrollers.
More examples are at "tests" directory.
Source code and description (installing, using): https://github.com/syeysk/sy\_py2c/
​
It's only alpha-test.
/r/Python
https://redd.it/1843qox
It walks Python ast and build C-code. You can use while...else, if...elif...else, functions with default arguments, pow and preproc constants, links, inline if...else.
I will try to use the translater to programming microcontrollers.
More examples are at "tests" directory.
Source code and description (installing, using): https://github.com/syeysk/sy\_py2c/
​
It's only alpha-test.
/r/Python
https://redd.it/1843qox
GitHub
GitHub - syeysk/sy_py2c: translation Python source into C.
translation Python source into C. Contribute to syeysk/sy_py2c development by creating an account on GitHub.
How can I log out a user and create a new User?
Following tutorials for Django usages of JWT, most contain a simple tutorial of logging in and refresh code. In particular it looks like this,
path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
However when logging out, most of it is client-side "log outs" just clear the localStorage
but I feel this would cause problems because the access token in still on the DB. I see a \`TokenBlacklistView\` available. Is this the correct procedure to logout, to also blacklist the access token?
On a different note I don't see a View to create accounts, does anyone know where I can find it?
/r/djangolearning
https://redd.it/1832zhn
Following tutorials for Django usages of JWT, most contain a simple tutorial of logging in and refresh code. In particular it looks like this,
path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
However when logging out, most of it is client-side "log outs" just clear the localStorage
but I feel this would cause problems because the access token in still on the DB. I see a \`TokenBlacklistView\` available. Is this the correct procedure to logout, to also blacklist the access token?
On a different note I don't see a View to create accounts, does anyone know where I can find it?
/r/djangolearning
https://redd.it/1832zhn
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
I made a CLI file that creates a template for a flask project. It creates all the folders and files plus databases and testing environment. Link to the GitHub repo in the description.
https://github.com/shakey0/flask-starter-template
/r/flask
https://redd.it/18487si
https://github.com/shakey0/flask-starter-template
/r/flask
https://redd.it/18487si
GitHub
GitHub - shakey0/flask-starter-template
Contribute to shakey0/flask-starter-template development by creating an account on GitHub.
New to Django - Where do you start your project after planning features?
I wanted to start a new Web app project and chose Django for it. Due to the reason it's python and I can also use python libraries for background tasks.
But I have problems deciding to what to start with. Maybe first design the basic layout of my pages? How do you guys do that? I have some problems, and may go the way to first design my pages in pure html before adapting them to Django.
/r/django
https://redd.it/184dm3g
I wanted to start a new Web app project and chose Django for it. Due to the reason it's python and I can also use python libraries for background tasks.
But I have problems deciding to what to start with. Maybe first design the basic layout of my pages? How do you guys do that? I have some problems, and may go the way to first design my pages in pure html before adapting them to Django.
/r/django
https://redd.it/184dm3g
Reddit
From the django community on Reddit
Explore this post and more from the django community
What is a proper DB design for newsletter subscribers, unsubscribers, and registered users when dealing with email lists?
From these methods what is the most common way of keeping track of newsletter subscribers?
A) You have 2 tables one for users and one for people that aren't users but subscribed to your newsletter. When you are going to send marketing emails you join the data from both tables to get your final email list.
B) You only have a newsletter table where people subscribe to, and when a user registers to the website it not only creates an entry in the Users table but also a duplicate entry in the newsletter table. When you need to send marketing emails, you only grab emails from the newsletter table.
And with these methods, how do you deal with unsubscribes?
With method B is very easy, you can simply create a Boolean field to keep track of that
But method A you have 2 tables to keep track of, so do you create a 3rd table to keep track of unsubscribes? Seems a bit unnecessary.
I'm sure this has been done a billion times, so just wondering what is the most common pattern for this.
*As a bit of extra context, I'm using Django only for my backend, my frontend is built using ReactJs. This means
/r/django
https://redd.it/184kzb4
From these methods what is the most common way of keeping track of newsletter subscribers?
A) You have 2 tables one for users and one for people that aren't users but subscribed to your newsletter. When you are going to send marketing emails you join the data from both tables to get your final email list.
B) You only have a newsletter table where people subscribe to, and when a user registers to the website it not only creates an entry in the Users table but also a duplicate entry in the newsletter table. When you need to send marketing emails, you only grab emails from the newsletter table.
And with these methods, how do you deal with unsubscribes?
With method B is very easy, you can simply create a Boolean field to keep track of that
But method A you have 2 tables to keep track of, so do you create a 3rd table to keep track of unsubscribes? Seems a bit unnecessary.
I'm sure this has been done a billion times, so just wondering what is the most common pattern for this.
*As a bit of extra context, I'm using Django only for my backend, my frontend is built using ReactJs. This means
/r/django
https://redd.it/184kzb4
Reddit
From the django community on Reddit
Explore this post and more from the django community
Thoughts on AWS Glue? I kinda hate it
1000 lines of code to transform and join several tables into one. Any errors do not say which row failed. Debugging is a nightmare.
Use case is 100’s of thousands of records. If I was working locally, I could easily load all of the records into a store and transform row by row in a much more declarative way and have far superior error handling/logging. It’s not my choice to be working in Glue.
I’m new to AWS work. Is there a better way to run python programs that don’t require clustering like in glue?
/r/Python
https://redd.it/184ey27
1000 lines of code to transform and join several tables into one. Any errors do not say which row failed. Debugging is a nightmare.
Use case is 100’s of thousands of records. If I was working locally, I could easily load all of the records into a store and transform row by row in a much more declarative way and have far superior error handling/logging. It’s not my choice to be working in Glue.
I’m new to AWS work. Is there a better way to run python programs that don’t require clustering like in glue?
/r/Python
https://redd.it/184ey27
Reddit
From the Python community on Reddit
Explore this post and more from the Python 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/184p0tr
# 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/184p0tr
Adding a custom user model after creating a project - how screwed am I?
I've been using Django for about a year and at the start, I thought it was mainly going to be for storing data and the ORM was a big draw, along with ease if setup and use etc.
I didn't really think about setting up a custom user model because at the time, we thought we'd use another system or an API later to put data in but now I want use it to make a proper web app as well.
How hard is it to incorporate a custom user model in an existing project and what things do I need to consider?
/r/django
https://redd.it/184p8if
I've been using Django for about a year and at the start, I thought it was mainly going to be for storing data and the ORM was a big draw, along with ease if setup and use etc.
I didn't really think about setting up a custom user model because at the time, we thought we'd use another system or an API later to put data in but now I want use it to make a proper web app as well.
How hard is it to incorporate a custom user model in an existing project and what things do I need to consider?
/r/django
https://redd.it/184p8if
Reddit
From the django community on Reddit
Explore this post and more from the django community
Help with running flask files
I was given a zip file with lots of other files in it and am trying to run it on my computer. I have Flask and MySQLalchemy installed on my computer. Can anyone help me figure out why it is not running?
Apparently I need dotenv to run flask so I tried installing it
C:\\Users\\name>pip install dotenv
Collecting dotenv
Downloading dotenv-0.0.5.tar.gz (2.4 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> [32 lines of output\]
Collecting distribute
Downloading distribute-0.7.3.zip (145 kB)
\-------------------------------------- 145.4/145.4 kB 1.1 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[6 lines of output\]
usage: setup.py [global_opts\] cmd1 [cmd1_opts\] [cmd2 [cmd2_opts\] ...\]
or: setup.py \--help [cmd1 cmd2 ...\]
or: setup.py \--help-commands
or: setup.py cmd --help
error: invalid command 'dist_info'
[end of output\]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error
/r/flask
https://redd.it/184skyt
I was given a zip file with lots of other files in it and am trying to run it on my computer. I have Flask and MySQLalchemy installed on my computer. Can anyone help me figure out why it is not running?
Apparently I need dotenv to run flask so I tried installing it
C:\\Users\\name>pip install dotenv
Collecting dotenv
Downloading dotenv-0.0.5.tar.gz (2.4 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> [32 lines of output\]
Collecting distribute
Downloading distribute-0.7.3.zip (145 kB)
\-------------------------------------- 145.4/145.4 kB 1.1 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[6 lines of output\]
usage: setup.py [global_opts\] cmd1 [cmd1_opts\] [cmd2 [cmd2_opts\] ...\]
or: setup.py \--help [cmd1 cmd2 ...\]
or: setup.py \--help-commands
or: setup.py cmd --help
error: invalid command 'dist_info'
[end of output\]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error
/r/flask
https://redd.it/184skyt
What to do when a FOSS library's namespace is too generic? Is it worth signalling?
Maybe it's the very frustrating last 24 hours talking, but as I found out that
In the Haskell community, there is often talk about namespaces being a community resource, and thus we need to thread carefully when choosing a name for a new project that is publicly available and on one of the language's main package repos.
Does this kind of discussion also exist for Python?
/r/Python
https://redd.it/184oglu
Maybe it's the very frustrating last 24 hours talking, but as I found out that
pandoc != pypandoc I lost it.In the Haskell community, there is often talk about namespaces being a community resource, and thus we need to thread carefully when choosing a name for a new project that is publicly available and on one of the language's main package repos.
Does this kind of discussion also exist for Python?
/r/Python
https://redd.it/184oglu
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
issue with AD auth with two resource group allow
Hi everyone, I am kinda newbie to Django and now I am helping my company to build an AD auth with the web app.
I am using django-auth-ldap for setting it and based on the group of users, they have certain permissions to view the page with Python decorators.
But the issue I am encountering is that users in group A can login and permission are all fine, but for the users in group B, they can log in but it always redirect to the httpforbben page due to the decorator, they cannot access anything. So there is something wrong with the ldap setup in [setting.py](https://setting.py)
​
I tried to used nested group (i.e. group B is under group A) to see if user in group B can access the page but it is still in vain. I now separate it and try to setup something like this in [setting.py](https://setting.py)
AUTH_LDAP_REQUIRE_GROUP = (
LDAPGroupQuery("cn=groupA,ou=windows,ou=GALAXY_TEAM,ou=Applications,o=IAM") |
LDAPGroupQuery("cn=groupB,ou=linux,ou=GALAXY_TEAM,ou=Applications,o=IAM")
)
but still the user in that group cannot login..
does anyone have the experience in setting up ldap permission on multiple groups?
/r/django
https://redd.it/184vt89
Hi everyone, I am kinda newbie to Django and now I am helping my company to build an AD auth with the web app.
I am using django-auth-ldap for setting it and based on the group of users, they have certain permissions to view the page with Python decorators.
But the issue I am encountering is that users in group A can login and permission are all fine, but for the users in group B, they can log in but it always redirect to the httpforbben page due to the decorator, they cannot access anything. So there is something wrong with the ldap setup in [setting.py](https://setting.py)
​
I tried to used nested group (i.e. group B is under group A) to see if user in group B can access the page but it is still in vain. I now separate it and try to setup something like this in [setting.py](https://setting.py)
AUTH_LDAP_REQUIRE_GROUP = (
LDAPGroupQuery("cn=groupA,ou=windows,ou=GALAXY_TEAM,ou=Applications,o=IAM") |
LDAPGroupQuery("cn=groupB,ou=linux,ou=GALAXY_TEAM,ou=Applications,o=IAM")
)
but still the user in that group cannot login..
does anyone have the experience in setting up ldap permission on multiple groups?
/r/django
https://redd.it/184vt89
Flask-Muck (Beta): REST Framework that generates complete APIs for your SqlAlchemy models in as little as 9 lines of code. Looking for early adopters.
https://github.com/dtiesling/flask-muck
/r/flask
https://redd.it/184xvje
https://github.com/dtiesling/flask-muck
/r/flask
https://redd.it/184xvje
GitHub
GitHub - dtiesling/flask-muck: 🧹 Flask REST framework for generating CRUD APIs and OpenAPI specs in the SQLAlchemy, Marshmallow/Pydantic…
🧹 Flask REST framework for generating CRUD APIs and OpenAPI specs in the SQLAlchemy, Marshmallow/Pydantic application stack. - dtiesling/flask-muck
How to login to Django views from React?
Currently I am facing an issue where I can sign in from react accurately but my django session is not updated based on whether I login or logout from react.
What I am expecting is that when I sign in through react, my current user view in django will be changed to demonstrate the current user I signed in as from react but at this moment no changes can be seen. Using jwt tokens from react, I am able to access the current user view and get the correct user but this change can only be observed in react and the server side isn't adjusted to have the correct user logged in.
The following image demonstrates my problem: problem
Please provide any help that you can as I have been stuck on this problem for roughly a week now and have been unable to find a solution.
This is how I handle sign ins in react.
//Signs In the user through Django
const handleSignIn = async ()=> {
try {
const response = await axios.post('http://127.0.0.1:8000/api/login/', {
/r/djangolearning
https://redd.it/184xb6g
Currently I am facing an issue where I can sign in from react accurately but my django session is not updated based on whether I login or logout from react.
What I am expecting is that when I sign in through react, my current user view in django will be changed to demonstrate the current user I signed in as from react but at this moment no changes can be seen. Using jwt tokens from react, I am able to access the current user view and get the correct user but this change can only be observed in react and the server side isn't adjusted to have the correct user logged in.
The following image demonstrates my problem: problem
Please provide any help that you can as I have been stuck on this problem for roughly a week now and have been unable to find a solution.
This is how I handle sign ins in react.
//Signs In the user through Django
const handleSignIn = async ()=> {
try {
const response = await axios.post('http://127.0.0.1:8000/api/login/', {
/r/djangolearning
https://redd.it/184xb6g