Skip to content

A django middleware that captures user request data and extracts the HTTP_USER_AGENT from the request meta data

Notifications You must be signed in to change notification settings

salimdason/Django-Useragent-Middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A django middleware that captures user request data and extracts the HTTP_USER_AGENT from the request meta data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published