Advice for getting a Flask job?
Just graduated a bootcamp that went over html/css, JS, Python, Flask, and React. My best project is a Pokemon themed social media app made in Flask. It covers a lot of the big buzzwords
https://pokemonsocial308.herokuapp.com/home
\-User authentication with password encryption
\-fetches JSON from a 2nd Flask database I set up
\-RESTful API routes for the blog posts
\-CRUD functionality for the users and their posts
\-Postgres database
​
I was SO happy with my progress at first. But I'm getting zero responses from job applications so maybe I still have a ways to go.
Lots of job listings mention Docker, Kubernetes, and Amazon Web Services. Maybe I should add those to my list of skills next?
/r/flask
https://redd.it/xgau2z
Just graduated a bootcamp that went over html/css, JS, Python, Flask, and React. My best project is a Pokemon themed social media app made in Flask. It covers a lot of the big buzzwords
https://pokemonsocial308.herokuapp.com/home
\-User authentication with password encryption
\-fetches JSON from a 2nd Flask database I set up
\-RESTful API routes for the blog posts
\-CRUD functionality for the users and their posts
\-Postgres database
​
I was SO happy with my progress at first. But I'm getting zero responses from job applications so maybe I still have a ways to go.
Lots of job listings mention Docker, Kubernetes, and Amazon Web Services. Maybe I should add those to my list of skills next?
/r/flask
https://redd.it/xgau2z
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/xg72un
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/xg72un
reddit
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic? Use this thread to chat about and...
Flask Website doesnt behave as i wish, and i dont know why?
Hello there,
I am pretty new to flask and Python an tried to make flask app wich doesnt really work as i wish. I dont get any errors its just not what i want.
So i have 3 Problems:
1. is the Web App has Checkboxes but if i submit one of them, every of them changes
2. why does the checkbox uncheck after reloading the website
3. My third Problem is that i want to get back the value form {{supervisor['number'\]}} if the checkbox is checked
​
<div class="number-items" name="service-number">{{supervisor'number' }}</div>
​
HTML:
{% for supervisor in supervisorusers %}
<div class="number-alignment">
<div class="number-container">
<div class="number-items">{{ supervisor'name' }}</div>
<div class="number-items" name="service-number">{{supervisor'number' }}</div>
<div class="number-items">
/r/flask
https://redd.it/xgj6lh
Hello there,
I am pretty new to flask and Python an tried to make flask app wich doesnt really work as i wish. I dont get any errors its just not what i want.
So i have 3 Problems:
1. is the Web App has Checkboxes but if i submit one of them, every of them changes
2. why does the checkbox uncheck after reloading the website
3. My third Problem is that i want to get back the value form {{supervisor['number'\]}} if the checkbox is checked
​
<div class="number-items" name="service-number">{{supervisor'number' }}</div>
​
HTML:
{% for supervisor in supervisorusers %}
<div class="number-alignment">
<div class="number-container">
<div class="number-items">{{ supervisor'name' }}</div>
<div class="number-items" name="service-number">{{supervisor'number' }}</div>
<div class="number-items">
/r/flask
https://redd.it/xgj6lh
reddit
Flask Website doesnt behave as i wish, and i dont know why?
Hello there, I am pretty new to flask and Python an tried to make flask app wich doesnt really work as i wish. I dont get any errors its just not...
Matplotlib Animation | Simplest Guide
https://www.datascienceverse.com/data-visualization/matplotlib-animation-simplest-guide/
/r/IPython
https://redd.it/xgln9l
https://www.datascienceverse.com/data-visualization/matplotlib-animation-simplest-guide/
/r/IPython
https://redd.it/xgln9l
DataScienceVerse
Matplotlib Animation | Simplest Guide
What I am gonna show you is to create a very simple Matplotlib animation using Python. The best way to learn how to make animation Matplolib
Jupyter Notebook TOP-NOTCH For Data Science
https://www.datascienceverse.com/data-engineering/jupyter-notebook-top-notch-for-data-science/
/r/IPython
https://redd.it/xgcxil
https://www.datascienceverse.com/data-engineering/jupyter-notebook-top-notch-for-data-science/
/r/IPython
https://redd.it/xgcxil
DataScienceVerse
Jupyter Notebook TOP-NOTCH For Data Science
It is necessary to select the best platform in which you write code for Data Science and that comes up with the value of Jupyter Notebook.
How can I add comments option in the same detailview(another function that shows the blog post)
​
https://preview.redd.it/97zys9efrmo91.png?width=840&format=png&auto=webp&s=34b990f9223969f19f382bac6533e619c42409f4
​
https://preview.redd.it/whoskiwirmo91.png?width=786&format=png&auto=webp&s=1dc5986ee8e68ff0ab9fb7286ed722112795cacd
im currently using seperate page for adding the comment
I need to click on 'add a comment' then it takes me to add_comment.html
here is the function
is there any way I can do that inside my list_detail.html file?
​
​
another question
How can I redirect the browser to the same list_detail page? the problem is it contains slug link. and i dont know how to mention that in reverse lazy.
/r/django
https://redd.it/xhirb7
​
https://preview.redd.it/97zys9efrmo91.png?width=840&format=png&auto=webp&s=34b990f9223969f19f382bac6533e619c42409f4
​
https://preview.redd.it/whoskiwirmo91.png?width=786&format=png&auto=webp&s=1dc5986ee8e68ff0ab9fb7286ed722112795cacd
im currently using seperate page for adding the comment
I need to click on 'add a comment' then it takes me to add_comment.html
here is the function
class AddCommentView(CreateView): #book model = Comment # fields = "__all__" # fields = ['title','author','genre','content'] form_class = CommentForm template_name = 'app/add_comment.html' def form_valid(self, form): list_obj = List.objects.get(slug = self.kwargs['slug']) form.instance.list = list_obj return super().form_valid(form) success_url = reverse_lazy("app:list") is there any way I can do that inside my list_detail.html file?
​
​
another question
How can I redirect the browser to the same list_detail page? the problem is it contains slug link. and i dont know how to mention that in reverse lazy.
/r/django
https://redd.it/xhirb7
Data doesn't get saved in the database with post request
Hello everyone! I started learning Django a week ago and i decided to create a poll app where users can login, signup, create their own polls and vote on them. Everything is working fine except for the poll creation part (it was also working and i honestly can't remember if i changed something in one of the views, forms or templates because the last time i worked on it it was a couple of days ago... this is also the only time i didn't initialize a repo, sigh).
Basically the problem is that when i write the text in the form and press the "create poll" button i get redirected to the "home", which is what i want, and in the terminal i can see that a post request was made but the data doesn't get saved in the database. I don't get any error, warning or message of any kind. Here is the code:
views.py
@login_required
def create(request):
if request.method == 'POST':
question_form = QuestionForm(request.POST)
choice_form
/r/djangolearning
https://redd.it/xhh8bx
Hello everyone! I started learning Django a week ago and i decided to create a poll app where users can login, signup, create their own polls and vote on them. Everything is working fine except for the poll creation part (it was also working and i honestly can't remember if i changed something in one of the views, forms or templates because the last time i worked on it it was a couple of days ago... this is also the only time i didn't initialize a repo, sigh).
Basically the problem is that when i write the text in the form and press the "create poll" button i get redirected to the "home", which is what i want, and in the terminal i can see that a post request was made but the data doesn't get saved in the database. I don't get any error, warning or message of any kind. Here is the code:
views.py
@login_required
def create(request):
if request.method == 'POST':
question_form = QuestionForm(request.POST)
choice_form
/r/djangolearning
https://redd.it/xhh8bx
reddit
Data doesn't get saved in the database with post request
Hello everyone! I started learning Django a week ago and i decided to create a poll app where users can login, signup, create their own polls and...
How do you like to "plan out" your Django apps?
Does anyone use any visual tools for something like this? a text document with nesting?
I've got a project I'm pretty excited about, but I will probably wanna think about/work on it from my tablet, while not entirely in the code-base.
I think I may setup VSCode server so I can work from my laptop/tablet too, but this is kind of a bit before that.
It's been ~2 years since I've used Django, and while I felt decently competent with it, I wanna try and plan my project out better than previously.
Cheers!
/r/django
https://redd.it/xhw8b0
Does anyone use any visual tools for something like this? a text document with nesting?
I've got a project I'm pretty excited about, but I will probably wanna think about/work on it from my tablet, while not entirely in the code-base.
I think I may setup VSCode server so I can work from my laptop/tablet too, but this is kind of a bit before that.
It's been ~2 years since I've used Django, and while I felt decently competent with it, I wanna try and plan my project out better than previously.
Cheers!
/r/django
https://redd.it/xhw8b0
reddit
How do you like to "plan out" your Django apps?
Does anyone use any visual tools for something like this? a text document with nesting? I've got a project I'm pretty excited about, but I will...
Where to host Flask projects for clients?
Hi
I am looking at doing some web development freelance work and want to use flask as the backend as this is the framework i've learned and am comfortable with. This might change in future as I upskill my JS framework knowledge.
However, for now I wanted to know for now where is the best place to host these websites if i'm doing it for clients. I want somewhere I can set it up and know that there are not going to be any issues that cause problems with the clients website down the line.
Love to know peoples experience with this and any recommendations.
Thanks
/r/flask
https://redd.it/xhudv0
Hi
I am looking at doing some web development freelance work and want to use flask as the backend as this is the framework i've learned and am comfortable with. This might change in future as I upskill my JS framework knowledge.
However, for now I wanted to know for now where is the best place to host these websites if i'm doing it for clients. I want somewhere I can set it up and know that there are not going to be any issues that cause problems with the clients website down the line.
Love to know peoples experience with this and any recommendations.
Thanks
/r/flask
https://redd.it/xhudv0
reddit
Where to host Flask projects for clients?
Hi I am looking at doing some web development freelance work and want to use flask as the backend as this is the framework i've learned and am...
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/xh1lwk
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/xh1lwk
reddit
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
Gunicorn flask app deployment in heroku?
I'm getting error messages that are saying permissions are denied.
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446981 INFO Starting gunicorn 20.1.0
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446981 INFO Listening at: http://0.0.0.0:5000 (1446981)
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446981 INFO Using worker: sync
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446983 INFO Booting worker with pid: 1446983
12:16:42 AM web.1 | Serving Flask app 'app'
12:16:42 AM web.1 | Debug mode: off
12:16:42 AM web.1 | Permission denied
12:16:42 AM web.1 | 2022-09-19 00:16:42 -0500 1446983 INFO Worker exiting (pid: 1446983)
12:16:42 AM web.1 | 2022-09-19 00:16:42 -0500 1446984 INFO Booting worker with pid: 1446984
12:16:42 AM web.1 | Serving Flask app 'app'
12:16:42 AM web.1 | Debug mode: off
12:16:42 AM web.1 | Permission denied
12:16:42 AM web.1 | 2022-09-19 00:16:42 -0500 1446984 INFO
/r/flask
https://redd.it/xi2w5g
I'm getting error messages that are saying permissions are denied.
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446981 INFO Starting gunicorn 20.1.0
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446981 INFO Listening at: http://0.0.0.0:5000 (1446981)
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446981 INFO Using worker: sync
12:16:41 AM web.1 | 2022-09-19 00:16:41 -0500 1446983 INFO Booting worker with pid: 1446983
12:16:42 AM web.1 | Serving Flask app 'app'
12:16:42 AM web.1 | Debug mode: off
12:16:42 AM web.1 | Permission denied
12:16:42 AM web.1 | 2022-09-19 00:16:42 -0500 1446983 INFO Worker exiting (pid: 1446983)
12:16:42 AM web.1 | 2022-09-19 00:16:42 -0500 1446984 INFO Booting worker with pid: 1446984
12:16:42 AM web.1 | Serving Flask app 'app'
12:16:42 AM web.1 | Debug mode: off
12:16:42 AM web.1 | Permission denied
12:16:42 AM web.1 | 2022-09-19 00:16:42 -0500 1446984 INFO
/r/flask
https://redd.it/xi2w5g
reddit
Gunicorn flask app deployment in heroku?
I'm getting error messages that are saying permissions are denied. 12:16:41 AM web.1 | [2022-09-19 00:16:41 -0500] [1446981] [INFO]...
Automated PDF Reports with Python Notebooks
https://mljar.com/blog/automated-reports-python/
/r/IPython
https://redd.it/vmjhh5
https://mljar.com/blog/automated-reports-python/
/r/IPython
https://redd.it/vmjhh5
MLJAR
Automated PDF Reports with Python
Explore building an automated reporting system in Python using Jupyter Notebook and the Mercury framework. Fetch stock market data, display news, price chart, and analysis. Schedule daily execution, convert the notebook to PDF, and send it via email.
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, "The Big Book of Small Python Projects" which provides a list of projects and the code to make them work.
/r/Python
https://redd.it/xhw62a
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, "The Big Book of Small Python Projects" which provides a list of projects and the code to make them work.
/r/Python
https://redd.it/xhw62a
reddit
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with...
Creating interactive textbooks
I'm a highschool teacher and I'm looking to develop a number of interactive textbooks to teach my students Python.
I haven't had much experience with Jupyter, but I think either Notebook or Jupyter Book look like the best options.
Just wondering:
1. Which would be better?
2. What would be the best option for hosting?
/r/IPython
https://redd.it/vci5aw
I'm a highschool teacher and I'm looking to develop a number of interactive textbooks to teach my students Python.
I haven't had much experience with Jupyter, but I think either Notebook or Jupyter Book look like the best options.
Just wondering:
1. Which would be better?
2. What would be the best option for hosting?
/r/IPython
https://redd.it/vci5aw
Reddit
r/IPython on Reddit: Creating interactive textbooks
Posted by u/damom73 - 3 votes and 3 comments
Jupyter cannot find package in virtual environment
I recently installed a modified python package from GitHub. I was able to set it up correctly in a virtual environment and have the module imported. I want to use the package in Jupyter Notebook so I installed a kernel in the virtual environment using
This is the output I get:
Next I open the jupyter notebook and create a new .ipynb file and try to load obspy from obspy import read, but it says
/r/JupyterNotebooks
https://redd.it/xhtc21
I recently installed a modified python package from GitHub. I was able to set it up correctly in a virtual environment and have the module imported. I want to use the package in Jupyter Notebook so I installed a kernel in the virtual environment using
(py_venv) C:\Users\Maaz Shahid\Documents\obspy_example>ipython kernel install --user --name=py_venvThis is the output I get:
Installed kernelspec venv in C:\Users\Maaz Shahid\AppData\Roaming\jupyter\kernels\py_venvNext I open the jupyter notebook and create a new .ipynb file and try to load obspy from obspy import read, but it says
ModuleNotFoundError: No module named 'obspy'. I have changed the kernel from python3 to venv in Jupyter but it's not working./r/JupyterNotebooks
https://redd.it/xhtc21
Reddit
Jupyter cannot find package in virtual environment
Posted in the JupyterNotebooks community.
Jupyter newbie here. Need to get this done for an assignment but have no idea how. there are a 120 items in reference to age and I would like to split the data into 7 bins for my frequency table. Not sure how to go about it.
/r/JupyterNotebooks
https://redd.it/xi2yoi
/r/JupyterNotebooks
https://redd.it/xi2yoi
Deploying Django with Heroku vs Other Options—Which is Best for an Individual Developer??
So I’ve been working on finding the “best” way to deploy a Django site as an individual developer and by far the easiest I have found is Heroku.
Other options require you to essentially become a server admin and spend more of your time on infrastructure than actually building your app.
The major concern I hear about with Heroku is the scaling costs…
…But if you are at the point of scaling, shouldn’t your app be making money to cover those costs?
…Aren’t you also saving tons of time and therefore money by not focusing on your server and related infrastructure??
I don’t get the Heroku hate, it honestly seems like the ONLY decent option for a one-person dev team.
We all use Python and Django so we can move fast and bring our ideas to life, but this ideal seems to get lost as soon as we go to deploy our work to the web.
Id like to hear what you all are doing to solve these issues, and deploy your Django sites in a way that works.
What deployment solution do you think is best for a one-person team whose goal is to build a scalable Django site??
Thanks 🙏
/r/django
https://redd.it/xijzq3
So I’ve been working on finding the “best” way to deploy a Django site as an individual developer and by far the easiest I have found is Heroku.
Other options require you to essentially become a server admin and spend more of your time on infrastructure than actually building your app.
The major concern I hear about with Heroku is the scaling costs…
…But if you are at the point of scaling, shouldn’t your app be making money to cover those costs?
…Aren’t you also saving tons of time and therefore money by not focusing on your server and related infrastructure??
I don’t get the Heroku hate, it honestly seems like the ONLY decent option for a one-person dev team.
We all use Python and Django so we can move fast and bring our ideas to life, but this ideal seems to get lost as soon as we go to deploy our work to the web.
Id like to hear what you all are doing to solve these issues, and deploy your Django sites in a way that works.
What deployment solution do you think is best for a one-person team whose goal is to build a scalable Django site??
Thanks 🙏
/r/django
https://redd.it/xijzq3
reddit
Deploying Django with Heroku vs Other Options—Which is Best for an...
So I’ve been working on finding the “best” way to deploy a Django site as an individual developer and by far the easiest I have found is...
Jupyter Failed to start kernel
Jupyter on vscode is refusing to work and produces this log error:
Failed to run jupyter as observable with args notebook --no-browser --notebook-dir="/home/yamen/Projects/Technocolabs" --config=/tmp/06ba2647-9655-4f4f-a96e-982372e4dfac/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
at t.JupyterConnectionWaiter.rejectStartPromise (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:2145420)
at t._error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:2146021)
at t.__tryOrUnsub (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1335464)
at t.error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1334873)
at t._error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1333758)
at t.error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1333452)
at t.error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1330958)
at /home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:7:36891\] {
category: 'jupyterconnection'
/r/JupyterNotebooks
https://redd.it/xhby2a
Jupyter on vscode is refusing to work and produces this log error:
Failed to run jupyter as observable with args notebook --no-browser --notebook-dir="/home/yamen/Projects/Technocolabs" --config=/tmp/06ba2647-9655-4f4f-a96e-982372e4dfac/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
at t.JupyterConnectionWaiter.rejectStartPromise (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:2145420)
at t._error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:2146021)
at t.__tryOrUnsub (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1335464)
at t.error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1334873)
at t._error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1333758)
at t.error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1333452)
at t.error (/home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:2:1330958)
at /home/yamen/.vscode/extensions/ms-toolsai.jupyter-2022.8.1002431955/out/extension.node.js:7:36891\] {
category: 'jupyterconnection'
/r/JupyterNotebooks
https://redd.it/xhby2a
reddit
Jupyter Failed to start kernel
Jupyter on vscode is refusing to work and produces this log error: Failed to run jupyter as observable with args notebook --no-browser...
Rewriting Django Rest Framework app in Flask
I'm working on a Django Rest Framework project that has a chat in it. Now I have a task to create a chat microservice with the same requests and responses as in the DRF project. The problem is that I'm new to Flask. I started searching on how to move a code from DRF to Flask but apparently it's more sophisticated than I expected. Now I'm wondering what would be the best approach for this case.
/r/flask
https://redd.it/xiaeux
I'm working on a Django Rest Framework project that has a chat in it. Now I have a task to create a chat microservice with the same requests and responses as in the DRF project. The problem is that I'm new to Flask. I started searching on how to move a code from DRF to Flask but apparently it's more sophisticated than I expected. Now I'm wondering what would be the best approach for this case.
/r/flask
https://redd.it/xiaeux
reddit
Rewriting Django Rest Framework app in Flask
I'm working on a Django Rest Framework project that has a chat in it. Now I have a task to create a chat microservice with the same requests and...
Pandas 1.5 released
https://github.com/pandas-dev/pandas/releases/tag/v1.5.0
/r/Python
https://redd.it/xidxvz
https://github.com/pandas-dev/pandas/releases/tag/v1.5.0
/r/Python
https://redd.it/xidxvz
GitHub
Release Pandas 1.5.0 · pandas-dev/pandas
This release includes some new features, bug fixes, and performance improvements. We recommend that all users upgrade to this version.
See the full whatsnew for a list of all the changes. pandas 1....
See the full whatsnew for a list of all the changes. pandas 1....