I made a Twitter bot that is rude to you when you @ it
I wanted to learn a bit more about the Twitter API so I decided to make a bot that is rude/insults you when you @ it or reply to a tweet. I made this as a joke and it is not meant to hurt anybody, just a bit of fun with friends. Sometimes the bot hits the API rate limit so it only replies a couple of minutes later.
I would also like to add that the bot uses swear words, but like I said, it's all for fun.
Twitter: https://twitter.com/rudebot\_
Github: https://github.com/HeyImJ0hn/RudeBot
Feel free to follow it and @ it any time.
​
EDIT: If you have any rude things for my bot to say, shoot me a DM!
EDIT 2: First of all I wanna thank everyone for the support! This is truly amazing! I also wanna say that the bot does repeat itself quite often and I'm trying to improve that.
/r/Python
https://redd.it/l01yqv
I wanted to learn a bit more about the Twitter API so I decided to make a bot that is rude/insults you when you @ it or reply to a tweet. I made this as a joke and it is not meant to hurt anybody, just a bit of fun with friends. Sometimes the bot hits the API rate limit so it only replies a couple of minutes later.
I would also like to add that the bot uses swear words, but like I said, it's all for fun.
Twitter: https://twitter.com/rudebot\_
Github: https://github.com/HeyImJ0hn/RudeBot
Feel free to follow it and @ it any time.
​
EDIT: If you have any rude things for my bot to say, shoot me a DM!
EDIT 2: First of all I wanna thank everyone for the support! This is truly amazing! I also wanna say that the bot does repeat itself quite often and I'm trying to improve that.
/r/Python
https://redd.it/l01yqv
Twitter
Rude Bot (@rudebot_) | Twitter
The latest Tweets from Rude Bot (@rudebot_). @ me (or reply to me) and I'll be rude to you
If I don't reply instantly just wait a few minutes
DM me rude shit to say. Satire
If I don't reply instantly just wait a few minutes
DM me rude shit to say. Satire
RE-WX: A Python library for building modern native desktop applications with WXPython
https://github.com/chriskiehl/re-wx
/r/Python
https://redd.it/l04wm5
https://github.com/chriskiehl/re-wx
/r/Python
https://redd.it/l04wm5
GitHub
GitHub - chriskiehl/re-wx: A library for building modern declarative desktop applications in WX.
A library for building modern declarative desktop applications in WX. - GitHub - chriskiehl/re-wx: A library for building modern declarative desktop applications in WX.
Are there any other frameworks that come with a built in admin panel?
Just curious as to whether or not any other framework (python or otherwise) comes with a built in admin panel like Django, I googled but couldn't find anything.
/r/django
https://redd.it/l0ghrh
Just curious as to whether or not any other framework (python or otherwise) comes with a built in admin panel like Django, I googled but couldn't find anything.
/r/django
https://redd.it/l0ghrh
reddit
Are there any other frameworks that come with a built in admin panel?
Just curious as to whether or not any other framework (python or otherwise) comes with a built in admin panel like Django, I googled but couldn't...
Django Rest Framework: How to test that methods are not allowed on a specific endpoint?
Hello, I want to test that some specific methods are not allowed on a specific endpoint, for example I want the endpoint to be accessible through GET request but not CREATE, DELETE, UPDATE and PARTIAL\_UPDATE, etc.
This is the way im currently using but it seems a bit too verbose:
class RecipeTestCase(test.APITestCase):
def test_recipe_create_not_allowed(self):
response = self.client.post(self.list_url)
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_recipe_delete_not_allowed(self):
response = self.client.delete(self.detail_url)
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_recipe_update_not_allowed(self):
response = self.client.put(self.detail_url)
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_recipe_partial_update_not_allowed(self):
/r/django
https://redd.it/l0eea1
Hello, I want to test that some specific methods are not allowed on a specific endpoint, for example I want the endpoint to be accessible through GET request but not CREATE, DELETE, UPDATE and PARTIAL\_UPDATE, etc.
This is the way im currently using but it seems a bit too verbose:
class RecipeTestCase(test.APITestCase):
def test_recipe_create_not_allowed(self):
response = self.client.post(self.list_url)
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_recipe_delete_not_allowed(self):
response = self.client.delete(self.detail_url)
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_recipe_update_not_allowed(self):
response = self.client.put(self.detail_url)
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_recipe_partial_update_not_allowed(self):
/r/django
https://redd.it/l0eea1
reddit
Django Rest Framework: How to test that methods are not allowed on...
Hello, I want to test that some specific methods are not allowed on a specific endpoint, for example I want the endpoint to be accessible through...
ML Freelancing Platform Built with Flask
Hey everybody,
I've developed a platform in flask that lets freelancers/contract workers start working immediately on projects. The emphasis is on longer-term work and matches you to a company that needs a project done instantly. It basically guarantees that you get work based on what you're qualified to do, and allows you to spend a lot more time earning and a lot less time searching.
You can get paid/pay on an hourly, fixed price, or retainer model, whatever you currently operate on in whatever currency you prefer.
On the company side, you will find instant qualified matches to fill your hiring needs.
Would anybody be interested in trying it out? I would greatly appreciate any questions/suggestions btw.
/r/flask
https://redd.it/l0si8m
Hey everybody,
I've developed a platform in flask that lets freelancers/contract workers start working immediately on projects. The emphasis is on longer-term work and matches you to a company that needs a project done instantly. It basically guarantees that you get work based on what you're qualified to do, and allows you to spend a lot more time earning and a lot less time searching.
You can get paid/pay on an hourly, fixed price, or retainer model, whatever you currently operate on in whatever currency you prefer.
On the company side, you will find instant qualified matches to fill your hiring needs.
Would anybody be interested in trying it out? I would greatly appreciate any questions/suggestions btw.
/r/flask
https://redd.it/l0si8m
reddit
ML Freelancing Platform Built with Flask
Hey everybody, I've developed a platform in flask that lets freelancers/contract workers start working immediately on projects. The emphasis is...
Wednesday Daily Thread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
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/l0wtf4
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
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/l0wtf4
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
Best cloud hosting service?
Hey guys,
So I wanna deploy my Django backend API but not to production, for development. What is your preferred cloud service to do that?
So I far I found Ngrok and Amazon AWS service, and Jenkins and I’m understanding each one to depth to do a comparison.
I wanna know from your experience, what is your preferred service.
P.S: lately I received very hostile response for my lack of experience and for just trying to help - I hate to see this sub slowly become hostile and aggressive as other websites (apparently just mentioning the names of other websites gets your post deleted).
So please excuse any lack of experience you find in my post (or future posts/comments).
/r/django
https://redd.it/l0znpm
Hey guys,
So I wanna deploy my Django backend API but not to production, for development. What is your preferred cloud service to do that?
So I far I found Ngrok and Amazon AWS service, and Jenkins and I’m understanding each one to depth to do a comparison.
I wanna know from your experience, what is your preferred service.
P.S: lately I received very hostile response for my lack of experience and for just trying to help - I hate to see this sub slowly become hostile and aggressive as other websites (apparently just mentioning the names of other websites gets your post deleted).
So please excuse any lack of experience you find in my post (or future posts/comments).
/r/django
https://redd.it/l0znpm
Reddit
r/django on Reddit: Best cloud hosting service?
Posted by u/safadimiras - 25 votes and 57 comments
Hacking the DNS protocol to use it as a messaging system
A while ago, I posted about I made a fun POC of hacking the DNS protocol to send messages to a server (creating a communication service relying on DNS requests/replies): https://www.reddit.com/r/Python/comments/jf8zbf/i\_hijacked\_dns\_queries\_to\_send\_messages/
To summarize the idea, the project is using QNAMEs to encapsulte the client messages (encoded in base 32 as a subdomain, for example: encoded-message.dns.server.com), and the server decode the message and sends a DNS TXT reply which content is base 64 encoded.
Well it only worked on the same machine at the time (or when I had luck and had a server binded to my port 53 somehow (to have a port appear as open|filtered, something must be binded to it, and I struggled for a lot of time before understanding why my requests were answered with ICMP type 3 error, port unreachable, when going online)).
Now it's fixed, and what's even better, I can send a DNS TXT request to Googlge (8.8.8.8) about encoded-message.dns.site.com, and since I've registered as my own DNS, everything the other big DNS don't know about will be forwarded... to my server. Thus I can just use the command dig on linux to send messages to my server, from everywhere in the world, which is the
/r/Python
https://redd.it/l0ubhs
A while ago, I posted about I made a fun POC of hacking the DNS protocol to send messages to a server (creating a communication service relying on DNS requests/replies): https://www.reddit.com/r/Python/comments/jf8zbf/i\_hijacked\_dns\_queries\_to\_send\_messages/
To summarize the idea, the project is using QNAMEs to encapsulte the client messages (encoded in base 32 as a subdomain, for example: encoded-message.dns.server.com), and the server decode the message and sends a DNS TXT reply which content is base 64 encoded.
Well it only worked on the same machine at the time (or when I had luck and had a server binded to my port 53 somehow (to have a port appear as open|filtered, something must be binded to it, and I struggled for a lot of time before understanding why my requests were answered with ICMP type 3 error, port unreachable, when going online)).
Now it's fixed, and what's even better, I can send a DNS TXT request to Googlge (8.8.8.8) about encoded-message.dns.site.com, and since I've registered as my own DNS, everything the other big DNS don't know about will be forwarded... to my server. Thus I can just use the command dig on linux to send messages to my server, from everywhere in the world, which is the
/r/Python
https://redd.it/l0ubhs
Reddit
r/Python on Reddit: I hijacked DNS queries to send messages
Posted by u/Folaefolc - 608 votes and 55 comments
Web development with Flask framework illustrated an address book project
https://soshace.com/web-development-with-flask-framework-illustrated-an-address-book-project/
/r/flask
https://redd.it/l15f7i
https://soshace.com/web-development-with-flask-framework-illustrated-an-address-book-project/
/r/flask
https://redd.it/l15f7i
Soshace
Web development with Flask framework illustrated an address book project
n this article, we will be looking at how to go about developing a web application utilizing the flask micro-framework. To that end, we will be doing a little version of an address book development project as a vehicle to get us there.
Codename Mallow is a 4 player local/online versus multiplayer that I've been coding entirely in Python/Pygame. Somehow my little underdog passion project has earned a berth in the finals for Fan Favorite at the Game Development World Championships! Demo with Source Code available :)
​
Marshmallow Ninja Death Compilation :\)
Codename Mallow is an adrenaline-charged versus multiplayer game with armless melee battles, one-hit-kill weaponry, and wildly unpredictable stages. Duel for Ninja Supremacy with up to 4 friends in local or online play.
2.5 years in the making (so far), Codename Mallow began as an attempt to recreate the feel of DOS cult classic Marshmallow Duel in a more modern package. Feature creep took over, and here we are now on the very brink (Q3 2021) of release! My journey taught me the basics of programming and game development, and I had a blast tackling things like rope physics, particle engines, and even basic socket/threading applications.
I put my game in to the Fan Favorite vote at the GDWC for "what do you have to lose" reasons. I am absolutely thrilled (and shocked!!) to be a finalist among many INCREDIBLY polished indie projects. It honestly feels a little surreal. I shared here a few months ago, and was blown away by the support and positive feedback. Many of you asked me to come back and share a link when my steam page was up, so here we are.
So if this game is your cup of tea, or maybe you
/r/Python
https://redd.it/l0kwfn
​
Marshmallow Ninja Death Compilation :\)
Codename Mallow is an adrenaline-charged versus multiplayer game with armless melee battles, one-hit-kill weaponry, and wildly unpredictable stages. Duel for Ninja Supremacy with up to 4 friends in local or online play.
2.5 years in the making (so far), Codename Mallow began as an attempt to recreate the feel of DOS cult classic Marshmallow Duel in a more modern package. Feature creep took over, and here we are now on the very brink (Q3 2021) of release! My journey taught me the basics of programming and game development, and I had a blast tackling things like rope physics, particle engines, and even basic socket/threading applications.
I put my game in to the Fan Favorite vote at the GDWC for "what do you have to lose" reasons. I am absolutely thrilled (and shocked!!) to be a finalist among many INCREDIBLY polished indie projects. It honestly feels a little surreal. I shared here a few months ago, and was blown away by the support and positive feedback. Many of you asked me to come back and share a link when my steam page was up, so here we are.
So if this game is your cup of tea, or maybe you
/r/Python
https://redd.it/l0kwfn
reddit
Codename Mallow is a 4 player local/online versus multiplayer that...
Posted in r/Python by u/Ancalabro • 478 points and 32 comments
Creating a feedback option in Jupyter?
Is anyone here aware of a possibility (an extension) that allows to add some sort of feedback button to a cell in Jupyter Notebooks?
This could be configured by the original author of the notebook and trigger pushing some message to a server where ideally a report would be compiled from multiple messages.
We would love to use such a feature when using Jupyter for education to allow students to communicate their issues immediately with us.
/r/JupyterNotebooks
https://redd.it/l0j6ca
Is anyone here aware of a possibility (an extension) that allows to add some sort of feedback button to a cell in Jupyter Notebooks?
This could be configured by the original author of the notebook and trigger pushing some message to a server where ideally a report would be compiled from multiple messages.
We would love to use such a feature when using Jupyter for education to allow students to communicate their issues immediately with us.
/r/JupyterNotebooks
https://redd.it/l0j6ca
reddit
Creating a feedback option in Jupyter?
Is anyone here aware of a possibility (an extension) that allows to add some sort of feedback button to a cell in Jupyter Notebooks? This could...
I’m 36 and just starting to learn Python. Is it realistic to think I could get a job in this field by 40?
Hello Python peoples. I’m brand new to all this but I really enjoy it. I don’t know why I waited until this late in life to dig in. Is it too late? Can I actually become proficient within maybe 4 years or so? I make about 50k a year at my current job and can’t go much higher. I recently had a kid and want to earn more. I’d love to do so with programming somehow. Does this path make sense to pursue?
/r/Python
https://redd.it/l18b9m
Hello Python peoples. I’m brand new to all this but I really enjoy it. I don’t know why I waited until this late in life to dig in. Is it too late? Can I actually become proficient within maybe 4 years or so? I make about 50k a year at my current job and can’t go much higher. I recently had a kid and want to earn more. I’d love to do so with programming somehow. Does this path make sense to pursue?
/r/Python
https://redd.it/l18b9m
reddit
I’m 36 and just starting to learn Python. Is it realistic to think...
Hello Python peoples. I’m brand new to all this but I really enjoy it. I don’t know why I waited until this late in life to dig in. Is it too...
Making migrations for a dockerized django app
Hey everyone,
I have been trying to setup a django app using this guide:
https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
And it was a great resource to get everything up and running. However i have problem now when it comes to migrations. Say i add a model, add data into my db, and later i change the model. Now i can run makemigrations using the exec method on the container, but when i shut down my migrations are not stored in my local files i save to my git project, instead they are lost as i spin down the container.
Does anyone know how to solve this, how do you makemigrations is such a setup where you run two dockerized django/postgres dev/prod environments?
/r/django
https://redd.it/l17jih
Hey everyone,
I have been trying to setup a django app using this guide:
https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
And it was a great resource to get everything up and running. However i have problem now when it comes to migrations. Say i add a model, add data into my db, and later i change the model. Now i can run makemigrations using the exec method on the container, but when i shut down my migrations are not stored in my local files i save to my git project, instead they are lost as i spin down the container.
Does anyone know how to solve this, how do you makemigrations is such a setup where you run two dockerized django/postgres dev/prod environments?
/r/django
https://redd.it/l17jih
testdriven.io
Dockerizing Django with Postgres, Gunicorn, and Nginx
This tutorial details how to configure Django to run on Docker along with Postgres, Nginx, and Gunicorn.
Our udemy scraper bot is now on PyPi. It helps you get free udemy course by automatically enrolling you into various courses for free.
There was a post about it last month here and since then we've massively improved the code and released v2.0.0 (following semver).
We've added a new site to scrape from called discudemy. We streamlined the invocation process by getting rid of many files based on browser names and introduced command line argument to choose your browser and consolidated the code so that you need to run only one file but can have flexibility in your runtime configuration. We also used asyncio to improve performance. If you install via pip, we also write configuration in your home folder for persistence.
Lastly, we have been awarded one of JetBrain's project of the decade award. We also got sponsorship from 1Password, Gitlab, Gitbook & Browserstack and JetBrains. Click on the associated links to see if you can apply for the open source licenses as well.
Hope you will like the project, the code is here.
/r/Python
https://redd.it/l12oj7
There was a post about it last month here and since then we've massively improved the code and released v2.0.0 (following semver).
We've added a new site to scrape from called discudemy. We streamlined the invocation process by getting rid of many files based on browser names and introduced command line argument to choose your browser and consolidated the code so that you need to run only one file but can have flexibility in your runtime configuration. We also used asyncio to improve performance. If you install via pip, we also write configuration in your home folder for persistence.
Lastly, we have been awarded one of JetBrain's project of the decade award. We also got sponsorship from 1Password, Gitlab, Gitbook & Browserstack and JetBrains. Click on the associated links to see if you can apply for the open source licenses as well.
Hope you will like the project, the code is here.
/r/Python
https://redd.it/l12oj7
reddit
Our bot scrapes Udemy Coupons and then automatically enrolls you...
There was a post about it last month [here](https://old.reddit.com/r/Python/comments/jp8yze/our_bot_scraps_udemy_coupons_and_then/) and since then...
How to stop anti virus software flagging your Python application as malware - a guide with resources
I recently distributed my first compiled python code. For various reasons it needed to be a Windows EXE for user purposes rather than having the users download and run the source code.
I used pyinstaller to compile my code but immediately ran into issues because my short, innocuous script was being identified as malware by Windows Defender with scary names like Wacatac.B!ml.trojan. In some cases anti virus deemed my software so dangerous that it not only warned me that it was dangerous but unilaterally placed it into quarantine and then deleted it. Needless to say, this is going to be a bad used experience.
After doing some research it turns out this this is a common problem with compiled python code and there's no perfect solution.
There are, essentially, two steps you can take to mitigate this.
First, apply for a code signing certificate (€60 a year). This won't stop the warnings, but it will allow you to build reputation over time.
Second, submit your file to the various anti-virus providers (Microsoft being the most important of course) and ask them to analyse it and identify it as a false positive. This is a surprisingly quick process (I had a response from an actual human
/r/Python
https://redd.it/l19rok
I recently distributed my first compiled python code. For various reasons it needed to be a Windows EXE for user purposes rather than having the users download and run the source code.
I used pyinstaller to compile my code but immediately ran into issues because my short, innocuous script was being identified as malware by Windows Defender with scary names like Wacatac.B!ml.trojan. In some cases anti virus deemed my software so dangerous that it not only warned me that it was dangerous but unilaterally placed it into quarantine and then deleted it. Needless to say, this is going to be a bad used experience.
After doing some research it turns out this this is a common problem with compiled python code and there's no perfect solution.
There are, essentially, two steps you can take to mitigate this.
First, apply for a code signing certificate (€60 a year). This won't stop the warnings, but it will allow you to build reputation over time.
Second, submit your file to the various anti-virus providers (Microsoft being the most important of course) and ask them to analyse it and identify it as a false positive. This is a surprisingly quick process (I had a response from an actual human
/r/Python
https://redd.it/l19rok
reddit
How to stop anti virus software flagging your Python application...
I recently distributed my first compiled python code. For various reasons it needed to be a Windows EXE for user purposes rather than having the...
API for the Legend of Zelda: Breath of the Wild's Hyrule Compendium Made With Flask
Lately I have been replaying a lot of Nintendo Switch games during lockdown. I have also been writing a lot of Python code. I decided to combine my two quarantine hobbies. Here's the result!
# The Hyrule Compendium API
The Hyrule Compendium API is, according to IGN:
>an encyclopedia of all of the 385 creatures, monsters, materials, equipment, and treasure in the The Legend of Zelda: Breath of the Wild.
In other words, the Hyrule Compendium is a reference log for with information on all in-game interactive items.
So I thought, it would be cool to write an API for this, so people can embed this into their apps (like a discord bot or a BOTW compendium lookup site).
Architecture
To make this API I used Flask for the API server.
The API should...
Return metadata on items in the compendium, which include their names, IDs, common locations, recoverable materials, cooking effects, and more.
Let you get a specific item in the compendium, using it's name or ID.
Let you get all items in a category (creatures, monsters, materials, equipment, treasure).
Let you retrieve the entire Hyrule Compendium.
Using Rockset, an SQL-compatible database, I stored all entries in JSON format. Using Flask, I assigned endpoints for these. If the
/r/flask
https://redd.it/l1ctb6
Lately I have been replaying a lot of Nintendo Switch games during lockdown. I have also been writing a lot of Python code. I decided to combine my two quarantine hobbies. Here's the result!
# The Hyrule Compendium API
The Hyrule Compendium API is, according to IGN:
>an encyclopedia of all of the 385 creatures, monsters, materials, equipment, and treasure in the The Legend of Zelda: Breath of the Wild.
In other words, the Hyrule Compendium is a reference log for with information on all in-game interactive items.
So I thought, it would be cool to write an API for this, so people can embed this into their apps (like a discord bot or a BOTW compendium lookup site).
Architecture
To make this API I used Flask for the API server.
The API should...
Return metadata on items in the compendium, which include their names, IDs, common locations, recoverable materials, cooking effects, and more.
Let you get a specific item in the compendium, using it's name or ID.
Let you get all items in a category (creatures, monsters, materials, equipment, treasure).
Let you retrieve the entire Hyrule Compendium.
Using Rockset, an SQL-compatible database, I stored all entries in JSON format. Using Flask, I assigned endpoints for these. If the
/r/flask
https://redd.it/l1ctb6
GitHub
GitHub - gadhagod/Hyrule-Compendium-API: An API serving data on all in-game items and regions in Breath of the Wild and Tears of…
An API serving data on all in-game items and regions in Breath of the Wild and Tears of the Kingdom. - gadhagod/Hyrule-Compendium-API
Print message when app is ran
I want to print a custom message when my flask app is run. Heres my code:
if name == 'main':
print('my special message')
app.run()
The only problem is that it prints that message twice. Heres a screenshot:
​
https://preview.redd.it/llq3l3v3zic61.png?width=402&format=png&auto=webp&s=aa279d9f272158a9f078adb24136d7803efdb061
Is there any way to fix this?
/r/flask
https://redd.it/l1eaog
I want to print a custom message when my flask app is run. Heres my code:
if name == 'main':
print('my special message')
app.run()
The only problem is that it prints that message twice. Heres a screenshot:
​
https://preview.redd.it/llq3l3v3zic61.png?width=402&format=png&auto=webp&s=aa279d9f272158a9f078adb24136d7803efdb061
Is there any way to fix this?
/r/flask
https://redd.it/l1eaog
I curated 525+ remote job openings from Hacker News who is hiring - January
Here I would like to share more than 500 remote jobs that I've curated from Hacker News Who is hiring thread. All these are 100% remote jobs not just allowed to work from home during COVID-19. These are 100% remote jobs and will continue to follow that after the covid.
https://remoteleaf.com/whoishiring.
Note: Select "python" in the skills filter to view all Python/Django/Flask jobs
✅ 100% remote full-time jobs.
✅ Each and every job is manually curated and verified.
/r/django
https://redd.it/l20mfo
Here I would like to share more than 500 remote jobs that I've curated from Hacker News Who is hiring thread. All these are 100% remote jobs not just allowed to work from home during COVID-19. These are 100% remote jobs and will continue to follow that after the covid.
https://remoteleaf.com/whoishiring.
Note: Select "python" in the skills filter to view all Python/Django/Flask jobs
✅ 100% remote full-time jobs.
✅ Each and every job is manually curated and verified.
/r/django
https://redd.it/l20mfo
Remoteleaf
Highly curated remote jobs hand-picked from Hacker News Who is Hiring
Remote Leaf aggregates remote jobs in one organized place from 60+ remote job boards, company career pages, AngelList, Linkedin, Reddit, Twitter, Facebook groups and Hacker news hiring
Thursday Daily Thread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/l1m3hw
Discussion of using Python in a professional environment, getting jobs in Python and more!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/l1m3hw
reddit
Thursday Daily Thread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more! **This thread is not for recruitment, please see**...
Where do you store JWT tokens ( and are you even using it ? ) ?
Hi guys,
I'd start by saying that I'm not an expert in the subject by any means and corrections are welcomed.
I've already made SPAs with DRF and VueJs but the vue part was embedded into django static files. That means no separated servers and possibility to use Django Session Authentication without worrying to much about it using the same workflow as with non SPAs django apps ( just adding the csrf token on my fetch headers ).
However I'm now moving to React and I'm curious about strictly separating my frontend and my API, and the way to perform authentication with this workflow seems to be JWT. It might not be the best approach and I'm aware it should be easier to make my frontend inside Django but I want to test for learning purpose.
But how do you perform JWT authentication with the DRF without workarounds and internal code which expect you to have a deep knowledge about django, drf and security ?
The DRF documentation points to django-rest-framework-simplejwt which is barely maintained, and doesn't give a way to store tokens on an http only cookie ( use localStorage on their examples which is apparently insecure because of
/r/django
https://redd.it/l1u7to
Hi guys,
I'd start by saying that I'm not an expert in the subject by any means and corrections are welcomed.
I've already made SPAs with DRF and VueJs but the vue part was embedded into django static files. That means no separated servers and possibility to use Django Session Authentication without worrying to much about it using the same workflow as with non SPAs django apps ( just adding the csrf token on my fetch headers ).
However I'm now moving to React and I'm curious about strictly separating my frontend and my API, and the way to perform authentication with this workflow seems to be JWT. It might not be the best approach and I'm aware it should be easier to make my frontend inside Django but I want to test for learning purpose.
But how do you perform JWT authentication with the DRF without workarounds and internal code which expect you to have a deep knowledge about django, drf and security ?
The DRF documentation points to django-rest-framework-simplejwt which is barely maintained, and doesn't give a way to store tokens on an http only cookie ( use localStorage on their examples which is apparently insecure because of
/r/django
https://redd.it/l1u7to
reddit
Where do you store JWT tokens ( and are you even using it ? ) ?
Hi guys, I'd start by saying that I'm not an expert in the subject by any means and corrections are welcomed. I've already made SPAs with DRF...