Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 2.05 KB

README.md

File metadata and controls

74 lines (49 loc) · 2.05 KB

User Agent Middleware

A django middleware that captures user request data and extracts the HTTP_USER_AGENT from the request meta data.
MIT License Build Status

This is a demo on how to great a custom middleware in django.

Usage example

img.png

Run Locally

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

Release History

  • 0.0.1

Contributing

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

🔗 Links

portfolio linkedin twitter