alphafilter Documentation

Size: px
Start display at page:

Download "alphafilter Documentation"

Transcription

1 alphafilter Documentation Release 0.6 coordt September 09, 2013

2

3 CONTENTS i

4 ii

5 alphafilter Documentation, Release 0.6 Contents: CONTENTS 1

6 alphafilter Documentation, Release CONTENTS

7 CHAPTER ONE INSTALLATION 1. The easiest method is to use pip or easy_install pip install django-alphafilter or easy_install django-alphafilter 2. If you download the source, you can install it by running the setup.py script: cd /path/to/django-alphafilter/ python setup.py install 3. Add alphafilter to your project s settings.py file, so Django will find the templates and template tag. 1.1 Dependencies None. 3

8 alphafilter Documentation, Release Chapter 1. Installation

9 CHAPTER TWO GETTING STARTED There are two ways to incorporate the alphabet filter into your project and applications. The first is modifying one or more application s ModelAdmin classes. The second is when you don t have control of the code and want to add the feature, such as to django.contrib.auth. Both methods require you to override the default admin template for that model or app. 2.1 Overriding the Admin Template In order to properly display the alphabet filter in the admin, the change_list.html template must be slightly changed. django-alphafilter includes a template the makes the proper changes. This template extends the default admin template, so using it must be done on an per-application or per-model basis. You can merge the default Django admin change_list.html template with django-alphafilter s changes to make a single template override. django-alphafilter doesn t do this so it can support multiple Django versions. Within your project s template directory, you need to create an admin directory, and a directory with the name of the application, and optionally the name of the model. For example, if you were adding the filter on the Tag model of an application named cooltags, the directory structure would look like: MyProject templates admin cooltags change_list.html tag change_list.html <-- For every model in the cooltags <-- For just the Tag model The change_list.html file simply needs to contain the line: {% extends "alphafilter/change_list.html" %} Note: You cannot place this template in the admin directory, as it leads to an infinite loop of inheritance. As mentioned above, you can create a new change_list.html template by copying the django.contrib.auth template and make the same adjustments as the django-alphafilter s template. 5

10 alphafilter Documentation, Release Altering Your Own Model Admin If you have control of the application s code, you can easily support django-alphafilter by adding an alphabet_filter attribute to your ModelAdmin class, like so: class TestNameAdmin(admin.ModelAdmin): model = TestName alphabet_filter = sorted_name The value of alphabet_filter is the name of the field to use for filtering. 2.3 Altering Another Application s Model Admin Sometimes you want to use the alphabet filter, but you don t want to modify someone else s code. A perfect example is django.contrib.auth. To enable the alphabet filter on the User model, you can add a configuration setting in your settings.py. The ALPHAFILTER_ADMIN_FIELDS setting is a dictionary in the form of { <appname>.<modelname> : <fieldname>, [... ] } For example: ALPHAFILTER_ADMIN_FIELDS = { auth.user : username, auth.group : name, } 6 Chapter 2. Getting Started

11 CHAPTER THREE THE DEFAULT ALPHABET django-alphafilter will always show the letters that are filterable based on data in the model, regardless of the language or encoding. It also displays, by default, the ASCII alphabet and digits as disabled characters. 3.1 Changing the Default Alphabet The configuration setting DEFAULT_ALPHABET can be a string, tuple, list or callable that returns a string, list or tuple. If you only what the ASCII characters, no digits: DEFAULT_ALPHABET = u ABCDEFGHIJKLMNOPQRSTUVWXYZ For the German alphabet: DEFAULT_ALPHABET = u A\xc4BCDEFGHIJKLMNO\xd6PQRS\xdfTU\xdcVWXYZ For the Icelandic alphabet: DEFAULT_ALPHABET = u A\xc1BD\xd0E\xc9FGHI\xcdJKLMNO\xd3PRSTU\xdaVXY\xdd\xde\xd6 To show nothing except the characters in the data: DEFAULT_ALPHABET = u Add DEFAULT_ALPHABET to the project s settings.py to for a global change. Add a DEFAULT_ALPHABET attribute on your model to change it on a model-by-model basis. 7

12 alphafilter Documentation, Release Chapter 3. The Default Alphabet

13 CHAPTER FOUR THE QS_ALPHABET_FILTER TEMPLATE TAG If you wanted to have an alphabet filter in a regular template, the qs_alphabet_filter template tag will generate this for you. 4.1 Requirements Make sure that Django s TEMPLATE_CONTEXT_PROCESSORS setting in your settings.py includes django.core.context_processors.request, which is not included by default. TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", "django.core.context_processors.request", ) Without this context processor, the template tag will have no idea which letter was clicked on and can t display the currently selected letter. 4.2 Usage Within your template, load the template tag library and use the qs_alphabet_filter tag, with at least two parameters: the variable containing the QuerySet and the name (or variable containing the name) of the field to apply the alphabet filter. {% load alphafilter %} {% qs_alphabet_filter objects last_name %} With two parameters, the default template alphafilter/alphabet.html is used to render the selection. You may pass a third parameter for your own template (but you can simply override the default). There are three other things that you may need: the alphabet filter template, CSS styles, and a view that returns a filtered QuerySet to display the results. Notice that the queryset passed to the templatetag will be used to generate the list of availabe letters, so it can t be the same as the one used to display the list of filtered objects. Take a look to example project s homepage.html template and the views in Alphafilter.views. 9

14 alphafilter Documentation, Release Alphabet Filter Template The template tag allows you to specify the template that is specifically rendered, alphafilter/alphabet.html and should fit most needs. For those of you who are more adventurous, the context of the template includes: but the default is choices A list of dictionaries containing all the choices to display. This will include all letters of the DEFAULT_ALPHABET setting as well as additional letters contained within the data, and an item to display all of the items. This list is sorted with the All item first, and the other items sorted in alphabetical order. Each list item dictionary contains: has_entries True if the letter has entries in the data set. link The HTML link for the choice, typically rendered as the href of an <a> tag. For example: <a href="{{ choice.link }}"> title The name of the letter, or (localizable) All active This letter is currently selected. The default template looks something like: {% if choices %} <ul class="alphabetfilter"> {% for choice in choices %} <li>{% if choice.has_entries %} <a href="{{ choice.link }}"> {% else %} <span class="inactive"> {% endif %} {% if choice.active %} <span class="selected"> {% endif %} {{ choice.title }} {% if choice.active %} </span> {% endif %} {% if choice.has_entries %} </a> {% else %} </span> {% endif %} </li> {% endfor %} </ul> <br class="clear" /> {% endif %} CSS Styles For convenience, a template is included for some basic CSS styling, simply include alphafilter/alphafilter_styles.html in the appropriate place in your template: <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>alphafilter Test</title> 10 Chapter 4. The qs_alphabet_filter Template Tag

15 alphafilter Documentation, Release 0.6 </head> {% include "alphafilter/alphafilter_styles.html" %} You can also override the template in your project by simply creating a file called alphafilter_styles.html within a directory named alphafilter inside your projects templates directory. The default styles are: <style type="text/css" media="screen"> ul.alphabetfilter { list-style: none; display: inline; } ul.alphabetfilter li { width: 0.7em; display: inline; }.inactive { color: #999; }.selected { color: red; } </style> The View Django AlphaFilter includes a generic view named alphafilter.views.alphafilter that is useful as an example, but might not be very useful for all situations. The view needs to do two things: look for the filter in request.getand add a filtered QuerySet in the context for rendering the template. The template can then iterate through the QuerySet to display the results. The example view accepts an HttpRequest, a QuerySet, and a template name. It finds the filter by looking for a key in the GET parameters containing istartswith, and uses that to filter the QuerySet. The filtered QuerySet is passed into the context as objects. def alphafilter(request, queryset, template): qs_filter = {} for key in request.get.keys(): if istartswith in key: qs_filter[str(key)] = request.get[key] break return render_to_response( template, { objects : queryset.filter(**qs_filter), unfiltered_objects : queryset}, context_instance=requestcontext(request) ) 4.2. Usage 11

16 alphafilter Documentation, Release Chapter 4. The qs_alphabet_filter Template Tag

17 CHAPTER FIVE REFERENCE 5.1 Settings DEFAULT_ALPHABET This setting is used to display characters in the admin interface no matter what the data may contain. Characters are always displayed if they are in the data, but not in the DEFAULT_ALPHABET. The DEFAULT_ALPHABET can be a string, list of strings, a tuple of strings, or a callable (a function or class instance with a call method) that returns one of the previous types. DEFAULT_ALPHABET defaults to the string.ascii_uppercase + string.digits. Globally change this value by setting it in your settings.py file, or change it on a single model by setting it in the model s ModelAdmin ALPHAFILTER_ADMIN_FIELDS The ALPHAFILTER_ADMIN_FIELDS setting is a dictionary in the form of { <appname>.<modelname> : <fieldname>, [... ] } For example: ALPHAFILTER_ADMIN_FIELDS = { auth.user : username, auth.group : name, } 13

18 alphafilter Documentation, Release Chapter 5. Reference

19 CHAPTER SIX INDICES AND TABLES genindex modindex search 15

django simple pagination Documentation

django simple pagination Documentation django simple pagination Documentation Release 1.1.5 Micro Pyramid Nov 08, 2017 Contents 1 Getting started 3 1.1 Requirements............................................... 3 1.2 Installation................................................

More information

Djam Documentation. Release Participatory Culture Foundation

Djam Documentation. Release Participatory Culture Foundation Djam Documentation Release 0.1.0 Participatory Culture Foundation December 24, 2013 Contents 1 Links 3 2 Getting Started 5 2.1 Quick Start................................................ 5 2.2 Extending

More information

Bricks Documentation. Release 1.0. Germano Guerrini

Bricks Documentation. Release 1.0. Germano Guerrini Bricks Documentation Release 1.0 Germano Guerrini January 27, 2015 Contents 1 Requirements 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2 Basic Usage...............................................

More information

Django Admin Sortable Documentation

Django Admin Sortable Documentation Django Admin Sortable Documentation Release 1.7.0 Brandon Taylor September 28, 2016 Contents 1 Supported Django Versions 3 1.1 Django 1.4.x............................................... 3 1.2 Django

More information

Django Phantom Theme Documentation

Django Phantom Theme Documentation Django Phantom Theme Documentation Release 1.1 Przemyslaw bespider Pajak for EggForSale Sep 28, 2017 Contents 1 Features 3 2 Authors and Contributors 5 3 Licence 7 4 Support or Contact 9 5 Instalation

More information

MIT AITI Python Software Development Lab DJ1:

MIT AITI Python Software Development Lab DJ1: MIT AITI Python Software Development Lab DJ1: This lab will help you get Django installed and write your first application. 1 Each person in your group must complete this lab and have it checked off. Make

More information

django-dajaxice Documentation

django-dajaxice Documentation django-dajaxice Documentation Release 0.7 Jorge Bastida Nov 17, 2017 Contents 1 Documentation 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

django-sekizai Documentation

django-sekizai Documentation django-sekizai Documentation Release 0.6.1 Jonas Obrist September 23, 2016 Contents 1 About 3 2 Dependencies 5 3 Usage 7 3.1 Configuration............................................... 7 3.2 Template

More information

Django EL(Endless) Pagination Documentation

Django EL(Endless) Pagination Documentation Django EL(Endless) Pagination Documentation Release 2.1.0 Oleksandr Shtalinberg and Francesco Banconi December 07, 2015 Contents 1 Changelog 3 1.1 Version 2.1.0...............................................

More information

Django-CSP Documentation

Django-CSP Documentation Django-CSP Documentation Release 3.0 James Socol, Mozilla September 06, 2016 Contents 1 Installing django-csp 3 2 Configuring django-csp 5 2.1 Policy Settings..............................................

More information

django-intercom Documentation

django-intercom Documentation django-intercom Documentation Release 0.0.12 Ken Cochrane February 01, 2016 Contents 1 Installation 3 2 Usage 5 3 Enable Secure Mode 7 4 Intercom Inbox 9 5 Custom Data 11 6 Settings 13 6.1 INTERCOM_APPID...........................................

More information

TailorDev Contact Documentation

TailorDev Contact Documentation TailorDev Contact Documentation Release 0.3 Julien Maupetit November 06, 2013 Contents 1 Django TailorDev Contact 3 1.1 Dependencies............................................... 3 1.2 Installation................................................

More information

fragapy Documentation

fragapy Documentation fragapy Documentation Release 1.0 2011, Fragaria, s.r.o November 09, 2011 CONTENTS 1 Adminhelp 3 2 Amazon 5 2.1 AWS branded scripts........................................... 5 2.2 SES SMTP relay.............................................

More information

django-avatar Documentation

django-avatar Documentation django-avatar Documentation Release 2.0 django-avatar developers Oct 04, 2018 Contents 1 Installation 3 2 Usage 5 3 Template tags and filter 7 4 Global Settings 9 5 Management Commands 11 i ii django-avatar

More information

django-messages Documentation

django-messages Documentation django-messages Documentation Release 0.5.0 Arne Brodowski Nov 18, 2017 Contents 1 Contents 3 1.1 Installing django-messages........................................ 3 1.2 Using django-messages.........................................

More information

Django-frontend-notification Documentation

Django-frontend-notification Documentation Django-frontend-notification Documentation Release 0.2.0 Arezqui Belaid February 25, 2016 Contents 1 Introduction 3 1.1 Overview................................................. 3 1.2 Documentation..............................................

More information

django-renderit Documentation

django-renderit Documentation django-renderit Documentation Release 1.2 jsoares Nov 20, 2017 Contents 1 Installation 3 2 Getting Started 5 2.1 Basic Usage............................................... 5 2.2 Extra Arguments.............................................

More information

django-gollum Documentation

django-gollum Documentation django-gollum Documentation Release 1.0.0 Luke Sneeringer December 11, 2016 Contents 1 Installation 3 2 Dependencies 5 3 Getting Started 7 4 Getting Help 9 5 License 11 6 Index 13 6.1 Using django-gollum...........................................

More information

django-baton Documentation

django-baton Documentation django-baton Documentation Release 1.3.1 abidibo Nov 05, 2018 Contents 1 Features 3 2 Getting started 5 2.1 Installation................................................ 5 2.2 Configuration...............................................

More information

django-avatar Documentation

django-avatar Documentation django-avatar Documentation Release 2.0 django-avatar developers Sep 27, 2017 Contents 1 Installation 3 2 Usage 5 3 Template tags and filter 7 4 Global Settings 9 5 Management Commands 11 i ii django-avatar

More information

MapEntity Documentation

MapEntity Documentation MapEntity Documentation Release 0.1.0 Makina Corpus Jun 11, 2018 Contents 1 Installation 3 1.1 Quickstart................................................ 3 1.2 Manual installation With a PostGIS database..............................

More information

Python Schema Generator Documentation

Python Schema Generator Documentation Python Schema Generator Documentation Release 1.0.0 Peter Demin June 26, 2016 Contents 1 Mutant - Python code generator 3 1.1 Project Status............................................... 3 1.2 Design..................................................

More information

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space. HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information

More information

django-ad-code Documentation

django-ad-code Documentation django-ad-code Documentation Release 1.0.0 Mark Lavin Apr 21, 2018 Contents 1 Installation 3 2 Documentation 5 3 License 7 4 Contributing 9 5 Contents 11 5.1 Getting Started..............................................

More information

Building a Django Twilio Programmable Chat Application

Building a Django Twilio Programmable Chat Application Building a Django Twilio Programmable Chat Application twilio.com/blog/08/0/python-django-twilio-programmable-chat-application.html March 7, 08 As a developer, I ve always wanted to include chat capabilities

More information

django-baton Documentation

django-baton Documentation django-baton Documentation Release 1.0.7 abidibo Nov 13, 2017 Contents 1 Features 3 2 Getting started 5 2.1 Installation................................................ 5 2.2 Configuration...............................................

More information

django-facetools Documentation

django-facetools Documentation django-facetools Documentation Release 0.2.0 Eric Palakovich Carr April 04, 2013 CONTENTS 1 Introduction 1 2 Table of Contents 3 2.1 Installing Django Facetools.......................................

More information

kiss.py Documentation

kiss.py Documentation kiss.py Documentation Release 0.3.3 Stanislav Feldman January 15, 2015 Contents 1 Contents 3 1.1 Overview................................................. 3 1.2 Installation................................................

More information

Django with Python Course Catalog

Django with Python Course Catalog Django with Python Course Catalog Enhance Your Contribution to the Business, Earn Industry-recognized Accreditations, and Develop Skills that Help You Advance in Your Career March 2018 www.iotintercon.com

More information

yawrap Documentation Release Michal Kaczmarczyk

yawrap Documentation Release Michal Kaczmarczyk yawrap Documentation Release 0.4.0 Michal Kaczmarczyk Jul 12, 2018 Contents 1 Features 3 2 Usage Examples 5 3 Contents 11 4 Indices and tables 19 i ii Yawrap is a powerful, lightweight, pythonic pseudo-static

More information

django-inplaceedit Documentation

django-inplaceedit Documentation django-inplaceedit Documentation Release 1.2.0 Pablo Martín September 17, 2013 CONTENTS i ii CHAPTER ONE GETTING STARTED 1.1 Information Inplace Edit Form is a Django application that allows you to inline

More information

wagtailmenus Documentation

wagtailmenus Documentation wagtailmenus Documentation Release 2.12 Andy Babic Nov 17, 2018 Contents 1 Full index 3 1.1 Overview and key concepts....................................... 3 1.1.1 Better control over top-level menu

More information

In the early days of the Web, designers just had the original 91 HTML tags to work with.

In the early days of the Web, designers just had the original 91 HTML tags to work with. Web Design Lesson 4 Cascading Style Sheets In the early days of the Web, designers just had the original 91 HTML tags to work with. Using HTML, they could make headings, paragraphs, and basic text formatting,

More information

django-osm-field Release 0.3.1

django-osm-field Release 0.3.1 django-osm-field Release 0.3.1 Oct 04, 2017 Contents 1 Installation 3 2 Usage 5 3 History 9 4 References 11 5 Indices and tables 15 Python Module Index 17 i ii Contents: Contents 1 2 Contents CHAPTER

More information

Django Forme Documentation

Django Forme Documentation Django Forme Documentation Release 0.1.dev Tomáš Ehrlich Sep 27, 2017 Contents 1 Tutorial 3 1.1 Getting started.............................................. 3 1.2 Basic example..............................................

More information

Django AdminLTE 2 Documentation

Django AdminLTE 2 Documentation Django AdminLTE 2 Documentation Release 0.1 Adam Charnock Jul 02, 2018 Contents 1 Contents 3 1.1 Quickstart................................................ 3 1.2 Templates & Blocks Reference.....................................

More information

Easy-select2 Documentation

Easy-select2 Documentation Easy-select2 Documentation Release 1.2.2 Lobanov Stanislav aka asyncee September 15, 2014 Contents 1 Installation 3 2 Quickstart 5 3 Configuration 7 4 Usage 9 5 Reference 11 5.1 Widgets..................................................

More information

micawber Documentation

micawber Documentation micawber Documentation Release 0.3.4 charles leifer Nov 29, 2017 Contents 1 examples 3 2 integration with web frameworks 5 2.1 Installation................................................ 5 2.2 Getting

More information

Django urls Django Girls Tutorial

Django urls Django Girls Tutorial Django urls Django Girls Tutorial about:reader?url=https://tutorial.djangogirls.org/en/django_urls/ 1 di 6 13/11/2017, 20:01 tutorial.djangogirls.org Django urls Django Girls Tutorial DjangoGirls 6-8 minuti

More information

django-scaffold Documentation

django-scaffold Documentation django-scaffold Documentation Release 1.1.1 James Stevenson May 27, 2015 Contents 1 Installation 3 2 Creating an app to extend scaffold 5 2.1 1. Create a new application........................................

More information

Using AJAX to Easily Integrate Rich Media Elements

Using AJAX to Easily Integrate Rich Media Elements 505 Using AJAX to Easily Integrate Rich Media Elements James Monroe Course Developer, WWW.eLearningGuild.com The Problem: How to string together several rich media elements (images, Flash movies, video,

More information

django-responsive2 Documentation

django-responsive2 Documentation django-responsive2 Documentation Release 0.1.3 Mishbah Razzaque Sep 27, 2017 Contents 1 django-responsive2 3 1.1 Why would you use django-responsive2?................................ 3 1.2 Using django-responsive2

More information

wagtailmenus Documentation

wagtailmenus Documentation wagtailmenus Documentation Release 2.11 Andy Babic Aug 02, 2018 Contents 1 Full index 3 1.1 Overview and key concepts....................................... 3 1.1.1 Better control over top-level menu

More information

django-amp-tools Documentation Release latest

django-amp-tools Documentation Release latest django-amp-tools Documentation Release latest February 07, 2017 Contents 1 Installation 3 2 Usage 5 2.1 Usage app................................................ 5 3 Contributing 9 4 Source code and contacts

More information

django-image-cropping Documentation

django-image-cropping Documentation django-image-cropping Documentation Release 1.1.0 Jonas und der Wolf Nov 06, 2017 Contents 1 Installation 3 2 Configuration 5 3 Admin Integration 7 4 Backends 9 5 Frontend 11 5.1 easy_thumbnails.............................................

More information

django-session-security Documentation

django-session-security Documentation django-session-security Documentation Release 2.5.1 James Pic Oct 27, 2017 Contents 1 Why not just set the session to expire after X minutes? 3 2 How does it work? 5 3 Requirements 7 4 Resources 9 4.1

More information

Django MFA Documentation

Django MFA Documentation Django MFA Documentation Release 1.0 Micro Pyramid Sep 20, 2018 Contents 1 Getting started 3 1.1 Requirements............................................... 3 1.2 Installation................................................

More information

Gargoyle Documentation

Gargoyle Documentation Gargoyle Documentation Release 0.11.0 DISQUS Aug 27, 2017 Contents 1 Installation 3 1.1 Enable Gargoyle............................................. 3 1.2 Nexus Frontend.............................................

More information

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application. Extra notes - Client-side Design and Development Dr Nick Hayward HTML - Basics A brief introduction to some of the basics of HTML. Contents Intro element add some metadata define a base address

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 1.1.2-stable Juda Kaleta Nov 10, 2017 Contents 1 Installation & Setup 3 1.1 Installation................................................ 3 1.2 Setup...................................................

More information

Creating Web Pages Using HTML

Creating Web Pages Using HTML Creating Web Pages Using HTML HTML Commands Commands are called tags Each tag is surrounded by Some tags need ending tags containing / Tags are not case sensitive, but for future compatibility, use

More information

django-model-report Documentation

django-model-report Documentation django-model-report Documentation Release 0.2.1 juanpex Nov 06, 2017 Contents 1 Demo 3 1.1 User Guide................................................ 3 1.2 Modules.................................................

More information

django-audiofield Documentation

django-audiofield Documentation django-audiofield Documentation Release 0.8.2 Arezqui Belaid Sep 27, 2017 Contents 1 Introduction 3 1.1 Overview................................................. 3 1.2 Usage...................................................

More information

CIS192 Python Programming

CIS192 Python Programming CIS192 Python Programming Web Servers and Web APIs Raymond Yin University of Pennsylvania November 12, 2015 Raymond Yin (University of Pennsylvania) CIS 192 November 12, 2015 1 / 23 Outline 1 Web Servers

More information

Django File Picker Documentation

Django File Picker Documentation Django File Picker Documentation Release 0.5 Caktus Consulting Group LLC Nov 06, 2017 Contents 1 Dependencies 3 1.1 Required................................................. 3 1.2 Optional.................................................

More information

Flask-MongoEngine Documentation

Flask-MongoEngine Documentation Flask-MongoEngine Documentation Release 0.9.5 Ross Lawley Feb 16, 2018 Contents 1 Installing Flask-MongoEngine 3 2 Configuration 5 3 Custom Queryset 7 4 MongoEngine and WTForms 9 4.1 Supported fields.............................................

More information

wagtailtrans Documentation

wagtailtrans Documentation wagtailtrans Documentation Release 0.1.0 LUKKIEN Jul 27, 2018 Contents 1 Table of contents 3 1.1 Getting started.............................................. 3 1.2 Migrate your existing Wagtail site....................................

More information

South Africa Templates.

South Africa Templates. South Africa 2013 Lecture 15: Django Database Intro + Templates http://aiti.mit.edu Database Interaction Managers Manager is a class It's the interface between the database and django Various methods,

More information

django-slim Documentation

django-slim Documentation django-slim Documentation Release 0.5 Artur Barseghyan December 24, 2013 Contents i ii django-slim Contents 1 2 Contents CHAPTER 1 Description Simple implementation of multi-lingual

More information

Django Deployment & Tips daybreaker

Django Deployment & Tips daybreaker Django Deployment & Tips 2010. 6. 7 daybreaker We have covered Django Basics Concept of MVC Templates Models Admin Sites Forms Users (authentication) Thanks to battery Today s Contents Deployment: mod_python

More information

Web Publishing Basics I

Web Publishing Basics I Web Publishing Basics I Jeff Pankin Information Services and Technology Contents Course Objectives... 2 Creating a Web Page with HTML... 3 What is Dreamweaver?... 3 What is HTML?... 3 What are the basic

More information

Django PAM Documentation

Django PAM Documentation Django PAM Documentation Release 1.4.1 Carl J. Nobile Aug 01, 2018 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Configuration...............................................

More information

Course Title: Python + Django for Web Application

Course Title: Python + Django for Web Application Course Title: Python + Django for Web Application Duration: 6 days Introduction This course offer Python + Django framework ( MTV ) training with hands on session using Eclipse+Pydev Environment. Python

More information

DJOAuth2 Documentation

DJOAuth2 Documentation DJOAuth2 Documentation Release 0.6.0 Peter Downs Sep 27, 2017 Contents 1 Important Links 1 2 What is DJOAuth2? 3 3 Why use DJOAuth2? 5 4 What is implemented? 7 5 Quickstart Guide 9 5.1 Requirements...............................................

More information

django-subdomains Documentation

django-subdomains Documentation django-subdomains Documentation Release 2.1.0 ted kaemming April 29, 2016 Contents 1 Installation 3 2 Quick Start 5 2.1 Example Configuration.......................................... 5 3 Basic Usage

More information

Pymixup Documentation

Pymixup Documentation Pymixup Documentation Release 1.0.2 Richard DeVost June 09, 2016 Contents 1 Why Obfuscate? 3 2 What pymixup Does 5 3 Contents 7 3.1 Installation................................................ 7 3.2 Program

More information

Django File Picker Documentation

Django File Picker Documentation Django File Picker Documentation Release 0.5 Caktus Consulting Group LLC Oct 31, 2017 Contents 1 Dependencies 3 1.1 Required................................................. 3 1.2 Optional.................................................

More information

Quick housekeeping Last Two Homeworks Extra Credit for demoing project prototypes Reminder about Project Deadlines/specifics Class on April 12th Resul

Quick housekeeping Last Two Homeworks Extra Credit for demoing project prototypes Reminder about Project Deadlines/specifics Class on April 12th Resul CIS192 Python Programming Web Frameworks and Web APIs Harry Smith University of Pennsylvania March 29, 2016 Harry Smith (University of Pennsylvania) CIS 192 March 29, 2016 1 / 25 Quick housekeeping Last

More information

Django starting guide

Django starting guide Django starting guide (and much more ) Alessandro Bucciarelli Outline Lesson 1 Intro to versioning systems (Git) Intro to Python and basic data structures Django Lesson 2 Interaction between Django and

More information

colab Documentation Release 2.0dev Sergio Oliveira

colab Documentation Release 2.0dev Sergio Oliveira colab Documentation Release 2.0dev Sergio Oliveira Sep 27, 2017 Contents 1 User Documentation 3 1.1 Getting Started.............................................. 3 1.2 Widgets..................................................

More information

Django: Views, Templates, and Sessions

Django: Views, Templates, and Sessions Django: Views, Templates, and Sessions CS 370 SE Practicum, Cengiz Günay (Some slides courtesy of Eugene Agichtein and the Internets) CS 370, Günay (Emory) Django Views/Templates Spring 2014 1 / 7 Agenda

More information

The Django Web Framework Part VI

The Django Web Framework Part VI The Django Web Framework Part VI Web Programming Course Fall 2013 Outline Session Framework User Authentication & Authorization in Django 2 Session Framework Session Framework lets you store and retrieve

More information

Django Leaflet Documentation

Django Leaflet Documentation Django Leaflet Documentation Release 0.20 Makina Corpus Oct 04, 2017 Contents 1 Installation 3 1.1 Configuration............................................... 3 1.2 Example.................................................

More information

Django Concurrency Documentation

Django Concurrency Documentation Django Concurrency Documentation Release 1.5.a20180306090556 Stefano Apostolico Mar 06, 2018 Contents 1 Overview 1 2 How it works 3 3 Table Of Contents 5 4 Links 25 i ii CHAPTER 1 Overview django-concurrency

More information

Module Contact: Dr Graeme Richards, CMP. Copyright of the University of East Anglia Version 1

Module Contact: Dr Graeme Richards, CMP. Copyright of the University of East Anglia Version 1 UNIVERSITY OF EAST ANGLIA School of Computing Sciences Main Series UG Examination 2015/16 WEB BASED PROGRAMMING CMP-4011A Time allowed: 2 hours Answer BOTH questions in Section A and TWO questions from

More information

Mutation Testing in Patterns Documentation

Mutation Testing in Patterns Documentation Mutation Testing in Patterns Documentation Release 1.0 Alexander Todorov Aug 18, 2016 Contents 1 Make sure your tools work 3 2 Make sure your tests work 5 3 Divide and conquer 7 4 Fail fast 9 5 Python:

More information

A designers guide to creating & editing templates in EzPz

A designers guide to creating & editing templates in EzPz A designers guide to creating & editing templates in EzPz Introduction...2 Getting started...2 Actions...2 File Upload...3 Tokens...3 Menu...3 Head Tokens...4 CSS and JavaScript included files...4 Page

More information

Lotus IT Hub. Module-1: Python Foundation (Mandatory)

Lotus IT Hub. Module-1: Python Foundation (Mandatory) Module-1: Python Foundation (Mandatory) What is Python and history of Python? Why Python and where to use it? Discussion about Python 2 and Python 3 Set up Python environment for development Demonstration

More information

django-revproxy Documentation

django-revproxy Documentation django-revproxy Documentation Release 0.9.14 Sergio Oliveira Jun 30, 2017 Contents 1 Features 3 2 Dependencies 5 3 Install 7 4 Contents: 9 4.1 Introduction...............................................

More information

This document provides a concise, introductory lesson in HTML formatting.

This document provides a concise, introductory lesson in HTML formatting. Tip Sheet This document provides a concise, introductory lesson in HTML formatting. Introduction to HTML In their simplest form, web pages contain plain text and formatting tags. The formatting tags are

More information

django-allauth-2fa Documentation

django-allauth-2fa Documentation django-allauth-2fa Documentation Release 0.4.3 Víðir Valberg Guðmundsson, Percipient Networks Apr 25, 2018 Contents: 1 Features 3 2 Compatibility 5 3 Contributing 7 3.1 Running tests...............................................

More information

Moving to a Sustainable Web Development Environment for Library Web Applications

Moving to a Sustainable Web Development Environment for Library Web Applications Portland State University PDXScholar Online Northwest Online Northwest 2010 Feb 5th, 9:00 AM - 11:00 AM Moving to a Sustainable Web Development Environment for Library Web Applications Anjanette Young

More information

HTML. Based mostly on

HTML. Based mostly on HTML Based mostly on www.w3schools.com What is HTML? The standard markup language for creating Web pages HTML stands for Hyper Text Markup Language HTML describes the structure of Web pages using markup

More information

A Sample Approach to your Project

A Sample Approach to your Project A Sample Approach to your Project An object-oriented interpreted programming language Python 3 :: Flask :: SQLite3 A micro web framework written in Python A public domain, barebones SQL database system

More information

Django Extra Views Documentation

Django Extra Views Documentation Django Extra Views Documentation Release 0.12.0 Andrew Ingram Nov 30, 2018 Contents 1 Features 3 2 Table of Contents 5 2.1 Getting Started.............................................. 5 2.2 Formset Views..............................................

More information

django-openid Documentation

django-openid Documentation django-openid Documentation Release 2.0a Simon Willison September 27, 2017 Contents 1 Installation 3 2 Accepting OpenID 5 2.1 Redirecting somewhere else....................................... 6 2.2 Requesting

More information

Lab 4 CSS CISC1600, Spring 2012

Lab 4 CSS CISC1600, Spring 2012 Lab 4 CSS CISC1600, Spring 2012 Part 1 Introduction 1.1 Cascading Style Sheets or CSS files provide a way to control the look and feel of your web page that is more convenient, more flexible and more comprehensive

More information

django-dynamic-db-router Documentation

django-dynamic-db-router Documentation django-dynamic-db-router Documentation Release 0.1.1 Erik Swanson August 24, 2016 Contents 1 Table of Contents 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

Django Part II SPARCS 11 undead. Greatly Inspired by SPARCS 10 hodduc

Django Part II SPARCS 11 undead. Greatly Inspired by SPARCS 10 hodduc Django Part II 2015-05-27 SPARCS 11 undead Greatly Inspired by SPARCS 10 hodduc Previously on Django Seminar Structure of Web Environment HTTP Requests and HTTP Responses Structure of a Django Project

More information

Html basics Course Outline

Html basics Course Outline Html basics Course Outline Description Learn the essential skills you will need to create your web pages with HTML. Topics include: adding text any hyperlinks, images and backgrounds, lists, tables, and

More information

Django Map Widgets Documentation

Django Map Widgets Documentation Django Map Widgets Documentation Release 0.1.8 Erdem Ozkol Mar 06, 2017 Contents 1 Achievements 3 1.1 Index................................................... 3 2 Indices and tables 11 i ii Configurable,

More information

HOW TO FLASK. And a very short intro to web development and databases

HOW TO FLASK. And a very short intro to web development and databases HOW TO FLASK And a very short intro to web development and databases FLASK Flask is a web application framework written in Python. Created by an international Python community called Pocco. Based on 2

More information

Using Dreamweaver CS6

Using Dreamweaver CS6 6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format our web site. Just

More information

Django REST Framework JSON API Documentation

Django REST Framework JSON API Documentation Django REST Framework JSON API Documentation Release 2.0.0-alpha.1 Jerel Unruh Jan 25, 2018 Contents 1 Getting Started 3 1.1 Requirements............................................... 4 1.2 Installation................................................

More information

CSE 115. Introduction to Computer Science I

CSE 115. Introduction to Computer Science I CSE 115 Introduction to Computer Science I Road map Review Limitations of front-end sites Web servers Examples Review

More information

Slightly more advanced HTML

Slightly more advanced HTML Slightly more advanced HTML div and span Whereas most HTML tags apply meaning (p makes a paragraph, h1 makes a heading, etc.), the span and div tags apply no meaning but are still very useful in conjunction

More information

django-mongonaut Documentation

django-mongonaut Documentation django-mongonaut Documentation Release 0.2.20 Daniel Greenfeld Sep 27, 2017 Contents 1 Installation 3 1.1 Normal Installation............................................ 3 1.2 Static Media Installation.........................................

More information

The Structure of the Web. Jim and Matthew

The Structure of the Web. Jim and Matthew The Structure of the Web Jim and Matthew Workshop Structure 1. 2. 3. 4. 5. 6. 7. What is a browser? HTML CSS Javascript LUNCH Clients and Servers (creating a live website) Build your Own Website Workshop

More information

CIS192 Python Programming

CIS192 Python Programming CIS192 Python Programming Web Servers and Web APIs Eric Kutschera University of Pennsylvania March 6, 2015 Eric Kutschera (University of Pennsylvania) CIS 192 March 6, 2015 1 / 22 Outline 1 Web Servers

More information

django-audit-log Documentation

django-audit-log Documentation django-audit-log Documentation Release 0.8.0 Vasil Vangelovski (Atomidata) Jul 21, 2017 Contents 1 Installation 3 2 Tracking Users that Created/Modified a Model 5 2.1 Tracking Who Created a Model.....................................

More information