Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-staticfiles-google-code-prettify 1.0

    Download button

    No screenshots available
    Downloads: 77  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Scott Rubin | More programs
    The Apache License 2.0 / FREE
    September 12th, 2012, 05:15 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-staticfiles-google-code-prettify description

    Google Code Prettify staticfiles for django

    django-staticfiles-google-code-prettify is a Django app to easily include google-code-prettify in your Django apps.

    Installation

    Install this package using pip

     pip install django-staticfiles-google-code-prettify

    Make sure your django project is configured to use staticfiles, then add this to your INSTALLED_APPPS

     INSTALLED_APPS += ['django-staticfiles-google-code-prettify',]

    Usage

    You can use this in two different ways in your templates.

    STATIC_URL

     < link href="{{ STATIC_URL }}google-code-prettify/css/prettify.css" type="text/css" rel="stylesheet" / > < script type="text/javascript" src="{{ STATIC_URL }}google-code-prettify/js/prettify.js" >< /script >

    static template tag

     {% load static from staticfiles %} < link href="{% static "google-code-prettify/css/prettify.css" %}" type="text/css" rel="stylesheet" / > < script type="text/javascript" src="{% static "google-code-prettify/js/prettify.js" %}" >< /script >


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Google Code | prettify code | Django staticfiles | Django | Google | code

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM