I built a platform for helping Django developer to find a new job.. and it's work pretty well !
Hey r/Django :),
I'm a freelance Django dev and I'm making some side projects (Big fan of the indie hacking movement)
My last one is a platform for helping Django developers to find a new job or a new freelance contract (https://www.djangotop.com).It's 100% free. I put it online 1 month ago and I already have 70 devs that are signed up :D (and 2 found a job !)
Do not hesitate to give feedback and if you are interested, create your profile ! It helps me to be able to bring back more traffic from companies interested in Django developers !
/r/django
https://redd.it/xq7jlx
Hey r/Django :),
I'm a freelance Django dev and I'm making some side projects (Big fan of the indie hacking movement)
My last one is a platform for helping Django developers to find a new job or a new freelance contract (https://www.djangotop.com).It's 100% free. I put it online 1 month ago and I already have 70 devs that are signed up :D (and 2 found a job !)
Do not hesitate to give feedback and if you are interested, create your profile ! It helps me to be able to bring back more traffic from companies interested in Django developers !
/r/django
https://redd.it/xq7jlx
Reddit
r/django
News and links for Django developers.
D DALL·E Now Available Without Waitlist
https://openai.com/blog/dall-e-now-available-without-waitlist/
It appears to work as advertised, not any special workflow. (as a bonus, it does work with organizations too, with credits shared)
/r/MachineLearning
https://redd.it/xqhho8
https://openai.com/blog/dall-e-now-available-without-waitlist/
It appears to work as advertised, not any special workflow. (as a bonus, it does work with organizations too, with credits shared)
/r/MachineLearning
https://redd.it/xqhho8
Openai
DALL·E now available without waitlist
New users can start creating straight away. Lessons learned from deployment and improvements to our safety systems make wider availability possible.
Made a private social network with flask.
Here is the landing page: vomindo.pythonanywhere.com
If you want to test it out you can dm me and I will send you an invite link.
Any feedback on the landing page is welcomed. I kinda need some help to figure out how to make it better.
/r/flask
https://redd.it/xq5nyq
Here is the landing page: vomindo.pythonanywhere.com
If you want to test it out you can dm me and I will send you an invite link.
Any feedback on the landing page is welcomed. I kinda need some help to figure out how to make it better.
/r/flask
https://redd.it/xq5nyq
reddit
Made a private social network with flask.
Here is the landing page: vomindo.pythonanywhere.com If you want to test it out you can dm me and I will send you an invite link. Any feedback...
Related object is literally being saved immediately above but still getting "ValueError("save() prohibited ... unsaved related object 'url'.")
Django==4.0.7 (I can't use 4.1 yet because of django-celery-beat not working with 4.1)
Getting this error for a updateorcreate() using a related object (code line 392). Django thinks it's unsaved but it's literally being saved right above it. This only happens when the get() fails and I'm creating the object after URL.DoesNotExist is caught. If the get() works the updateorcreate() is handled without issue.
How can I save it more than it's already being saved? :-)
(Traceback is at the bottom of this post)
Code:
378 # Handle URL key
379
/r/djangolearning
https://redd.it/xqs3m4
Django==4.0.7 (I can't use 4.1 yet because of django-celery-beat not working with 4.1)
Getting this error for a updateorcreate() using a related object (code line 392). Django thinks it's unsaved but it's literally being saved right above it. This only happens when the get() fails and I'm creating the object after URL.DoesNotExist is caught. If the get() works the updateorcreate() is handled without issue.
How can I save it more than it's already being saved? :-)
(Traceback is at the bottom of this post)
Code:
378 # Handle URL key
379
/r/djangolearning
https://redd.it/xqs3m4
reddit
Related object is literally being saved immediately above but...
Django==4.0.7 (I can't use 4.1 yet because of django-celery-beat not working with 4.1) Getting this error for a update_or_create() using a...
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/xqsk02
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/xqsk02
reddit
Thursday Daily Thread: Python Careers, Courses, and Furthering...
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python...
How to reformat IPYNB files for JSON compatability?
When dragging and dropping the .IPYNB file in Jupyter Notebooks, I get an error...
The error was: SyntaxError: Unexpected end of JSON input
when inspecting the properties I see:
\-------------
Type of file: IPYNB
Location: 04/demos/demo/titanic/notebooks/
size: 82 KB
compressed: 25 KB
Method: Deflated
CRC-32: 5570B0C4
Index: 420
\--------------
How can I reformat these files with the correct JSON input so I can use IPYNB files in Jupyter Notebook?
/r/JupyterNotebooks
https://redd.it/xqm13a
When dragging and dropping the .IPYNB file in Jupyter Notebooks, I get an error...
The error was: SyntaxError: Unexpected end of JSON input
when inspecting the properties I see:
\-------------
Type of file: IPYNB
Location: 04/demos/demo/titanic/notebooks/
size: 82 KB
compressed: 25 KB
Method: Deflated
CRC-32: 5570B0C4
Index: 420
\--------------
How can I reformat these files with the correct JSON input so I can use IPYNB files in Jupyter Notebook?
/r/JupyterNotebooks
https://redd.it/xqm13a
reddit
How to reformat IPYNB files for JSON compatability?
When dragging and dropping the .IPYNB file in Jupyter Notebooks, I get an error... The error was: SyntaxError: Unexpected end of JSON input...
Update DB with new table with SQLAlchemy
So I'm using SQLAlchemy with my Flask web app for database stuff. I tried adding another class to my "models.py" file to make another table for the database, but that didn't work. So, I'd like to ask the proper way of adding new tables to databases with SQLAlchemy.
/r/flask
https://redd.it/xr34f8
So I'm using SQLAlchemy with my Flask web app for database stuff. I tried adding another class to my "models.py" file to make another table for the database, but that didn't work. So, I'd like to ask the proper way of adding new tables to databases with SQLAlchemy.
/r/flask
https://redd.it/xr34f8
reddit
Update DB with new table with SQLAlchemy
So I'm using SQLAlchemy with my Flask web app for database stuff. I tried adding another class to my "[models.py](https://models.py)" file to make...
Cross Data-Base joins on Jupyter Notebook?
Hey all!
I want to create a data extract by joining multiple tables from different databases in order to create a Tableau dashboard. The problem is on Tableau it takes painfully long time to do so. My teammate suggested Jupyter Notebook.
How to do it?? Can someone provide an example?? This will be greatly appreciated! Thanks.
/r/JupyterNotebooks
https://redd.it/x55sif
Hey all!
I want to create a data extract by joining multiple tables from different databases in order to create a Tableau dashboard. The problem is on Tableau it takes painfully long time to do so. My teammate suggested Jupyter Notebook.
How to do it?? Can someone provide an example?? This will be greatly appreciated! Thanks.
/r/JupyterNotebooks
https://redd.it/x55sif
reddit
Cross Data-Base joins on Jupyter Notebook?
Hey all! I want to create a data extract by joining multiple tables from different databases in order to create a Tableau dashboard. The problem...
Is it time for Python to have a statically-typed, compiled, fast superset?
I love Python. Really enjoy writing code and cracking problems with Python. I’m by no means an expert (not even close), but have been writing Python for the past 7 years or so (happily).
Now, a few things caught my attention during this time. The first was Rust. It’s amazing how much of a difference it makes to have a powerful compiler and static types and low memory consumption and speed. Sure, Rust is the extreme, but still, a lot to learn here. Not to criticize Python, since the errors have improved drastically, MyPy has evolved significantly, the language is getting faster. But yeah, Rust in a whole new level in several aspects (reinforcing: this is NOT a comparison, but rather a reference).
The other thing that was interesting to me, was the potential of type annotations to help make for a faster, safer experience on the compiler end of things. One example is seen in Meta’s Cinder project, on the docs it explains how typing can be used to reduce the number of steps for the compiler ([cinder/static_python.rst at cinder/3.8 · facebookincubator/cinder · GitHub\](https://github.com/facebookincubator/cinder/blob/cinder/3.8/CinderDoc/static\_python.rst)), making it more effective.
The ecosystem definitely is not lacking on projects: Cinder, MyPyC, Nuitka, PyPy, Pyston,
/r/Python
https://redd.it/xragzg
I love Python. Really enjoy writing code and cracking problems with Python. I’m by no means an expert (not even close), but have been writing Python for the past 7 years or so (happily).
Now, a few things caught my attention during this time. The first was Rust. It’s amazing how much of a difference it makes to have a powerful compiler and static types and low memory consumption and speed. Sure, Rust is the extreme, but still, a lot to learn here. Not to criticize Python, since the errors have improved drastically, MyPy has evolved significantly, the language is getting faster. But yeah, Rust in a whole new level in several aspects (reinforcing: this is NOT a comparison, but rather a reference).
The other thing that was interesting to me, was the potential of type annotations to help make for a faster, safer experience on the compiler end of things. One example is seen in Meta’s Cinder project, on the docs it explains how typing can be used to reduce the number of steps for the compiler ([cinder/static_python.rst at cinder/3.8 · facebookincubator/cinder · GitHub\](https://github.com/facebookincubator/cinder/blob/cinder/3.8/CinderDoc/static\_python.rst)), making it more effective.
The ecosystem definitely is not lacking on projects: Cinder, MyPyC, Nuitka, PyPy, Pyston,
/r/Python
https://redd.it/xragzg
GitHub
cinder/CinderDoc/static_python.rst at cinder/3.8 · facebookincubator/cinder
Cinder is Meta's internal performance-oriented production version of CPython. - facebookincubator/cinder
R Meta-FAIR releases Make-a-Video, a model that generates videos from texts or images
A dog wearing a Superhero outfit with red cape flying through the sky
https://makeavideo.studio/
/r/MachineLearning
https://redd.it/xrdc88
A dog wearing a Superhero outfit with red cape flying through the sky
https://makeavideo.studio/
/r/MachineLearning
https://redd.it/xrdc88
What do you use to run Jupyter notebook?
I just started learning ML with Jupyter notebook, I am not sure which IDE to use
Jupyter notebook with anaconda seems the simplest but lack intellisense, so I am kinda gravitating toward PyCharm or VS studio code. any suggestion?
/r/JupyterNotebooks
https://redd.it/x2a5r2
I just started learning ML with Jupyter notebook, I am not sure which IDE to use
Jupyter notebook with anaconda seems the simplest but lack intellisense, so I am kinda gravitating toward PyCharm or VS studio code. any suggestion?
/r/JupyterNotebooks
https://redd.it/x2a5r2
reddit
What do you use to run Jupyter notebook?
I just started learning ML with Jupyter notebook, I am not sure which IDE to use Jupyter notebook with anaconda seems the simplest but lack...
Can't undo, redo, copy or paste
It seems other shortcuts work in edit mode, but any of these does nothing. I'm getting so frustrated, why is Google so useless nowadays?? Please help
/r/JupyterNotebooks
https://redd.it/xrshpu
It seems other shortcuts work in edit mode, but any of these does nothing. I'm getting so frustrated, why is Google so useless nowadays?? Please help
/r/JupyterNotebooks
https://redd.it/xrshpu
reddit
Can't undo, redo, copy or paste
It seems other shortcuts work in edit mode, but any of these does nothing. I'm getting so frustrated, why is Google so useless nowadays?? Please help
R DreamFusion: Text-to-3D using 2D Diffusion
Project page: https://dreamfusion3d.github.io/
Paper: https://drive.google.com/file/d/1YC8xQSjxz7r8qyQY6LTuzC9L1AVU5O8V/view?usp=sharing
/r/MachineLearning
https://redd.it/xrny8s
Project page: https://dreamfusion3d.github.io/
Paper: https://drive.google.com/file/d/1YC8xQSjxz7r8qyQY6LTuzC9L1AVU5O8V/view?usp=sharing
/r/MachineLearning
https://redd.it/xrny8s
DreamFusion: Text-to-3D using 2D Diffusion
We combine neural rendering with a multi-modal text-to-2D image diffusion generative model to synthesize diverse 3D objects from text.
New Programmers...
Hey, so my current case being is I need to teach myself code. Yes I know booth camps and other smaller oppurtunities are essential. My Question is, Anyone else here who taught themselves to code or know someone can I get a learning map? Or explain what I should start with and do. Thanks.
/r/Python
https://redd.it/xrt6yz
Hey, so my current case being is I need to teach myself code. Yes I know booth camps and other smaller oppurtunities are essential. My Question is, Anyone else here who taught themselves to code or know someone can I get a learning map? Or explain what I should start with and do. Thanks.
/r/Python
https://redd.it/xrt6yz
reddit
New Programmers...
Hey, so my current case being is I need to teach myself code. Yes I know booth camps and other smaller oppurtunities are essential. My Question...
Doing Maths with Python - A collection of articles
Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects by making connections between them.
https://compucademy.net/category/computer-maths/
​
\#compsci #python #maths #progrmming #algorithms
/r/Python
https://redd.it/xrvg99
Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects by making connections between them.
https://compucademy.net/category/computer-maths/
​
\#compsci #python #maths #progrmming #algorithms
/r/Python
https://redd.it/xrvg99
Compucademy
Computer Maths - Compucademy
Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects with Computer Maths.
I've built an app to show how to build a complete web app
I've built tozo.dev to demonstrate how to build a (Progressive) web app with a Python-Quart backend, and a Typescript-React frontend running in AWS. I've included in the repository, github.com/pgjones/tozo everything needed to reproduce it i.e. all the code, the CI/CD actions, and the Terraform infrastructure definitions.
The commits are ordered and explained, and I hope that you can follow them to build you own app, alternatively you can just take code as a blueprint.
The app itself manages to-dos, but this is just as an example. If you remove this functionality you have an app including user management ready to go.
I use this to help train engineers, and I use (and have used) the stack for production projects.
(I did post about this earlier in the week but I don't think I explained it very well).
/r/Python
https://redd.it/xs184r
I've built tozo.dev to demonstrate how to build a (Progressive) web app with a Python-Quart backend, and a Typescript-React frontend running in AWS. I've included in the repository, github.com/pgjones/tozo everything needed to reproduce it i.e. all the code, the CI/CD actions, and the Terraform infrastructure definitions.
The commits are ordered and explained, and I hope that you can follow them to build you own app, alternatively you can just take code as a blueprint.
The app itself manages to-dos, but this is just as an example. If you remove this functionality you have an app including user management ready to go.
I use this to help train engineers, and I use (and have used) the stack for production projects.
(I did post about this earlier in the week but I don't think I explained it very well).
/r/Python
https://redd.it/xs184r
tozo.dev
React App
Web site created using create-react-app
Python Turtle (Quick and easy way to visualize, code inside)
Dear Friends,
Wanted to share with you this nice visualization I did with the Python Turtle library.
In this video, I show how to visualize the famous Zeno's Mice problem.
At first, I qualitatively describe the problem,
then show visualization with Python Turtle, code available in the description of the video.
It is mostly based on the code of the python turtle academy.
Then I also show that those curves are actually all around us.
Finally, I show a simple and elegant solution to a system nonlinear system of coupled ordinary differential equations. Using symmetry we can reduce the system to a single equation.
Complex numbers also help simplify the solution.
Finally, I show how such behavior happens in ants in real life.
Enjoy:
https://www.youtube.com/watch?v=NdTVvWrD6r0&t=5s&ab\_channel=Math%2CPhysics%2CEngineering
/r/Python
https://redd.it/xrxwav
Dear Friends,
Wanted to share with you this nice visualization I did with the Python Turtle library.
In this video, I show how to visualize the famous Zeno's Mice problem.
At first, I qualitatively describe the problem,
then show visualization with Python Turtle, code available in the description of the video.
It is mostly based on the code of the python turtle academy.
Then I also show that those curves are actually all around us.
Finally, I show a simple and elegant solution to a system nonlinear system of coupled ordinary differential equations. Using symmetry we can reduce the system to a single equation.
Complex numbers also help simplify the solution.
Finally, I show how such behavior happens in ants in real life.
Enjoy:
https://www.youtube.com/watch?v=NdTVvWrD6r0&t=5s&ab\_channel=Math%2CPhysics%2CEngineering
/r/Python
https://redd.it/xrxwav
YouTube
Zeno's Mice (Ants) Problem and the Logarithmic Spirals
0:00 Problem description
3:08 Python Visualization
13:06 Where do logarithmic spirals appear
17:50 Finding the trajectory equation solving system of ODE's
35:30 What happens to ants in reality
In this video, I describe the Zonos mice problem. At the vertices…
3:08 Python Visualization
13:06 Where do logarithmic spirals appear
17:50 Finding the trajectory equation solving system of ODE's
35:30 What happens to ants in reality
In this video, I describe the Zonos mice problem. At the vertices…
Deploying a relatively resource intensive, pre-trained ML model with Django
Hey there Django community!
I have a relatively resource intensive pre-trained ML model as well as a Django website. (Not deployed)
Currently, the inference from the ML model is done in its own .py file in one of the Django apps.
I am wondering if I can deploy the Django website like this without encountering major bills from AWS? Or is there any smarter way of doing it?
I’m new to AWS and deployment in general.
Thanks so much!
Edit: spelling
/r/django
https://redd.it/xrxs4g
Hey there Django community!
I have a relatively resource intensive pre-trained ML model as well as a Django website. (Not deployed)
Currently, the inference from the ML model is done in its own .py file in one of the Django apps.
I am wondering if I can deploy the Django website like this without encountering major bills from AWS? Or is there any smarter way of doing it?
I’m new to AWS and deployment in general.
Thanks so much!
Edit: spelling
/r/django
https://redd.it/xrxs4g
reddit
Deploying a relatively resource intensive, pre-trained ML model...
Hey there Django community! I have a relatively resource intensive pre-trained ML model as well as a Django website. (Not deployed) Currently,...
Django Rest Framework - how to change initial data of a serializer before validating and saving ?
**Intro -** A text snippet has a title, body, author and some tags associated with it. In the post request I send the data like this -
{
title : 'Hello world',
body : 'Some random text',
tags : 'Horror'
}
There are two tables - 1. tags - to store the different tag names and 2. snippet - to store the text snippets. They are linked by a table snippet\_tags which has snippet and tag id as FK.
class Tags(models.Model):
name = models.CharField(max_length=256)
active = models.SmallIntegerField(default=1)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
class Snippet(models.Model):
text = models.TextField()
body = models.TextField(null=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
tags = models.ManyToManyField(Tags)
[Serilaizer.py](https://Serilaizer.py)
# serializer for creating snippets
/r/django
https://redd.it/xsakde
**Intro -** A text snippet has a title, body, author and some tags associated with it. In the post request I send the data like this -
{
title : 'Hello world',
body : 'Some random text',
tags : 'Horror'
}
There are two tables - 1. tags - to store the different tag names and 2. snippet - to store the text snippets. They are linked by a table snippet\_tags which has snippet and tag id as FK.
class Tags(models.Model):
name = models.CharField(max_length=256)
active = models.SmallIntegerField(default=1)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
class Snippet(models.Model):
text = models.TextField()
body = models.TextField(null=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
tags = models.ManyToManyField(Tags)
[Serilaizer.py](https://Serilaizer.py)
# serializer for creating snippets
/r/django
https://redd.it/xsakde