3top / django-colors Goto Github PK
View Code? Open in Web Editor NEWThis project forked from markijbema/django-colors
Fork of http://code.google.com/p/django-colors/
Home Page: http://code.google.com/p/django-colors/
License: MIT License
This project forked from markijbema/django-colors
Fork of http://code.google.com/p/django-colors/
Home Page: http://code.google.com/p/django-colors/
License: MIT License
Django Colors ============= Author: Maxime Haineault ([email protected]) http://motion-m.ca/projets/django-colors/ http://code.google.com/p/django-colors/ Introduction ============ Django colors is a small django app that we created to make our life easier while designing websites with the Django framework. The app consist of a set of template filters which can manipulate hexadecimal colors. For example, you can easily increase or decrease the lightness or the saturation of a color: Template usage example ---------------------- {% load colors %} <b style="background:#00ffff;">Lorem</b> <b style="background:#{{ "00ffff"|lightness:"40" }};">Ipsum</b> <b style="background:{{ "0ff"|opposite|hex_to_rgb:"rgb(%d,%d,%d)" }};"> Dolor</b> {# Rendered #} <b style="background:#00ffff;">Lorem</b> <b style="background:#006666;">Ipsum</b> <b style="background:rgb(255, 0, 0);">Dolor</b> ColorField usage example ---------------------- from colors.fields import ColorField class Profile(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) bg_color = ColorField() Outside django admin, ensure include JQuery and colors app css and js. /static/colors/js/colorpicker.js /static/colors/css/colorpicker.css Installation ============ There is two ways to install this library. You can install it system wide or use it within your project. System wide installation ------------------------ sudo python setup.py install Local installation ------------------ Simply add the "colors" folder in your PYTHONPATH or copy it in your project folder. Django setup ============ 1 Add 'colors' to your INSTALLED_APPS in settings.py 2. In your template load it using {% load colors %} 3. That's it !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.