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.git
Go to the project directory
cd project
Install dependencies
pip install -r Requirements/local.txt
Create superuser
python manage.py createsuperuser
Start the server
python manage.py runserver
Login 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