Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.142.760 Times

django-versions 1.0.1

Company: Nowell Strite
Date Added: November 03, 2013  |  Visits: 403

django-versions

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



django-versions allows you to version the data stored in django models seamlessly. To get started all you need to do is to set VERSIONS_REPOSITORIES variable in your settings and configure the repositories you would like to use, then just subclass your Model from VersionsModel and start saving data:<br /><br />from django.db import models<br />from versions.models import VersionsModel<br /><br />class MyModel(VersionsModel):<br /> text = models.TextField()<br /><br />Installation<br />Dependencies<br /><br /> * Mercurial >= 1.5.2<br /> * Django == 1.1.X<br /><br />Installing django-versions<br /><br />If your are installing from source, you just need to run the following command from the base of the django-versions source tree:<br /><br />python setup.py install<br /><br />If you want to install the package without checking out the source you should run:<br /><br />pip install django-versions<br /><br /># OR if you don't have pip installed (you should definitely check out pip)<br />easy_install django-versions<br /><br />For the time being, we need to patch Django to allow us to gain access to the related model from Manager classes. There is a patch included at the root of the source tree django.patch that includes the required changes. To patch django, go to the root of your checkout of django 1.1.X and run:<br /><br />patch -p0 < /path/to/django-versions/django.patch<br /><br />Add VERSIONS_REPOSITORIES to your settings file, pointing to the location where you would like django-versions to create and store your model history:<br /><br />VERSIONS_REPOSITORIES = {<br /> 'default': {<br /> 'backend': 'versions.backends.hg',<br /> 'local': '/path/to/my/projects/model/history',<br /> }<br /> }<br /><br />Enabling Version Management<br /><br />Install the VersionsMiddleware:<br /><br />MIDDLEWARE_CLASSES = (<br /> ...<br /> 'versions.middleware.VersionsMiddleware',<br /> ...<br /> )<br /><br />Or handle enabling editing of Versioned models manually:<br /><br />from versions.base import revision<br /><br />@revision.commit_on_success<br />def my_editing_function(request):<br /> m = MyModel.objects.get(pk=1)<br /> m.save()<br /><br /><br />def my_other_editing_function(request):<br /> with revision:<br /> m = MyModel.objects.get(pk=1)<br /> m.save()<br /><br />#md5=f4be9b84a483e4e9d820dda53ae9ffdc

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Create Django Djangoversions Import Install Location Model Models Mymodelobjectsgetpk Patch Pathtodjangoversionsdjangopatchadd Pointing Settings Source Store Versions Repositories
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


DJANGO-VERSIONS RELATED
Network & Internet  -  django-immutablefield 0.1.1
django-immutablefield is inspired by a Google search that didn't turn up a reusable solution for making fields immutable inside of a Django model. Installing One of the following: Via the ole' standby:
10.24 KB  
Specialized Tools  -  django-generic-flatblocks 0.3.0
django-generic-flatblocks is a Django plugin that solves this problem as it knows nothing about the content itself. You attach your hand made content node (a simple model) where you can define any fields you want. Installation
10.24 KB  
Network & Internet  -  django-smart-slug 0.1.0
There are exhausting examples in the tests, but here's the quick rundown: from django.db import models from smart_slug.fields import SmartSlugField class Simple(models.Model): slug = SmartSlugField(max_length=5,...
10.24 KB  
Network & Internet  -  django-contenteditable 0.1
With django-contenteditable you can easily create Django apps that use the powerful HTML contenteditable attribute. Contenteditable is supported by all non-mobile browsers, including Internet Explorer (see...
10.24 KB  
Home & Leisure  -  RRTrains 2000 2.7
RRTrains 2000 is a small program used to create a detailed inventory of your model railroad collection. RRTrains 2000 will record information about each locomotive and piece of rolling stock in your collection. Along with catalog and model...
460.8 KB  
Text Chat Clients  -  Jarl 0.5001
Jarl is a Perl/Tk Client. It strives to provide full functionality with every aspect of the Jabber IM system. It currently supoprts messaging, chat, groupchat, ICQ, AIM, and IRC support. This package includes also the perlo modules required for...
184.32 KB  
File Sharing  -  NetGyver Express 1.0.0.220
Just explore & organize your local & remote files from anywhere. Share your personal files reliably & securely. Listen & watch any media file (streaming). Finally, join or create chat rooms, import your contacts, meet new people. File...
695.21 KB  
Communication Tools  -  iPhone Configuration Utility 3.4.0.283
iPhone Configuration Utility (iPCU) lets you easily create, maintain, encrypt, and install configuration profiles, track and install provisioning profiles and authorized applications, and capture device information including console logs....
31.7 MB  
Science  -  3D HIV 0.6
A project to create an interactive, scientifically-accurate 3D model of the HIV virus. Particularly intended for use in education.
72.29 KB  
ActiveX Components  -  Add-in Express Toys™ .NET
How to create dot NET Word COM add-in: VB .NET, C#, C++ samples with source code. Add-in Express Toys dotNET is a free Word COM add-in / plug-in that adds several useful features to MS Word. This sample add-in is based on Add-in Express .NET...
600 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, NETWORK & INTERNET
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
Network & Internet  -  SQL Inject Me 0.4.5
SQL Inject Me is a Firefox extension used to test for SQL Injection vulnerabilities. The tool works by submitting your HTML forms and substituting the form value with strings that are representative of an SQL Injection attack.
133.12 KB