Django carpooling POC
Hi everyone!
I am a junior backend developer based in France, and I’m working on a carpooling side project using Django as a backend.
I’m trying to get users feedbacks and validate the interest of the market before developing a react native app served by my Django backend.
So it would be nice for me to get testeurs and feedback, or to meet front-end/ux designer available for a side project.
https://www.rute.fr
/r/django
https://redd.it/y08p9h
Hi everyone!
I am a junior backend developer based in France, and I’m working on a carpooling side project using Django as a backend.
I’m trying to get users feedbacks and validate the interest of the market before developing a react native app served by my Django backend.
So it would be nice for me to get testeurs and feedback, or to meet front-end/ux designer available for a side project.
https://www.rute.fr
/r/django
https://redd.it/y08p9h
www.rute.fr
Rute - Le service de covoiturage responsable
Rute est un service de covoiturage français éco-conçu et souverain qui reverse 50% de ses revenus pour financer des projets de mobilités dans votre région.
looking for an "low dependency" or pythonesque way to generate PDF's
I need to generate PDF's.
While
I want my tool to be deployable without the hastle to install non pythonesque tools. I want people to be able to install my package and use it after installing its
previously I've been using
So anyone has any hints?
I'd also be open to hints about deployment if this is not as big of an issue as I think .
As this is basically a webapp which people might run on their own PC's, I'm open to good firefox/chrome hints to print a styled page aswell.
/r/Python
https://redd.it/y0dxrg
I need to generate PDF's.
While
pdfkit looks very promising with its ability to render HTML with styling (Which would absolutely be the most epicness as almost no new templating would have to be made) it also depends on wkhtmltopdf and maybe even a virtual X server.I want my tool to be deployable without the hastle to install non pythonesque tools. I want people to be able to install my package and use it after installing its
requirements.txt.previously I've been using
FPDF but its also not so modern..So anyone has any hints?
I'd also be open to hints about deployment if this is not as big of an issue as I think .
As this is basically a webapp which people might run on their own PC's, I'm open to good firefox/chrome hints to print a styled page aswell.
/r/Python
https://redd.it/y0dxrg
reddit
looking for an "low dependency" or pythonesque way to generate PDF's
I need to generate PDF's. While `pdfkit` looks very promising with its ability to render HTML with styling (Which would absolutely be the most...
N Using machine learning to find an optimal mixture of metals to create a desired alloy
A large team of researchers at the Max-Planck-Institut für Eisenforschung GmbH, working with colleagues from Technische Universität Darmstadt, Delft University of Technology and KTH Royal Institute of Technology, has found that it is possible to use machine learning to help metallurgists find the optimal mixture of metals to create a desired alloy. In their paper published in the journal Science, the group describes their three-step process and how well it worked when tested. Qing-Miao Hu and Rui Yang with the Chinese Academy of Sciences, Institute of Metal Research, have published a Perspectives piece in the same journal issue outlining the work done by the team on this new effort.
Humans have been mixing metals to suit their needs for thousands of years, and in so doing have learned a lot about creating alloys. But finding just the right mix has always involved some degree of inspiration, patience and chance. So most alloys have been created by starting with one main metal, such as iron, and adding small amounts of other metals to see what characteristics resulted.
Over the past few decades, things have begun to change, however—some researchers have begun making alloys that have equal parts of several metals. Creating such
/r/MachineLearning
https://redd.it/y0ak52
A large team of researchers at the Max-Planck-Institut für Eisenforschung GmbH, working with colleagues from Technische Universität Darmstadt, Delft University of Technology and KTH Royal Institute of Technology, has found that it is possible to use machine learning to help metallurgists find the optimal mixture of metals to create a desired alloy. In their paper published in the journal Science, the group describes their three-step process and how well it worked when tested. Qing-Miao Hu and Rui Yang with the Chinese Academy of Sciences, Institute of Metal Research, have published a Perspectives piece in the same journal issue outlining the work done by the team on this new effort.
Humans have been mixing metals to suit their needs for thousands of years, and in so doing have learned a lot about creating alloys. But finding just the right mix has always involved some degree of inspiration, patience and chance. So most alloys have been created by starting with one main metal, such as iron, and adding small amounts of other metals to see what characteristics resulted.
Over the past few decades, things have begun to change, however—some researchers have begun making alloys that have equal parts of several metals. Creating such
/r/MachineLearning
https://redd.it/y0ak52
reddit
[N] Using machine learning to find an optimal mixture of metals to...
A large team of researchers at the Max-Planck-Institut für Eisenforschung GmbH, working with colleagues from Technische Universität Darmstadt,...
Analyzing cloud infrastructure metrics with Jupyter Notebook
We built a library that allows for the visualization and exploration of infrastructure metrics, collected via a cloud asset inventory.
https://resoto.com/blog/2022/05/31/resoto-meets-jupyter-notebook
It's hard to understand what's going on in your infrastructure if you're dealing with 100s of Ks of resources.
This notebook is a flexible way to track and analyze trends in the state of your entire infrastructure, and then drill down into indvidiual problematic resources.
For example, the heatmap in the image depicts the number of instances per core, per account.
The y-axis represents the number of cores per instance, while account IDs are listed along x-axis. The color of the heatmap cell indicates the number of instances with the given number of cores; the brighter the color, the greater the number.
Now you can yell at the developers that spin up expensive resources.
/r/JupyterNotebooks
https://redd.it/w9bhi3
We built a library that allows for the visualization and exploration of infrastructure metrics, collected via a cloud asset inventory.
https://resoto.com/blog/2022/05/31/resoto-meets-jupyter-notebook
It's hard to understand what's going on in your infrastructure if you're dealing with 100s of Ks of resources.
This notebook is a flexible way to track and analyze trends in the state of your entire infrastructure, and then drill down into indvidiual problematic resources.
For example, the heatmap in the image depicts the number of instances per core, per account.
The y-axis represents the number of cores per instance, while account IDs are listed along x-axis. The color of the heatmap cell indicates the number of instances with the given number of cores; the brighter the color, the greater the number.
Now you can yell at the developers that spin up expensive resources.
/r/JupyterNotebooks
https://redd.it/w9bhi3
Resoto
Resoto Meets Jupyter Notebook | Resoto by Some Engineering Inc.
We recently released Resoto Notebook, a library that allows for the visualization and exploration of the Resoto graph interactively using Jupyter Notebook.
Forbidden (CSRF cookie not set.): /login/ REACT & DJANGO
I have built the frontend with react and backend with django and everything works fine on localhost but when I deployed the frontend on heroku and made a POST request to login I got the following error:
Forbidden (CSRF cookie not set.): /login/
Front end code:
https://pastebin.com/CHArh4JL
backend code:
https://pastebin.com/sXv1AWhK
​
Here are my settings.py
https://pastebin.com/nqRVy6ty
/r/django
https://redd.it/y092w1
I have built the frontend with react and backend with django and everything works fine on localhost but when I deployed the frontend on heroku and made a POST request to login I got the following error:
Forbidden (CSRF cookie not set.): /login/
Front end code:
https://pastebin.com/CHArh4JL
backend code:
https://pastebin.com/sXv1AWhK
​
Here are my settings.py
https://pastebin.com/nqRVy6ty
/r/django
https://redd.it/y092w1
Pastebin
function getCsrf(){ fetch("http://localhost:8000/csrf/", { - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Applying theme to Django website
Hey fellow programmers,
I have just started my journey with Django. For the last month I've been trying to get the grip of this framework and create a project management website for my company.
I can do stuff on the backend confidently combining it with very basic html to make website functional. I'm currently at the point where I'd like to push further with the front-end side by adding an admin template from the internet. This is exactly where I'm struggling.
I can connect my main html file with the css, but I can't figure out how to wrap the theme around the functionalities I've made on the backend. I'm not sure where to paste the code inside the provided html code downloaded from the web.
Dennis Ivy seems to be covering this topic on his Django tutorial (just to give a brief idea on what I'm struggling with) I just can't produce similar results with a different template.
So I'm here to ask you for advice on how add a theme around django website. If you know a detailed tutorial explaining this process, or could provide some guidelines, or a link to a
/r/djangolearning
https://redd.it/y0exfi
Hey fellow programmers,
I have just started my journey with Django. For the last month I've been trying to get the grip of this framework and create a project management website for my company.
I can do stuff on the backend confidently combining it with very basic html to make website functional. I'm currently at the point where I'd like to push further with the front-end side by adding an admin template from the internet. This is exactly where I'm struggling.
I can connect my main html file with the css, but I can't figure out how to wrap the theme around the functionalities I've made on the backend. I'm not sure where to paste the code inside the provided html code downloaded from the web.
Dennis Ivy seems to be covering this topic on his Django tutorial (just to give a brief idea on what I'm struggling with) I just can't produce similar results with a different template.
So I'm here to ask you for advice on how add a theme around django website. If you know a detailed tutorial explaining this process, or could provide some guidelines, or a link to a
/r/djangolearning
https://redd.it/y0exfi
YouTube
Python Django 7 Hour Course
Build a discord-like application with Python Django. Visit the finished application at https://studybuddev.herokuapp.com/
Get The Full Django Beginners Course:
https://dennisivy.teachable.com/p/django-beginners-course/?product_id=3222835&coupon_code=BRAD…
Get The Full Django Beginners Course:
https://dennisivy.teachable.com/p/django-beginners-course/?product_id=3222835&coupon_code=BRAD…
Linking to DetailView
Hello!
Thank you all in advance for assisting me. I am having a little issue with linking to a detailed view of a product.
I am building a property management system as a learning project. This is my first ever project I have built by myself and I am actually pretty excited and happy I have come this far. It may not look pretty but I am super excited.
Anyway, the issue I am having is that I have a project with 3 applications inside; home, property, and tenant. Home, just contains the home/about/contact pages, Property displays the properties that are available for rent. I got the property link to display a list of all the available properties, however I am now trying to setup a link on each listing so a potential renter can view a property in more detail. I am stuck on how to create the connection between to page that displays all the properties and the detailed view.
Here is my [models.py](https://models.py)
from distutils.command.upload import upload
from email.policy import default
from random import choices
from tabnanny import verbose
from tokenize import blank_re
/r/djangolearning
https://redd.it/y04er3
Hello!
Thank you all in advance for assisting me. I am having a little issue with linking to a detailed view of a product.
I am building a property management system as a learning project. This is my first ever project I have built by myself and I am actually pretty excited and happy I have come this far. It may not look pretty but I am super excited.
Anyway, the issue I am having is that I have a project with 3 applications inside; home, property, and tenant. Home, just contains the home/about/contact pages, Property displays the properties that are available for rent. I got the property link to display a list of all the available properties, however I am now trying to setup a link on each listing so a potential renter can view a property in more detail. I am stuck on how to create the connection between to page that displays all the properties and the detailed view.
Here is my [models.py](https://models.py)
from distutils.command.upload import upload
from email.policy import default
from random import choices
from tabnanny import verbose
from tokenize import blank_re
/r/djangolearning
https://redd.it/y04er3
Run notebook on GPU without creating a new environment
I’d have to re-install all my packages if I create a new environment. Is there a way to run the notebook on GPU without doing so. I installed CUDA toolkit and tensorflow-GPU btw.
/r/JupyterNotebooks
https://redd.it/w75d0d
I’d have to re-install all my packages if I create a new environment. Is there a way to run the notebook on GPU without doing so. I installed CUDA toolkit and tensorflow-GPU btw.
/r/JupyterNotebooks
https://redd.it/w75d0d
reddit
Run notebook on GPU without creating a new environment
I’d have to re-install all my packages if I create a new environment. Is there a way to run the notebook on GPU without doing so. I installed CUDA...
Best payment processing packages?
I've been using django-paypal for payment processing for personal sites, and I used dj-stripe for one client site that didn't get many customers. I'm wondering, because I can't just have everyone use paypal, and dj-stripe is quite limited: how do you all handle payment processing, and what has your success been like?
I'm hoping to partner with a custom furniture seller I found on Etsy. If they want to partner with me, I'm going to need better payment processing than paypal
/r/django
https://redd.it/y0rdyu
I've been using django-paypal for payment processing for personal sites, and I used dj-stripe for one client site that didn't get many customers. I'm wondering, because I can't just have everyone use paypal, and dj-stripe is quite limited: how do you all handle payment processing, and what has your success been like?
I'm hoping to partner with a custom furniture seller I found on Etsy. If they want to partner with me, I'm going to need better payment processing than paypal
/r/django
https://redd.it/y0rdyu
reddit
Best payment processing packages?
I've been using django-paypal for payment processing for personal sites, and I used dj-stripe for one client site that didn't get many customers....
How do i get out of paranthesis or similar things without pressing right- arrow everytime ? Is there a shortcut for this? Thank you
Hi guys just started learning. How do i get out of paranthesis or similar things without pressing right- arrow everytime ? The jupyter auto completes brackets , but everytime i ve had to press right arrow to get out of paranthesis/ brackets/ inverted comas after writing code.. its really annoying .. is there a a shortcut that i can use ?
Thanks
/r/JupyterNotebooks
https://redd.it/w65s42
Hi guys just started learning. How do i get out of paranthesis or similar things without pressing right- arrow everytime ? The jupyter auto completes brackets , but everytime i ve had to press right arrow to get out of paranthesis/ brackets/ inverted comas after writing code.. its really annoying .. is there a a shortcut that i can use ?
Thanks
/r/JupyterNotebooks
https://redd.it/w65s42
reddit
How do i get out of paranthesis or similar things without pressing...
Hi guys just started learning. How do i get out of paranthesis or similar things without pressing right- arrow everytime ? The jupyter auto...
Tuesday Daily Thread: Advanced questions
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/y0u2xl
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/y0u2xl
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
The Pdfalyzer is a tool for visualizing the inner tree structure of a PDF in large and colorful diagrams as well as scanning its internals for suspicious content
The Pdfalyzer is a command line tool (
Motivation for the project was personal: I got hacked by a PDF that turned out to be hiding its maleficent instructions inside the font binary where it was missed by modern malware scanners (twitter thread) (more details)
​
[GitHub](https://github.com/michelcrypt4d4mus/pdfalyzer)
PyPi
`pip3 install pdfalyzer` (use `pipx` instead if you have it)
Leverages:
This tool was built to fill a gap in the PDF assessment landscape. Didier Stevens's pdfid.py and pdf-parser.py are still the best game in town when it comes to PDF analysis tools but they lack in the visualization department and also don't give you much to work with as far as giving you a data model you can write your own code around. Peepdf seemed promising but turned out to be in a buggy, out of date, and more or less unfixable state. And neither of them offered much in the way of tooling for embedded binary analysis. Thus I felt the world might be slightly improved
/r/Python
https://redd.it/y0rnqk
The Pdfalyzer is a command line tool (
pdfalyze) as well as a library for working with, visualizing, and scanning the contents of a PDF. Motivation for the project was personal: I got hacked by a PDF that turned out to be hiding its maleficent instructions inside the font binary where it was missed by modern malware scanners (twitter thread) (more details)
​
[GitHub](https://github.com/michelcrypt4d4mus/pdfalyzer)
PyPi
`pip3 install pdfalyzer` (use `pipx` instead if you have it)
Leverages:
PyPDF2 (PDF parsing), AnyTree (data structure), yaralyzer (malware scanning/pattern matching with YARA), rich (colors/layout), and rich-argparse-plus (prettified help screen)This tool was built to fill a gap in the PDF assessment landscape. Didier Stevens's pdfid.py and pdf-parser.py are still the best game in town when it comes to PDF analysis tools but they lack in the visualization department and also don't give you much to work with as far as giving you a data model you can write your own code around. Peepdf seemed promising but turned out to be in a buggy, out of date, and more or less unfixable state. And neither of them offered much in the way of tooling for embedded binary analysis. Thus I felt the world might be slightly improved
/r/Python
https://redd.it/y0rnqk
GitHub
GitHub - michelcrypt4d4mus/pdfalyzer: Analyze PDFs with colors (and YARA)
Analyze PDFs with colors (and YARA). Contribute to michelcrypt4d4mus/pdfalyzer development by creating an account on GitHub.
Tracking Endpoint Access
Hey guys!
Say for example, there's a specific endpoint I would like to monitor, which includes how many users are accessing that endpoint, how much traffic it receives, and the average response time for those endpoints.
Do you have any modules/services to suggest? Thanks!
/r/django
https://redd.it/y12z8t
Hey guys!
Say for example, there's a specific endpoint I would like to monitor, which includes how many users are accessing that endpoint, how much traffic it receives, and the average response time for those endpoints.
Do you have any modules/services to suggest? Thanks!
/r/django
https://redd.it/y12z8t
reddit
Tracking Endpoint Access
Hey guys! Say for example, there's a specific endpoint I would like to monitor, which includes how many users are accessing that endpoint,...
Asking for Feedback: We built a tool that automatically generates API tests
stepci/stepci: API Testing and Monitoring made simple (github.com)
/r/Python
https://redd.it/y12xq0
stepci/stepci: API Testing and Monitoring made simple (github.com)
/r/Python
https://redd.it/y12xq0
GitHub
GitHub - stepci/stepci: Automated API Testing and Quality Assurance
Automated API Testing and Quality Assurance. Contribute to stepci/stepci development by creating an account on GitHub.
Image Similarity Search using PyTorch & Spotify Annoy
In this webcast I’ll show how to create an image similarity search using a pre-trained model in PyTorch and Spotify Annoy (Approximate Nearest Neighbor Oh Yeah!).
https://www.youtube.com/watch?v=wDnXFXbytVk
​
/r/Python
https://redd.it/y15vs3
In this webcast I’ll show how to create an image similarity search using a pre-trained model in PyTorch and Spotify Annoy (Approximate Nearest Neighbor Oh Yeah!).
https://www.youtube.com/watch?v=wDnXFXbytVk
​
/r/Python
https://redd.it/y15vs3
YouTube
Image Similarity Search using PyTorch & Spotify Annoy
In this webcast I’ll show how to create an image similarity search using a pre-trained model in PyTorch and Spotify Annoy (Approximate Nearest Neighbor Oh Yeah!).
Spotify Annoy: https://github.com/spotify/annoy
Approximate nearest neighbors and vector models…
Spotify Annoy: https://github.com/spotify/annoy
Approximate nearest neighbors and vector models…
How We Boosted Video Processing Speed 5x by Optimizing GPU Usage in Python
Hi, hope you'll fined it useful, please feel free to share your thoughts about it >>
My blog post
https://preview.redd.it/9mlcjuhyz6t91.png?width=1600&format=png&auto=webp&s=2f41ffc8920e9d043c57e07522220673718ed3cc
/r/Python
https://redd.it/y1bjxi
Hi, hope you'll fined it useful, please feel free to share your thoughts about it >>
My blog post
https://preview.redd.it/9mlcjuhyz6t91.png?width=1600&format=png&auto=webp&s=2f41ffc8920e9d043c57e07522220673718ed3cc
/r/Python
https://redd.it/y1bjxi
Medium
How We Boosted Video Processing Speed 5x by Optimizing GPU Usage in Python
By: Nitsan Hasson
Free 45 Pages tutorial for Flask (How to build a mobile web)
https://docdro.id/0GOZUFr
/r/Python
https://redd.it/y1fp3q
https://docdro.id/0GOZUFr
/r/Python
https://redd.it/y1fp3q
www.docdroid.net
Ultimate Flask Tutorial 2022 Reddit.pdf
Written by Antonio Blago, http://www.antonioblago.com. Free Flask Tutorial: Initialization of Flask, Implement Plotly and Publish on Hosting System. By Antonio Blago Subscribe to my newsletter: www.antonioblago.com/Subscribe email: info@antonioblago.com 2022…
django-comments-dab - comments, likes, subscription and moderation
https://django-comment-dab.readthedocs.io/en/latest/
/r/django
https://redd.it/y1heu8
https://django-comment-dab.readthedocs.io/en/latest/
/r/django
https://redd.it/y1heu8
Django & Celery Integration - MIT / Visual Tasks Manager: Start / Cancelling / View Execution Logs
https://github.com/app-generator/sample-django-celery
/r/django
https://redd.it/y14l2u
https://github.com/app-generator/sample-django-celery
/r/django
https://redd.it/y14l2u
GitHub
GitHub - app-generator/sample-django-celery at blog.appseed.us
Django & Celery Integration - Open-Source Sample | AppSeed.us - GitHub - app-generator/sample-django-celery at blog.appseed.us
DataCamp is offering free access to their platform all week! Try it out now! https://bit.ly/3Q1tTO3
/r/JupyterNotebooks
https://redd.it/w4j7ux
/r/JupyterNotebooks
https://redd.it/w4j7ux