Migrate various docs links to https (#2180)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Also fixed a few outdated links
authored by Jeff Widman · committed by Markus Unterwaditzer · parent 5efb163 · Browse files · 22 files·+43 added−43 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
22 files+43 added−43 removed
- other:+43 added−43 removed
Provenance
- Commit
bb0e755- Tree
f181f0b- Author
Jeff Widman <jeff@jeffwidman.com>- Committer
Markus Unterwaditzer <markus@unterwaditzer.net>- Parent
5efb163
22 files changed+43 added−43 removed
modified:docs/_templates/sidebarintro.html+3 added-3 removed
14 unmodified lines151617181920211920212214 unmodified lines</ul><h3>Useful Links</h3><ul> <li><a href="http://flask.pocoo.org/">The Flask Website</a></li> <li><a href="http://pypi.python.org/pypi/Flask">Flask @ PyPI</a></li> <li><a href="http://github.com/pallets/flask">Flask @ GitHub</a></li> <li><a href="http://github.com/pallets/flask/issues">Issue Tracker</a></li> <li><a href="https://pypi.python.org/pypi/Flask">Flask @ PyPI</a></li> <li><a href="https://github.com/pallets/flask">Flask @ GitHub</a></li> <li><a href="https://github.com/pallets/flask/issues">Issue Tracker</a></li></ul>modified:docs/deploying/fastcgi.rst+3 added-3 removed
157 unmodified lines158 :class:`~werkzeug.contrib.fixers.LighttpdCGIRootFix` middleware.159 160 Make sure to apply it only if you are mounting the application the URL161 root. Also, see the Lighty docs for more information on `FastCGI and Python162-<http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI>`_ (note that162+<https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI>`_ (note that163 explicitly passing a socket to run() is no longer necessary).164 165 Configuring nginx166 -----------------66 unmodified lines233 - The code depending on environment variables that are not set by the234 web server.235 - Different python interpreters being used.236 237-.. _nginx: http://nginx.org/238-.. _lighttpd: http://www.lighttpd.net/237+.. _nginx: https://nginx.org/238+.. _lighttpd: https://www.lighttpd.net/239 .. _cherokee: http://cherokee-project.com/240 .. _flup: https://pypi.python.org/pypi/flupmodified:docs/deploying/index.rst+1 added-1 removed
19 unmodified lines20 - `Deploying Flask on Heroku <https://devcenter.heroku.com/articles/getting-started-with-python>`_21 - `Deploying Flask on OpenShift <https://developers.openshift.com/en/python-flask.html>`_22 - `Deploying Flask on Webfaction <http://flask.pocoo.org/snippets/65/>`_23 - `Deploying Flask on Google App Engine <https://github.com/kamalgill/flask-appengine-template>`_24-- `Deploying Flask on AWS Elastic Beanstalk <http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_24+- `Deploying Flask on AWS Elastic Beanstalk <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_25 - `Sharing your Localhost Server with Localtunnel <http://flask.pocoo.org/snippets/89/>`_26 - `Deploying on Azure (IIS) <https://azure.microsoft.com/documentation/articles/web-sites-python-configure/>`_27 - `Deploying on PythonAnywhere <https://help.pythonanywhere.com/pages/Flask/>`_28 11 unmodified linesmodified:docs/deploying/mod_wsgi.rst+4 added-4 removed
11 unmodified lines12 '__main__':`` block or moved to a separate file. Just make sure it's13 not called because this will always start a local WSGI server which14 we do not want if we deploy that application to mod_wsgi.15 16-.. _Apache: http://httpd.apache.org/16+.. _Apache: https://httpd.apache.org/17 18 Installing `mod_wsgi`19 ---------------------20 92 unmodified lines113 </VirtualHost>114 115 Note: There have been some changes in access control configuration for `Apache 2.4`_.116 117-.. _Apache 2.4: http://httpd.apache.org/docs/trunk/upgrading.html117+.. _Apache 2.4: https://httpd.apache.org/docs/trunk/upgrading.html118 119 Most notably, the syntax for directory permissions has changed from httpd 2.2120 121 .. sourcecode:: apache10 unmodified lines132 133 For more information consult the `mod_wsgi documentation`_.134 135 .. _mod_wsgi: https://github.com/GrahamDumpleton/mod_wsgi136-.. _installation instructions: http://modwsgi.readthedocs.io/en/develop/installation.html136+.. _installation instructions: https://modwsgi.readthedocs.io/en/develop/installation.html137 .. _virtual python: https://pypi.python.org/pypi/virtualenv138-.. _mod_wsgi documentation: http://modwsgi.readthedocs.io/en/develop/index.html138+.. _mod_wsgi documentation: https://modwsgi.readthedocs.io/en/develop/index.html139 140 Troubleshooting141 ---------------142 75 unmodified linesmodified:docs/deploying/uwsgi.rst+2 added-2 removed
64 unmodified lines65 include uwsgi_params;66 uwsgi_pass unix:/tmp/yourapplication.sock;67 }68 69-.. _nginx: http://nginx.org/70-.. _lighttpd: http://www.lighttpd.net/69+.. _nginx: https://nginx.org/70+.. _lighttpd: https://www.lighttpd.net/71 .. _cherokee: http://cherokee-project.com/72 .. _uwsgi: http://projects.unbit.it/uwsgi/modified:docs/patterns/appfactories.rst+1 added-1 removed
58 unmodified lines59 60 It's preferable to create your extensions and app factories so that the61 extension object does not initially get bound to the application.62 63-Using `Flask-SQLAlchemy <http://pythonhosted.org/Flask-SQLAlchemy/>`_,63+Using `Flask-SQLAlchemy <http://flask-sqlalchemy.pocoo.org/>`_,64 as an example, you should not do something along those lines::65 66 def create_app(config_filename):67 app = Flask(__name__)49 unmodified linesmodified:docs/patterns/favicon.rst+1 added-1 removed
47 unmodified lines48 49 See also50 --------51 52-* The `Favicon <http://en.wikipedia.org/wiki/Favicon>`_ article on52+* The `Favicon <https://en.wikipedia.org/wiki/Favicon>`_ article on53 Wikipediamodified:docs/patterns/fileuploads.rst+1 added-1 removed
179 unmodified lines180 `Flask-Uploads`_ that implements a full fledged upload mechanism with white and181 blacklisting of extensions and more.182 183 .. _jQuery: https://jquery.com/184-.. _Flask-Uploads: http://pythonhosted.org/Flask-Uploads/184+.. _Flask-Uploads: https://pythonhosted.org/Flask-Uploads/modified:docs/patterns/sqlalchemy.rst+3 added-3 removed
106 unmodified lines107 [<User u'admin'>]108 >>> User.query.filter(User.name == 'admin').first()109 <User u'admin'>110 111-.. _SQLAlchemy: http://www.sqlalchemy.org/111+.. _SQLAlchemy: https://www.sqlalchemy.org/112 .. _declarative:113- http://docs.sqlalchemy.org/en/latest/orm/extensions/declarative/113+ https://docs.sqlalchemy.org/en/latest/orm/extensions/declarative/114 115 Manual Object Relational Mapping116 --------------------------------117 96 unmodified lines214 >>> engine.execute('select * from users where id = :1', [1]).first()215 (1, u'admin', u'admin@localhost')216 217 For more information about SQLAlchemy, head over to the218-`website <http://www.sqlalchemy.org/>`_.218+`website <https://www.sqlalchemy.org/>`_.modified:docs/patterns/sqlite3.rst+7 added-7 removed
1 unmodified line2 3 Using SQLite 3 with Flask4 =========================5 6-In Flask you can easily implement the opening of database connections on 7-demand and closing them when the context dies (usually at the end of the 6+In Flask you can easily implement the opening of database connections on7+demand and closing them when the context dies (usually at the end of the8 request).9 10 Here is a simple example of how you can use SQLite 3 with Flask::11 58 unmodified lines70 Now in each request handling function you can access `g.db` to get the71 current open database connection. To simplify working with SQLite, a72 row factory function is useful. It is executed for every result returned73 from the database to convert the result. For instance, in order to get74-dictionaries instead of tuples, this could be inserted into the ``get_db`` 74+dictionaries instead of tuples, this could be inserted into the ``get_db``75 function we created above::76 77 def make_dicts(cursor, row):78 return dict((cursor.description[idx][0], value)22 unmodified lines101 M102 103 Additionally, it is a good idea to provide a query function that combines104 getting the cursor, executing and fetching the results::105- 105+106 def query_db(query, args=(), one=False):107 cur = get_db().execute(query, args)108 rv = cur.fetchall()109 cur.close()110 return (rv[0] if rv else None) if one else rv111 112-This handy little function, in combination with a row factory, makes 113-working with the database much more pleasant than it is by just using the 112+This handy little function, in combination with a row factory, makes113+working with the database much more pleasant than it is by just using the114 raw cursor and connection objects.115 116 Here is how you can use it::117 12 unmodified lines130 To pass variable parts to the SQL statement, use a question mark in the131 statement and pass in the arguments as a list. Never directly add them to132 the SQL statement with string formatting because this makes it possible133 to attack the application using `SQL Injections134-<http://en.wikipedia.org/wiki/SQL_injection>`_.134+<https://en.wikipedia.org/wiki/SQL_injection>`_.135 136 Initial Schemas137 ---------------138 16 unmodified linesmodified:docs/patterns/wtforms.rst+1 added-1 removed
17 unmodified lines18 few little helpers that make working with forms and Flask more19 fun. You can get it from `PyPI20 <https://pypi.python.org/pypi/Flask-WTF>`_.21 22-.. _Flask-WTF: http://pythonhosted.org/Flask-WTF/22+.. _Flask-WTF: https://flask-wtf.readthedocs.io/en/stable/23 24 The Forms25 ---------26 100 unmodified linesmodified:docs/tutorial/introduction.rst+1 added-1 removed
29 unmodified lines30 :alt: screenshot of the final application31 32 Continue with :ref:`tutorial-folders`.33 34-.. _SQLAlchemy: http://www.sqlalchemy.org/34+.. _SQLAlchemy: https://www.sqlalchemy.org/modified:docs/conf.py+1 added-1 removed
258 unmodified lines259 'python': ('https://docs.python.org/3/', None),260 'werkzeug': ('http://werkzeug.pocoo.org/docs/', None),261 'click': ('http://click.pocoo.org/', None),262 'jinja': ('http://jinja.pocoo.org/docs/', None),263- 'sqlalchemy': ('http://docs.sqlalchemy.org/en/latest/', None),263+ 'sqlalchemy': ('https://docs.sqlalchemy.org/en/latest/', None),264 'wtforms': ('https://wtforms.readthedocs.io/en/latest/', None),265 'blinker': ('https://pythonhosted.org/blinker/', None)266 }267 35 unmodified linesmodified:docs/errorhandling.rst+2 added-2 removed
32 unmodified lines33 34 Sending error mails, even if just for critical ones, can become35 overwhelming if enough users are hitting the error and log files are36 typically never looked at. This is why we recommend using `Sentry37-<http://www.getsentry.com/>`_ for dealing with application errors. It's37+<https://www.getsentry.com/>`_ for dealing with application errors. It's38 available as an Open Source project `on GitHub39 <https://github.com/getsentry/sentry>`__ and is also available as a `hosted version40 <https://getsentry.com/signup/>`_ which you can try for free. Sentry41 aggregates duplicate errors, captures the full stack trace and local46 unmodified lines88 89 @app.errorhandler(werkzeug.exceptions.BadRequest)90 def handle_bad_request(e):91 return 'bad request!'92- 92+93 app.register_error_handler(400, lambda e: 'bad request!')94 95 Those two ways are equivalent, but the first one is more clear and leaves96 you with a function to call on your whim (and in tests). Note that298 unmodified linesmodified:docs/extensiondev.rst+1 added-1 removed
403 unmodified lines404 schema. The ``flask.ext.foo`` compatibility alias is still in Flask 0.11 but is405 now deprecated -- you should use ``flask_foo``.406 407 408-.. _OAuth extension: http://pythonhosted.org/Flask-OAuth/408+.. _OAuth extension: https://pythonhosted.org/Flask-OAuth/409 .. _mailinglist: http://flask.pocoo.org/mailinglist/410 .. _IRC channel: http://flask.pocoo.org/community/irc/modified:docs/installation.rst+1 added-1 removed
110 unmodified lines111 it to operate on a git checkout. Either way, virtualenv is recommended.112 113 Get the git checkout in a new virtualenv and run in development mode::114 115- $ git clone http://github.com/pallets/flask.git115+ $ git clone https://github.com/pallets/flask.git116 Initialized empty Git repository in ~/dev/flask/.git/117 $ cd flask118 $ virtualenv venv119 New python executable in venv/bin/python46 unmodified linesmodified:docs/quickstart.rst+4 added-4 removed
100 unmodified lines101 102 Invalid Import Name103 ```````````````````104 105-The ``FLASK_APP`` environment variable is the name of the module to import at 106-:command:`flask run`. In case that module is incorrectly named you will get an 107-import error upon start (or if debug is enabled when you navigate to the 105+The ``FLASK_APP`` environment variable is the name of the module to import at106+:command:`flask run`. In case that module is incorrectly named you will get an107+import error upon start (or if debug is enabled when you navigate to the108 application). It will tell you what it tried to import and why it failed.109 110 The most common reason is a typo or because you did not actually create an111 ``app`` object.254 unmodified lines366 HTTP has become quite popular lately and browsers are no longer the only367 clients that are using HTTP. For instance, many revision control systems368 use it.369 370-.. _HTTP RFC: http://www.ietf.org/rfc/rfc2068.txt370+.. _HTTP RFC: https://www.ietf.org/rfc/rfc2068.txt371 372 Static Files373 ------------374 519 unmodified linesmodified:docs/security.rst+1 added-1 removed
13 unmodified lines14 it JavaScript) into the context of a website. To remedy this, developers15 have to properly escape text so that it cannot include arbitrary HTML16 tags. For more information on that have a look at the Wikipedia article17 on `Cross-Site Scripting18-<http://en.wikipedia.org/wiki/Cross-site_scripting>`_.18+<https://en.wikipedia.org/wiki/Cross-site_scripting>`_.19 20 Flask configures Jinja2 to automatically escape all values unless21 explicitly told otherwise. This should rule out all XSS problems caused22 in templates, but there are still other places where you have to be84 unmodified linesmodified:docs/upgrading.rst+1 added-1 removed
141 unmodified lines142 when there is no request context yet but an application context. The old143 ``flask.Flask.request_globals_class`` attribute was renamed to144 :attr:`flask.Flask.app_ctx_globals_class`.145 146-.. _Flask-OldSessions: http://pythonhosted.org/Flask-OldSessions/146+.. _Flask-OldSessions: https://pythonhosted.org/Flask-OldSessions/147 148 Version 0.9149 -----------150 322 unmodified linesmodified:examples/minitwit/minitwit/minitwit.py+1 added-1 removed
83 unmodified lines84 85 86 def gravatar_url(email, size=80):87 """Return the gravatar image for the given email address."""88- return 'http://www.gravatar.com/avatar/%s?d=identicon&s=%d' % \88+ return 'https://www.gravatar.com/avatar/%s?d=identicon&s=%d' % \89 (md5(email.strip().lower().encode('utf-8')).hexdigest(), size)90 91 92 @app.before_request164 unmodified linesmodified:CONTRIBUTING.rst+1 added-1 removed
26 unmodified lines27 - Include tests if your patch is supposed to solve a bug, and explain28 clearly under which circumstances the bug happens. Make sure the test fails29 without your patch.30 31-- Try to follow `PEP8 <http://legacy.python.org/dev/peps/pep-0008/>`_, but you31+- Try to follow `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_, but you32 may ignore the line-length-limit if following it would make the code uglier.33 34 35 Running the testsuite79 unmodified linesmodified:setup.py+2 added-2 removed
39 unmodified lines40 41 * `website <http://flask.pocoo.org/>`_42 * `documentation <http://flask.pocoo.org/docs/>`_43 * `development version44- <http://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_44+ <https://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_45 46 """47 import re48 import ast9 unmodified lines58 59 setup(60 name='Flask',61 version=version,62- url='http://github.com/pallets/flask/',62+ url='https://github.com/pallets/flask/',63 license='BSD',64 author='Armin Ronacher',65 author_email='armin.ronacher@active-4.com',66 description='A microframework based on Werkzeug, Jinja2 '34 unmodified lines