Skip to content
This repository has been archived by the owner on Oct 8, 2018. It is now read-only.

canonical-web-and-design/yaml-deleted-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

This module has been replaced by canonicalwebteam.yaml-responses. You should use that instead.


canonicalwebteam.yaml_deleted_paths

Serve 410s for deleted pages listed in a deleted.yaml file.

Usage

Create deleted.yaml similar to the following:

some/path: {"message": "This page is gone!"}
# etc.

And a 410.html template page:

<html><body><h1>Deleted</h1><p>{{ message }}</p></body></html>

And add the module to your Django app:

# urls.py
from canonicalwebteam import yaml_deleted_paths

urlpatterns = yaml_deleted_paths.create_views()
# ...

Now if you visit http://your-site/some/path you should see your 410 error page.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages