Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding smart watch flavour ? #65

Closed
sunjoomoon opened this issue Mar 20, 2016 · 4 comments
Closed

Adding smart watch flavour ? #65

sunjoomoon opened this issue Mar 20, 2016 · 4 comments

Comments

@sunjoomoon
Copy link

I am trying out things and wondered how I can add another flavour, from the doc it seems it could be implemented rather easy. Any clue as to how I could do this?

@gregmuellegger
Copy link
Owner

What have you tried so far?

I think it's just adding another name to the FLAVOURS setting:

# in settings.py
FLAVOURS = ('full', 'mobile', 'tablet')

@sunjoomoon
Copy link
Author

Hmm, just like that? I am all lost.

@prokaktus
Copy link
Contributor

@sunjoomoon look at the example for tablet detection https://github.com/gregmuellegger/django-mobile/blob/master/examples/middleware.py

You should investigate how to detect smart watch browsers (by user-agent or another header), write custom rule and add new flavour to FLAVOURS setting.

@sunjoomoon
Copy link
Author

Thanks, sorry for long absence. Yes, now it makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants