Skip to content
This repository has been archived by the owner on May 6, 2019. It is now read-only.

oscaro/django-oscar-impersonate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-oscar-impersonate

Info

Wrapper of django-impersonate for django-oscar

Version

0.1.3

Author

Nicolas Dubois <nicolas.dubois@oscaro.com>

Dependencies

  • It was written for Python 3.3+ and Django 1.6+

- It depends on your project using the django.contrib.session framework (requirement from django-impersonate)

Installation

$ pip install django-oscar-impersonate

Use

django-oscar-impersonate relies on django-impersonate` (which is installed ) #. Addimpersonateto yourINSTALLED_APPS.. code:: python INSTALLED_APPS = ( # … 'impersonate', ) #. Adddjango-oscar-impersonatemiddleware .. code:: python MIDDLEWARE_CLASSES = ( # … 'oscar_impersonate.middleware.OscarImpersonateMiddleware', ) #. Adddjango-impersonateURLs .. code:: python urlpatterns = patterns('', # … url(r'^impersonate/', include('impersonate.urls')), # … ) #. AddOSCAR_IMPERSONATE_TEMPLATE_DIRStoTEMPLATE_DIRS, before Oscar's .. code:: python from oscar import OSCAR_MAIN_TEMPLATE_DIR from oscar_impersonate import OSCAR_IMPERSONATE_TEMPLATE_DIR TEMPLATE_DIRS = ( # … OSCAR_IMPERSONATE_TEMPLATE_DIR, OSCAR_MAIN_TEMPLATE_DIR, ) Functionality and custom settings ================================= Dashboard ---------django-oscar-impersonateadds a “Log as” button on customers' dashboard: .. image:: docs/_static/images/screenshot-dashboard-customer-list.png :alt: Customer dashboard with “Log as” button When a staff member impersonates a customer, a button appears to stop impersonation. .. image:: docs/_static/images/screenshot-dashboard-customer-list-impersonation.png :alt: Customer dashboard with ”Stop impersonation button Toolbar ------- When a staff member impersonates a customer, a small toolbar appears at the top to display who is impersonated .. image:: docs/_static/images/screenshot-sandbox-homepage-impersonation.png :alt: Homepage from Oscar sandbox Other ----- For other features and custom settings, please checkdjango-impersonate``'s docs.

License

BSD License

About

Wrapper of django-impersonate for django-oscar

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages