An extension for Django admin that makes interface mobile friendly.
Project description
Description
django-flat-responsive is an extension for Django admin and django-flat-theme. This app adds CSS file which contains specific media queries for mobile devices, such as phones and tablets.
Installation
Install via pip: pip install django-flat-responsive
For Django 1.9+
Put flat_responsive app in your INSTALLED_APPS before django.contrib.admin:
INSTALLED_APPS = ( ... 'flat_responsive', 'django.contrib.admin', ... )
For older Django versions
If you use Django version older than 1.9 this app will work properly only in pair with django-flat-theme. Put flat_responsive app in your INSTALLED_APPS before flat:
INSTALLED_APPS = ( ... 'flat_responsive', 'flat', 'django.contrib.admin', ... )
Important note
⚠️ If you have your own custom base_site.html file, you need to add the following lines to it to make this app work:
{% load admin_static %} {% block blockbots %} {{ block.super }} <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"> <link rel="stylesheet" type="text/css" href="{% static 'admin/css/responsive.css' %}" /> {% endblock %}
Compatibility
Works in modern mobile browsers which support CSS Flexbox.
Testing
Tested with:
Guaranteed works in:
iOS Safari 7+
Android Browser 4.4+
Chrome for iOS 30+
Chrome for Android 30+
Firefox for iOS 5.0+
Firefox for Android 50+
Windows Phone IE Mobile 11+
If you found any issues or want this app to support other browser versions - please report here.
Screenshots
Login page
Dashboard
Calendar widget
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-flat-responsive-1.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8b9be3b5740aa6ea127390f136d9239a31816631bdbf230847301a7d734fc35 |
|
MD5 | 446dc01dc53e98aa78d77039a5d80182 |
|
BLAKE2b-256 | f05d90f06e5f2392488dada3882c3acd605b5d31a33092898a887f9ee6970cef |