A simple way to add robots.txt and humans.txt to your Django project
Project description
A simple way to add robots.txt and humans.txt to your Django project
Quickstart
Install django-cyborg:
pip install django-cyborg
Add cyborg your INSTALLED_APPS:
INSTALLED_APPS=[
...
'cyborg',
]
Add cyborg to your urls.py:
url(r'^', include('cyborg.urls')),
Customising
To add your own text to either robots.txt or humans.txt simply override the relevant template. Create a cyborg/robots.txt or a cyborg/humans.txt and place it somewhere that is discoverable by your template loader.
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r requirements/test.txt (myenv) $ python runtests.py
Credits
Tools used in rendering this package:
History
0.2.0 (2015-12-08)
First release on PyPI.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-cyborg-0.2.1.tar.gz.
File metadata
- Download URL: django-cyborg-0.2.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24aeee6bd086eee0f7e0c813a4af5dcac8a46756d828ebd6cf0f7953eeb84c27
|
|
| MD5 |
8ff355fae4d5ce8efe1c46f5c2ff0929
|
|
| BLAKE2b-256 |
68569cbc39c8707c9294d26ff205bb9e7ed5b28a6bc6d0d6fb6eb2f76705d890
|
File details
Details for the file django_cyborg-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: django_cyborg-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e387c3b9ac673fedec2ebd803e9d0e7c3ea7bc6dc2b864fd6c4015ac80e4dfd
|
|
| MD5 |
feb5cd830c99a78f5fcfa70544077b31
|
|
| BLAKE2b-256 |
c6de43a1c2926f7b9002eaff4ef58240b3c1d77e4bb7c1742ccefa98121fec31
|