Question: Resubmitting form automatically, or auto-refreshing page
Good Afternoon,
I'll use a search function as an example (Search something, display a table with results, and view one of the results.
I'm quite far into my Flask project, and I've noticed that it's really annoying going back to the search results, having to refresh and click "resubmit form".
Is there a way to display the previous page without having to resubmit the form, or automatically confirm form submission?
I don't have much experience in PHP, but have some knowledge of CSS, HTML, JS, and Python.
/r/flask
https://redd.it/aq5nwz
Good Afternoon,
I'll use a search function as an example (Search something, display a table with results, and view one of the results.
I'm quite far into my Flask project, and I've noticed that it's really annoying going back to the search results, having to refresh and click "resubmit form".
Is there a way to display the previous page without having to resubmit the form, or automatically confirm form submission?
I don't have much experience in PHP, but have some knowledge of CSS, HTML, JS, and Python.
/r/flask
https://redd.it/aq5nwz
reddit
r/flask - Question: Resubmitting form automatically, or auto-refreshing page
4 votes and 3 comments so far on Reddit
Built with Django as backend, remote job board for django devs
https://bestremotejob.com/language/django-remote
/r/django
https://redd.it/aq4900
https://bestremotejob.com/language/django-remote
/r/django
https://redd.it/aq4900
reddit
r/django - Built with Django as backend, remote job board for django devs
14 votes and 8 comments so far on Reddit
Post your Django project collaboration needs!
There are a lot of projects out there that are looking for collaborators, and similarly, people looking to contribute and gain knowledge or apply their skills! There are a few sites out there for matching people up in this way, but I thought I'd give this subreddit a try first.
Post your projects that you're looking for help on along with any of your particular needs. One top-level comment per project if you have multiple maybe?
I'll be posting a couple of mine as well.
/r/django
https://redd.it/aqaq7t
There are a lot of projects out there that are looking for collaborators, and similarly, people looking to contribute and gain knowledge or apply their skills! There are a few sites out there for matching people up in this way, but I thought I'd give this subreddit a try first.
Post your projects that you're looking for help on along with any of your particular needs. One top-level comment per project if you have multiple maybe?
I'll be posting a couple of mine as well.
/r/django
https://redd.it/aqaq7t
reddit
r/django - Post your Django project collaboration needs!
2 votes and 1 comment so far on Reddit
HTML form to Django backend
Hi there. I’ve been having problems with my first Django implementation. I’ve got an HTML POST form that I’m ultimately trying to get into my Sqlite3 db, and I’m fairly sure my views.py is where I’m going wrong by can’t seem to nail down why. Anyone have any ideas? [Link to stack exchange question ](https://stackoverflow.com/questions/54658622/getting-post-request-from-an-html-form-into-a-django-database)Thank in advance!
/r/djangolearning
https://redd.it/aqadp3
Hi there. I’ve been having problems with my first Django implementation. I’ve got an HTML POST form that I’m ultimately trying to get into my Sqlite3 db, and I’m fairly sure my views.py is where I’m going wrong by can’t seem to nail down why. Anyone have any ideas? [Link to stack exchange question ](https://stackoverflow.com/questions/54658622/getting-post-request-from-an-html-form-into-a-django-database)Thank in advance!
/r/djangolearning
https://redd.it/aqadp3
Stack Overflow
Getting POST request from an HTML form into a Django database
i'm looking to implement a simple HTML form that passes a bunch of data to a Django backend which then stores it and displays it on another page. Unfortunately i can't seem to hook the back and front
Asking for a review - That's a beginner app
Hello!
I feel a bit shy showing my code and I promise myself in 2019 to be less prudish.
Also, I think it is a good start to get the best practices asking for reviews to experimented guys.
​
So here we are:
I've started a Python/Flask project and I force myself to write raw SQL Request to get better with SQL (I think this is the most valuable things). I've worked with Ruby On Rails and ORM for 2 years now. Sometimes the ORM can't do what I want and have to process the result with Ruby which is known to be a bit slow. (especially old version).
​
This is only getting the data in the database and send it to the front which is processing with them and show me some Charts. I've only 3 routes and I feel like my file is getting bigger and bigger every time I'm looking at it.
**Gist:** [https://gist.github.com/jgengo/9fd005ec3b2aed935104c06bc95a3b34](https://gist.github.com/jgengo/9fd005ec3b2aed935104c06bc95a3b34)
Thank you for your precious time.
/r/flask
https://redd.it/aq7xw3
Hello!
I feel a bit shy showing my code and I promise myself in 2019 to be less prudish.
Also, I think it is a good start to get the best practices asking for reviews to experimented guys.
​
So here we are:
I've started a Python/Flask project and I force myself to write raw SQL Request to get better with SQL (I think this is the most valuable things). I've worked with Ruby On Rails and ORM for 2 years now. Sometimes the ORM can't do what I want and have to process the result with Ruby which is known to be a bit slow. (especially old version).
​
This is only getting the data in the database and send it to the front which is processing with them and show me some Charts. I've only 3 routes and I feel like my file is getting bigger and bigger every time I'm looking at it.
**Gist:** [https://gist.github.com/jgengo/9fd005ec3b2aed935104c06bc95a3b34](https://gist.github.com/jgengo/9fd005ec3b2aed935104c06bc95a3b34)
Thank you for your precious time.
/r/flask
https://redd.it/aq7xw3
Gist
main.py
GitHub Gist: instantly share code, notes, and snippets.
What's the ideal way to track different versions of Jupyter notebooks?
I want to quickly jump between different versions as well as do comparison between multiple versions at a time.
/r/JupyterNotebooks
https://redd.it/aqbrda
I want to quickly jump between different versions as well as do comparison between multiple versions at a time.
/r/JupyterNotebooks
https://redd.it/aqbrda
reddit
r/JupyterNotebooks - What's the ideal way to track different versions of Jupyter notebooks?
0 votes and 1 comment so far on Reddit
Prototype of Python-powered IoT device, gets how many subs are in r/Python plays sound when new ones are added
/r/Python
https://redd.it/aqapmb
/r/Python
https://redd.it/aqapmb
I wrote a guide on installing Jupyter notebooks on a server and running them with SSH tunneling or with SSL and Let's Encrypt
https://janakiev.com/blog/jupyter-notebook-server/
/r/JupyterNotebooks
https://redd.it/apro0i
https://janakiev.com/blog/jupyter-notebook-server/
/r/JupyterNotebooks
https://redd.it/apro0i
njanakiev
Installing and Running Jupyter on a Server
Jupyter Notebook is a powerful tool, but how can you use it in all its glory on a server? In this tutorial you will see how to set up Jupyter notebook on a server like Digital Ocean, AWS or most other hosting provider available. Additionally, you will see…
Passing values in Django
Hi all,
​
I need help with passing values from one view to another. Also, overriding the save function is giving me headhecks...can you help me on where to find materials on this things..
Thank you all in advance
/r/djangolearning
https://redd.it/aqhs3r
Hi all,
​
I need help with passing values from one view to another. Also, overriding the save function is giving me headhecks...can you help me on where to find materials on this things..
Thank you all in advance
/r/djangolearning
https://redd.it/aqhs3r
reddit
r/djangolearning - Passing values in Django
1 vote and 2 comments so far on Reddit
DJANGO PROJECT SUGGESTION
Hey guys.. I have to make a final year project and i am out of ideas.. I have been working on Django for more than one year and i know web scraping. My team mate has knowledge of Data Science.. It would great if anybody could suggest me some projects..
Thank you..
/r/django
https://redd.it/aqjumf
Hey guys.. I have to make a final year project and i am out of ideas.. I have been working on Django for more than one year and i know web scraping. My team mate has knowledge of Data Science.. It would great if anybody could suggest me some projects..
Thank you..
/r/django
https://redd.it/aqjumf
reddit
r/django - DJANGO PROJECT SUGGESTION
0 votes and 3 comments so far on Reddit
Need recommendation on python/django bootcamps online
Hi there!
Could someone recommend good bootcamps/tutorials on building up web apps on python/django?
Thanks!
/r/djangolearning
https://redd.it/aqjshk
Hi there!
Could someone recommend good bootcamps/tutorials on building up web apps on python/django?
Thanks!
/r/djangolearning
https://redd.it/aqjshk
reddit
r/djangolearning - Need recommendation on python/django bootcamps online
2 votes and 2 comments so far on Reddit
How to replicate Google Maps distance using Python
https://kanoki.org/2019/02/14/how-to-find-distance-between-two-points-based-on-latitude-and-longitude-using-python-and-sql/
/r/Python
https://redd.it/aqjr3c
https://kanoki.org/2019/02/14/how-to-find-distance-between-two-points-based-on-latitude-and-longitude-using-python-and-sql/
/r/Python
https://redd.it/aqjr3c
reddit
r/Python - How to replicate Google Maps distance using Python
7 votes and 0 comments so far on Reddit
What exactly is constructor in Python? - a blog post by my colleague
https://medium.com/@tomaszwito/python-constructor-elusive-function-58e87277dd25
/r/Python
https://redd.it/aqjw31
https://medium.com/@tomaszwito/python-constructor-elusive-function-58e87277dd25
/r/Python
https://redd.it/aqjw31
Medium
Python constructor — elusive function
“What method is a constructor in Python?” —I was asked this question several times during my job interviews for Python developer. At…
Flask-Alembic model detection - is very strange
Hi,
I found that Flask-Alembic detects model based solely on their using. So, if I add in the code something like that:
`from app.my_models import project_model`
the project\_model will be detected and, if there are any updates the table will be updated.
**But**, if I don't mention the model in the code it will be ignored as a non-existing model, and then, as a consequence, the table will be dropped from the database. It's slightly different from what I expected, or maybe I use it wrong.
Can somebody please comment on it?
Thanks!
​
/r/flask
https://redd.it/aqnk5m
Hi,
I found that Flask-Alembic detects model based solely on their using. So, if I add in the code something like that:
`from app.my_models import project_model`
the project\_model will be detected and, if there are any updates the table will be updated.
**But**, if I don't mention the model in the code it will be ignored as a non-existing model, and then, as a consequence, the table will be dropped from the database. It's slightly different from what I expected, or maybe I use it wrong.
Can somebody please comment on it?
Thanks!
​
/r/flask
https://redd.it/aqnk5m
reddit
r/flask - Flask-Alembic model detection - is very strange
1 vote and 3 comments so far on Reddit
Plotly's Jupyterlab Chart Editor for editing charts through a user-friendly point-and-click interface
https://kyso.io/KyleOS/plotly-chart-editor
/r/IPython
https://redd.it/aqn1if
https://kyso.io/KyleOS/plotly-chart-editor
/r/IPython
https://redd.it/aqn1if
Kyso
KyleOS/plotly-chart-editor
Jupyterlab plotly extension to customize charts with no code!
Initializing a Flask app
[https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world)
With the above tutorial an `app` package is created. For the `__init__.py` file, `Flask` is instantiated in there:
app/__init__.py: Flask application instance
from flask import Flask
app = Flask(__name__)
from app import routes
Why is that written in \`\_\_init\_\_.py\` and what is the benefit of that? As opposed to an empty `__init__.py` and then instantiating the `Flask` class in another module such as...
app/main_app.py #Flask is instantiated here instead of __init__.py
from flask import Flask
app = Flask(__name__)
​
/r/flask
https://redd.it/aqoq8m
[https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world)
With the above tutorial an `app` package is created. For the `__init__.py` file, `Flask` is instantiated in there:
app/__init__.py: Flask application instance
from flask import Flask
app = Flask(__name__)
from app import routes
Why is that written in \`\_\_init\_\_.py\` and what is the benefit of that? As opposed to an empty `__init__.py` and then instantiating the `Flask` class in another module such as...
app/main_app.py #Flask is instantiated here instead of __init__.py
from flask import Flask
app = Flask(__name__)
​
/r/flask
https://redd.it/aqoq8m
Miguelgrinberg
The Flask Mega-Tutorial, Part I: Hello, World!
You are reading the 2024 edition of the Flask Mega-Tutorial. The complete course is also available to order in e-book and paperback formats from Amazon. Thank you for your support!If you are looking…
How to put CSRF tokens on the page without a flask form?
Since learning AJAX and RESTful api's, I've been replacing all my flask wtforms with regular ol' html inputs and submit buttons. I haven't really seen the point of wtforms. But they did have the .hidden\_token attribute which was nice.
So now that I'm doing away with flask forms, how do I still put a hidden token on my pages?
/r/flask
https://redd.it/aqr5cy
Since learning AJAX and RESTful api's, I've been replacing all my flask wtforms with regular ol' html inputs and submit buttons. I haven't really seen the point of wtforms. But they did have the .hidden\_token attribute which was nice.
So now that I'm doing away with flask forms, how do I still put a hidden token on my pages?
/r/flask
https://redd.it/aqr5cy
reddit
r/flask - How to put CSRF tokens on the page without a flask form?
1 vote and 2 comments so far on Reddit
[R] OpenAI: Better Language Models and Their Implications
https://blog.openai.com/better-language-models/
"We’ve trained a large-scale unsupervised language model which generates coherent paragraphs of text, achieves state-of-the-art performance on many language modeling benchmarks, and performs rudimentary reading comprehension, machine translation, question answering, and summarization — all without task-specific training."
Interestingly,
"Due to our concerns about malicious applications of the technology, we are not releasing the trained model. As an experiment in responsible disclosure, we are instead releasing a much smaller model for researchers to experiment with, as well as a technical paper."
/r/MachineLearning
https://redd.it/aqlzde
https://blog.openai.com/better-language-models/
"We’ve trained a large-scale unsupervised language model which generates coherent paragraphs of text, achieves state-of-the-art performance on many language modeling benchmarks, and performs rudimentary reading comprehension, machine translation, question answering, and summarization — all without task-specific training."
Interestingly,
"Due to our concerns about malicious applications of the technology, we are not releasing the trained model. As an experiment in responsible disclosure, we are instead releasing a much smaller model for researchers to experiment with, as well as a technical paper."
/r/MachineLearning
https://redd.it/aqlzde