• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux django-sorting Download

django-sorting

August 20, 2009
This software offers sorting functionality to Ericflo's Django pagination. It makes displaying tabular data that can be paginated and sorted a breeze when used in combination with Ericflo's pagination.
Version 0.1
License BSD License
Platform Linux
Supported Languages English
Homepage github.com
Developed by directeur
Django-sorting is a helpful project that streamlines sorting and table header generation, all without the need to tinker with your views. To get started with this feature, there are five steps to follow that will help you set it up with your projects.

Firstly, you need to list this application in the "INSTALLED_APPS" part of your settings file. Your settings file should look similar to the following:

```
INSTALLED_APPS = (
# ...
'sorting',
)
```

Next, install the sorting middleware. Your settings file should include the following:

```
MIDDLEWARE_CLASSES = (
# ...
'sorting.middleware.SortingMiddleware',
)
```

If the request context processor hasn't already been added in your setup, you will need to add it explicitly. The context processors are usually set implicitly, but to set them explicitly, you need to copy and paste this code into your settings file below the value 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")
```

To load the sorting tags, you need to add this line at the beginning of your template:

```
{% load sorting_tags %}
```

Next, decide on a variable you would like to sort, and use the "autosort" tag on it before iterating over it. The code would look like this:

```
{% autosort object_list %}
```

Finally, if you want to display different headers with links to sort your objects_list, you will want to use the "th" tag. For example:

```
{% th first_name Name %}
{% th creation_date Creation %}
...

```

The first argument represents a field of the objects list, and the second one is the (optional) title that will be displayed. With this process complete, your headers should appear like this:

```
Name
Creation
...
```

Overall, django-sorting is an incredibly useful tool for simplifying sorting and table header generation, making it an ideal addition to any software project.
What's New

Version 0.1: N/A

Free Download 4K
330
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

gdcalc
gdcalc is a versatile calculator software designed for Unix and Linux users. ...
Joshua
This software provides a tool to control a stepper motor robot that ...
Dicole MimerDesk
MimerDesk by Dicole is a web-based collaborative tool designed for learning and ...
OpenX
OpenX is a potent ad serving software that provides control to publishers ...
Yet Another Object Request Broker
YAORB is a software that offers an implementation of CORBA ORB technology.
OpenQabal
OpenQabal is a decentralized social networking and collaboration suite that operates on ...
KernelDriver
KernelDriver is a toolkit designed for the development of Kernel drivers.
FetchMP3 Video to Audio Converter
FetchMP3 Video to Audio Converter is a Firefox add-on provided by FetchMP3, ...
Email::Valid
Validate internet email addresses with our software. Ensure accuracy and reduce bounce ...
mony
Mony is a flexible, fast, and scalable tool for monitoring ICMP.
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.