Django HumansTXT will make it easy to you to serve humans.txt file.
Install django-humanstxt using pip (we do recommend to do it in a virtualenv).
pip install django-humanstxt
To integrate it into a Django project, simply add it to your INSTALLED_APPS
:
INSTALLED_APPS = [
# some interesting stuff...
'humanstxt',
# some other stuff...
]
urlpatterns = [
# ...
url(r'^humans\.txt', include('humanstxt.urls')),
# ...
]
python manage.py migrate
You're now ready to use the app.