Skip to main content

Giant Redirect Import

A re-usable package which can be used in any project that requires a Redirect import via a CSV file.

This will include a basic form to upload a CSV file in the standard Redirect app supplied via django.

Installation

To install with the package manager, run:

$ poetry add giant-redirect-import

You should then add "giant_redirect_import" to the INSTALLED_APPS in your settings file, this MUST be directly above django.contrib.redirects.

In base.py there should also be a REDIRECT_IMPORT_DEFAULT_SITE_ID.

Configuration

This application exposes the following settings:

  • REDIRECT_IMPORT_DEFAULT_SITE_ID is the default site id used when importing and creating the redirects, this is usually the same as the SITE_ID.

Preparing for release

In order to prep the package for a new release on TestPyPi and PyPi there is one key thing that you need to do. You need to update the version number in the pyproject.toml. This is so that the package can be published without running into version number conflicts. The version numbering must also follow the Semantic Version rules which can be found here https://semver.org/.

Publishing

Publishing a package with poetry is incredibly easy. Once you have checked that the version number has been updated (not the same as a previous version) then you only need to run two commands.

$ `poetry build` 

will package the project up for you into a way that can be published.

$ `poetry publish`

will publish the package to PyPi. You will need to enter the username and password for the account which can be found in the company password manager

Local setup

From root directory run:

1. $ `poetry shell`
2. $ `poetry install`
3. $ `export DJANGO_SETTINGS_MODULE=example_project.settings`

Then cd into example_project

$ ` django-admin runserver`

Metadata

Release files for giant-redirect-import 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for giant-redirect-import 1.2
File Size Uploaded Provenance Actions
giant_redirect_import-1.2.tar.gz 4.0 kB Without provenance Details for giant_redirect_import-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for giant-redirect-import 1.2
File Interpreter ABI Platform Actions
giant_redirect_import-1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for giant_redirect_import-1.2-py2.py3-none-any.whl

Total release size: 9.9 kB

Release files / giant_redirect_import-1.2.tar.gz

Download URL giant_redirect_import-1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
68ba5dce9f64e432a1e218bcf7a909dcfd3b76c64c6e95cf02ed6432db0c904f
BLAKE2b-256 checksum
How to use checksums
c9ae0b754b07ca76e566daa58573b62cbe7236267d7c78fe8c85b8c94252fca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.7.2 Linux/6.8.0-78-generic

Release files / giant_redirect_import-1.2-py2.py3-none-any.whl

Download URL giant_redirect_import-1.2-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c5c9cc1739fa100a729a3714362ba161c71b709ff6412042111f492dcaec62ef
BLAKE2b-256 checksum
How to use checksums
c55ff5ea8a000e6b94e4a589c734713dccd9fdd4cdec4852725c402e0007dd9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.7.2 Linux/6.8.0-78-generic

Security for giant-redirect-import 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page