Fully Featured Live Chat Social Media Web App Made With Django Channels
Unfortunately it’s not open sourced as of now, but I’m happy to answer any questions you might have!
#Website:
[theHang](https://thehang.io/)
#Videos:
[Browse and open rooms](https://youtu.be/19onK9H3mbg)
[Participate in conversations](https://youtu.be/mvcCvGjPtt0)
[Form relationships](https://youtu.be/EE953qGYNZc)
[theHang on mobile](https://youtu.be/RPmz4YtqfcQ)
/r/django
https://redd.it/ix37ex
Unfortunately it’s not open sourced as of now, but I’m happy to answer any questions you might have!
#Website:
[theHang](https://thehang.io/)
#Videos:
[Browse and open rooms](https://youtu.be/19onK9H3mbg)
[Participate in conversations](https://youtu.be/mvcCvGjPtt0)
[Form relationships](https://youtu.be/EE953qGYNZc)
[theHang on mobile](https://youtu.be/RPmz4YtqfcQ)
/r/django
https://redd.it/ix37ex
thehang.io
theHang | Conversation Is The Content
theHang is a social media platform where conversation is the priority. Create, participate in, and moderate meaningful live chat conversations.
Django multiple forms as popups and AJAX!!!
In my project I have a page where all the multiple user types are listed as cards and I was trying to add a detail view to each card with update and delete options within the card detail display. So this basically calls for AJAX calls. But I can't seem to figure out how to nest views within templates and style each forms according to my needs. Any advice?
/r/django
https://redd.it/ix243a
In my project I have a page where all the multiple user types are listed as cards and I was trying to add a detail view to each card with update and delete options within the card detail display. So this basically calls for AJAX calls. But I can't seem to figure out how to nest views within templates and style each forms according to my needs. Any advice?
/r/django
https://redd.it/ix243a
reddit
Django multiple forms as popups and AJAX!!!
In my project I have a page where all the multiple user types are listed as cards and I was trying to add a detail view to each card with update ...
Needed python packages and versions of jupyter notebook
I want to retrieve all the pip packages and versions what is needed in a specific jupyter notebook so I know what packages are required to execute the notebook without errors.
Is there such a library or one liner to achieve this.
The problem with "pip freeze" is that it will show all installed packages what is more than needed for a minimalistic environment.
/r/JupyterNotebooks
https://redd.it/ix1cdc
I want to retrieve all the pip packages and versions what is needed in a specific jupyter notebook so I know what packages are required to execute the notebook without errors.
Is there such a library or one liner to achieve this.
The problem with "pip freeze" is that it will show all installed packages what is more than needed for a minimalistic environment.
/r/JupyterNotebooks
https://redd.it/ix1cdc
reddit
Needed python packages and versions of jupyter notebook
I want to retrieve all the pip packages and versions what is needed in a specific jupyter notebook so I know what packages are required to execute...
Just made a learning Python Diagram that I made my background to learn terms easier. Let me know what you think.
/r/Python
https://redd.it/iwtgvj
/r/Python
https://redd.it/iwtgvj
CSS Static files in Django
Why do I need to keep changing the name of my css file to load it's features?
What triggers the issue?
And is there another way around it?
What am I missing here
/r/djangolearning
https://redd.it/ix6ydc
Why do I need to keep changing the name of my css file to load it's features?
What triggers the issue?
And is there another way around it?
What am I missing here
/r/djangolearning
https://redd.it/ix6ydc
reddit
CSS Static files in Django
Why do I need to keep changing the name of my css file to load it's features? What triggers the issue? And is there another way around it? What...
[D] Deconstructing the GPT-3 economy
As we all know, OpenAI plans to commercialize GPT-3 come October. But will the massive language model actually become a profitable language model?
I had a deep dive into the costs of developing, running, and maintaining GPT-3. There's a lot we don't know about the process and the possible deals between OpenAI and Microsoft that might have cut down the costs.
Here's my take, based on what we do know. I would be glad to have your opinion on it:
[https://bdtechtalks.com/2020/09/21/gpt-3-economy-business-model/](https://bdtechtalks.com/2020/09/21/gpt-3-economy-business-model/)
Key points:
* The costs of developing GPT-3 are in the eight-figures ($10M+)
* The costs of running GPT-3 are in the five-figures ($10K+/month)
* There are costs for staffing, support, legal, ethics, privacy, security, etc
* Model decay will probably require retraining or fine-tuning every once in a while ($1M+/year?)
If it works, it could be huge, a new application development platform that could be as huge as the cloud maybe. If it doesn't, it will be a great woe for the OpenAI team, who are under intense pressure to turn in profits to secure the next round of funding.
/r/MachineLearning
https://redd.it/ix16bc
As we all know, OpenAI plans to commercialize GPT-3 come October. But will the massive language model actually become a profitable language model?
I had a deep dive into the costs of developing, running, and maintaining GPT-3. There's a lot we don't know about the process and the possible deals between OpenAI and Microsoft that might have cut down the costs.
Here's my take, based on what we do know. I would be glad to have your opinion on it:
[https://bdtechtalks.com/2020/09/21/gpt-3-economy-business-model/](https://bdtechtalks.com/2020/09/21/gpt-3-economy-business-model/)
Key points:
* The costs of developing GPT-3 are in the eight-figures ($10M+)
* The costs of running GPT-3 are in the five-figures ($10K+/month)
* There are costs for staffing, support, legal, ethics, privacy, security, etc
* Model decay will probably require retraining or fine-tuning every once in a while ($1M+/year?)
If it works, it could be huge, a new application development platform that could be as huge as the cloud maybe. If it doesn't, it will be a great woe for the OpenAI team, who are under intense pressure to turn in profits to secure the next round of funding.
/r/MachineLearning
https://redd.it/ix16bc
TechTalks
The GPT-3 economy
Will OpenAI's pricing plan for GPT-3 be able to turn the massive AI language model into a profitable business?
Simple To-Do List with Django, Alpine.js, Axios, and TailwindCSS
https://janowski.dev/blog/2020/9/21/simple-do-list-django-alpinejs-tailwidcss-and-axios/
/r/django
https://redd.it/ix5tpn
https://janowski.dev/blog/2020/9/21/simple-do-list-django-alpinejs-tailwidcss-and-axios/
/r/django
https://redd.it/ix5tpn
janowski.dev
Simple To-Do List With Django, Alpine.Js, Tailwidcss, And Axios by @MaciejJanowski
How to create a To-Do List App with Django, Alpine.js, and Axios
im trying to replicate the functionality of reddit is wagtail the best way to go? or there is a better option.
/r/django
https://redd.it/ixh9fe
/r/django
https://redd.it/ixh9fe
reddit
im trying to replicate the functionality of reddit is wagtail the...
Posted in r/django by u/Zinin2018 • 1 point and 0 comments
Weird Requests from Foreign IPs; Should I be worried?
Hello! Thanks for reading and any help is appreciated!
Background:
I created my first web API, and I feel so empowered! My router has a DNS service, and I am able to obtain a free sub domain via the brand company of the router, so I spun up the Flask development server via Python and port forwarded outside requests to my PC via the router.
I have only shared the URL with family and friends, but I noticed foreign IPs sending odd requests after reviewing the the first day’s log. Some attempt Linux shell commands and one even attempted to post a .cgi file, but they all received 404 responses or HTTPStatus.BAD_REQUEST, so I assume whatever they were trying had failed.
Questions:
- How worried should I be about these odd requests?
- If my server is returning 404 to these requests, am I then protected from these hacks?
- Related to the above question, does the Flask werkzeug or a WSGI server provide the benefit of trapping bad requests? It seems like if my site was just a index.html file, some of these Linux shell commands would get executed on my server.
- Is there a resource of best practices I can read to
/r/flask
https://redd.it/ixf1nx
Hello! Thanks for reading and any help is appreciated!
Background:
I created my first web API, and I feel so empowered! My router has a DNS service, and I am able to obtain a free sub domain via the brand company of the router, so I spun up the Flask development server via Python and port forwarded outside requests to my PC via the router.
I have only shared the URL with family and friends, but I noticed foreign IPs sending odd requests after reviewing the the first day’s log. Some attempt Linux shell commands and one even attempted to post a .cgi file, but they all received 404 responses or HTTPStatus.BAD_REQUEST, so I assume whatever they were trying had failed.
Questions:
- How worried should I be about these odd requests?
- If my server is returning 404 to these requests, am I then protected from these hacks?
- Related to the above question, does the Flask werkzeug or a WSGI server provide the benefit of trapping bad requests? It seems like if my site was just a index.html file, some of these Linux shell commands would get executed on my server.
- Is there a resource of best practices I can read to
/r/flask
https://redd.it/ixf1nx
reddit
Weird Requests from Foreign IPs; Should I be worried?
Hello! Thanks for reading and any help is appreciated! Background: I created my first web API, and I feel so empowered! My router has a DNS...
Tuesday megathread: 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 megathread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.**
/r/Python
https://redd.it/ixcguc
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 megathread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.**
/r/Python
https://redd.it/ixcguc
reddit
Tuesday megathread: 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...
How does secret_key help?
This isn't the flask subreddit but I thought I could get some help here. In flask, you are forced to have a secret\_key to prevent cookie manipulation and session hijacking. I don't understand how does the secret\_key help and work under the hood, to prevent such breaches.
/r/django
https://redd.it/ixjpqx
This isn't the flask subreddit but I thought I could get some help here. In flask, you are forced to have a secret\_key to prevent cookie manipulation and session hijacking. I don't understand how does the secret\_key help and work under the hood, to prevent such breaches.
/r/django
https://redd.it/ixjpqx
reddit
How does secret_key help?
This isn't the flask subreddit but I thought I could get some help here. In flask, you are forced to have a secret\_key to prevent cookie...
Not sure if my Django virtual environment is set up correctly.
I've set up a Django virtual environment. And when I start it by running:
>workon my\_django\_environment
The prompt then displays as follows:
>(my\_django\_environment) pi@raspberrypi:\~ $
Is this correct? Should the pi@raspberrypi:\~ still be there?
If I do this:
>(my\_django\_environment) pi@raspberrypi:\~ $ ls
Then it lists everything in my actual non virtual environment Home folder. But when following guides for setting this up - when they use ls it only shows the files in the virtual environment folder?
I'm confused...
/r/django
https://redd.it/ixkfwa
I've set up a Django virtual environment. And when I start it by running:
>workon my\_django\_environment
The prompt then displays as follows:
>(my\_django\_environment) pi@raspberrypi:\~ $
Is this correct? Should the pi@raspberrypi:\~ still be there?
If I do this:
>(my\_django\_environment) pi@raspberrypi:\~ $ ls
Then it lists everything in my actual non virtual environment Home folder. But when following guides for setting this up - when they use ls it only shows the files in the virtual environment folder?
I'm confused...
/r/django
https://redd.it/ixkfwa
reddit
Not sure if my Django virtual environment is set up correctly.
I've set up a Django virtual environment. And when I start it by running: >workon my\_django\_environment The prompt then displays as...
django best way to manage CRUD
I am performing a way to Delete/update/get in a same view like
​
class APICRUDVIEW(APIView):
def get(self,request,id):
....
def put(self,request,id):
....
​
def delete(self,request,id):
....
​
​
So that thing doesn't violate \`SRP\` (Single Responsibility Principle ). Like according to that a class strictly should perform a single task. Or its best way to include all these in a class in django ?
/r/django
https://redd.it/ixkuqy
I am performing a way to Delete/update/get in a same view like
​
class APICRUDVIEW(APIView):
def get(self,request,id):
....
def put(self,request,id):
....
​
def delete(self,request,id):
....
​
​
So that thing doesn't violate \`SRP\` (Single Responsibility Principle ). Like according to that a class strictly should perform a single task. Or its best way to include all these in a class in django ?
/r/django
https://redd.it/ixkuqy
reddit
django best way to manage CRUD
I am performing a way to Delete/update/get in a same view like class APICRUDVIEW(APIView): def get(self,request,id): .... def...
I made a pathfinding visualizer (Code Below) [Feedbacks appreciated]
I made Dijkstra's pathfinding algorithm visualized using pygame.
Check the Visualization: [https://youtu.be/3yUPeIayvfU](https://youtu.be/3yUPeIayvfU)
GitHub Link: [https://github.com/nas-programmer/path-finding/blob/master/djikstra.py](https://github.com/nas-programmer/path-finding/blob/master/djikstra.py)
Feedback/criticism appreciated
/r/Python
https://redd.it/ixgobe
I made Dijkstra's pathfinding algorithm visualized using pygame.
Check the Visualization: [https://youtu.be/3yUPeIayvfU](https://youtu.be/3yUPeIayvfU)
GitHub Link: [https://github.com/nas-programmer/path-finding/blob/master/djikstra.py](https://github.com/nas-programmer/path-finding/blob/master/djikstra.py)
Feedback/criticism appreciated
/r/Python
https://redd.it/ixgobe
YouTube
Dijkstra's Path Finding Visualizer using Python Pygame (Shortest Pathfinding Algorithm)
Dijkstra's pathfinding visualization, Dijkstra's Algorithm.
Path Finding Algorithm using queues. Making the distance between the nodes a constant number 1.
Please leave a LIKE and SUBSCRIBE for more content!
https://www.youtube.com/channel/UCE_Q2KfZFP4…
Path Finding Algorithm using queues. Making the distance between the nodes a constant number 1.
Please leave a LIKE and SUBSCRIBE for more content!
https://www.youtube.com/channel/UCE_Q2KfZFP4…
I need an IDE for Django that supports SSH.
I have a dev server, on which I intend to learn Django/Python. I would use VSCodium but it looks like the Python extension has the telemetry which I use VSCodium to avoid. And when it comes to PyCharm the community version doesn't support SSH...
Any recommendations?
/r/django
https://redd.it/ixn4a2
I have a dev server, on which I intend to learn Django/Python. I would use VSCodium but it looks like the Python extension has the telemetry which I use VSCodium to avoid. And when it comes to PyCharm the community version doesn't support SSH...
Any recommendations?
/r/django
https://redd.it/ixn4a2
reddit
I need an IDE for Django that supports SSH.
I have a dev server, on which I intend to learn Django/Python. I would use VSCodium but it looks like the Python extension has the telemetry which...
Most Popular Programming Languages on GitHub - 2011/2019
https://youtu.be/eCUy0F-oVXA
/r/JupyterNotebooks
https://redd.it/ixk7vo
https://youtu.be/eCUy0F-oVXA
/r/JupyterNotebooks
https://redd.it/ixk7vo
YouTube
The Most Popular Programming Languages on GitHub - 2011/2019
In this video the evolution of the most used Programming Languages on GitHub from 2011 to 2019. The data goes from September 2011 to December 2019. The data refers to the number of repository Stars exported from the GitHub Archive.
Source: GitHub Archive…
Source: GitHub Archive…
Three alternative ways of deploying Django
These are the notes from my talk at DjangoCon EU last week:
[https://gist.github.com/tomdyson/025be30855262287ae048bf4371d26f8](https://gist.github.com/tomdyson/025be30855262287ae048bf4371d26f8)
In 30 minutes I built a very simple Wagtail site and deployed it three times: on Dokku, Netlify and Google Cloud Run. Hopefully the instructions are enough for others to recreate the steps. Some caveats:
* although this demo uses Wagtail, any Django app with a working Dockerfile should work in the same way
* the steps are designed for a quick, impressive demo, and are not intended as best practice reference :)
* in particular, the Cloud Run steps are not complete - pushing a Docker-enabled app is really easy, but database connections and shell access (e.g. for running management commands) is annoyingly fiddly.
I believe the DjangoCon EU organisers will release talk videos in the next few weeks, but in the meantime here are the [slides from the talk](https://docs.google.com/presentation/d/e/2PACX-1vTP9sof4pZO6E9f6gnAVyrP0OW7y42npYdNCWYDMv2NmYivMXCvLdaO8y4eMBDdOh2otgrT-IqmfgNH/pub?start=false&loop=false&delayms=3000#slide=id.g98cee58a9e_0_41).
/r/django
https://redd.it/ixpn8r
These are the notes from my talk at DjangoCon EU last week:
[https://gist.github.com/tomdyson/025be30855262287ae048bf4371d26f8](https://gist.github.com/tomdyson/025be30855262287ae048bf4371d26f8)
In 30 minutes I built a very simple Wagtail site and deployed it three times: on Dokku, Netlify and Google Cloud Run. Hopefully the instructions are enough for others to recreate the steps. Some caveats:
* although this demo uses Wagtail, any Django app with a working Dockerfile should work in the same way
* the steps are designed for a quick, impressive demo, and are not intended as best practice reference :)
* in particular, the Cloud Run steps are not complete - pushing a Docker-enabled app is really easy, but database connections and shell access (e.g. for running management commands) is annoyingly fiddly.
I believe the DjangoCon EU organisers will release talk videos in the next few weeks, but in the meantime here are the [slides from the talk](https://docs.google.com/presentation/d/e/2PACX-1vTP9sof4pZO6E9f6gnAVyrP0OW7y42npYdNCWYDMv2NmYivMXCvLdaO8y4eMBDdOh2otgrT-IqmfgNH/pub?start=false&loop=false&delayms=3000#slide=id.g98cee58a9e_0_41).
/r/django
https://redd.it/ixpn8r
Gist
New ways to deploy your Django app
New ways to deploy your Django app. GitHub Gist: instantly share code, notes, and snippets.