Datasette plugin that redirects all non-https requests to https
Project description
datasette-redirect-to-https
Datasette plugin that redirects all non-https requests to https
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-redirect-to-https
Usage
Once installed, incoming GET requests to the http://
protocol will be 301 redirected to the https://
equivalent page.
HTTP verbs other than GET will get a 405 Method Not Allowed HTTP error.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-redirect-to-https
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for datasette-redirect-to-https-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8ac5a5020fac9c901af36e5d49127d316818974fc03d73c00c332229fd73946 |
|
MD5 | 80d728542c9433a23ac8eae52affd6a5 |
|
BLAKE2b-256 | b525f40183342b13c025ecc9da70b9ec6cff06ab2924525499242dcaeda1c5a0 |
Close
Hashes for datasette_redirect_to_https-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0fc82433edfa7ca521be42a62c6216af739183d17b00e02c97e1fd80dadc0ff |
|
MD5 | be992ffb8987bbe9b062446d8b8c1521 |
|
BLAKE2b-256 | 548197b0546d126631c96980bd9f468b40dbb637e58d60d02f02b16ce8a46d21 |