A django middleware that captures user request data and extracts the HTTP_USER_AGENT from the request meta data.
![]()
This is a demo on how to great a custom middleware in django.
Clone the project
git clone https://github.com/salimdason/Django-Useragent-Middleware.gitGo to the project directory
cd projectInstall dependencies
pip install -r Requirements/local.txtCreate superuser
python manage.py createsuperuserStart the server
python manage.py runserverLogin to admin interface: localhost:8000/admin
- 0.0.1
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request

