Start downloading the install files from Oracle
Create a blank CentOs 6.5 instance
Convert to Oracle Linux: (source)
curl -O https://linux.oracle.com/switch/centos2ol.sh
sh centos2ol.sh
| from django.views.generic import ListView | |
| from django.views.generic.edit import FormMixin | |
| from django.db.models import Q | |
| class SearchView(FormMixin, ListView): | |
| template_name_suffix = '_search' | |
| filter_operator = 'contains' | |
| allow_or_operator = False | |
| def get_filter_operator(self): |
| ''' | |
| Cache the generic relation field of all the objects | |
| in the queryset, using larger bulk queries ahead of time. | |
| Improved from original by Daniel Roseman: | |
| http://blog.roseman.org.uk/2010/02/22/django-patterns-part-4-forwards-generic-relations/ | |
| and | |
| justinfx's gist cache_generics.py : |
| import concurrent.futures | |
| import muffin | |
| app = muffin.Application( | |
| 'process_executor' | |
| ) |
| import pip | |
| try: | |
| from setuptools import setup, find_packages | |
| except ImportError: | |
| from distutils.core import setup, find_packages | |
| links = [] # for repo urls (dependency_links) | |
| requires = [] # for package names |
| from django import forms | |
| from django.core.exceptions import ValidationError | |
| from .models import Foo | |
| class VersionNumberFormMixin(forms.Form): | |
| version_number = forms.IntegerField(min_value=0, widget=forms.HiddenInput) | |
| def __init__(self, *args, **kwargs): |
| # encoding: utf-8 | |
| from django.core.exceptions import ImproperlyConfigured | |
| from django.http import HttpResponseRedirect | |
| from django.utils.text import force_text | |
| from django.views.generic import View | |
| from django.views.generic.base import ContextMixin, TemplateResponseMixin | |
| class MultipleFormMixin(ContextMixin): | |
| """MultipleFormMixin -- Mixin that provides methods to show and handle |
| # encoding: utf-8 | |
| # Derived from Piotr Maliński's example with a few modifications to use logging and : | |
| # http://www.rkblog.rk.edu.pl/w/p/profiling-django-object-size-and-memory-usage-pympler/ | |
| from pympler import muppy | |
| from pympler.muppy import summary | |
| from pympler.asizeof import asizeof | |
| from django.conf import settings | |
| import logging |
| var app = angular.module('app',['ngCookies', 'ui.bootstrap'], | |
| // Change interpolation symbols | |
| function ($interpolateProvider) { | |
| $interpolateProvider.startSymbol('{$'); | |
| $interpolateProvider.endSymbol('$}'); | |
| }); | |
| app.config(['$httpProvider', function($httpProvider) { | |
| // Change content type for POST so Django gets correct request object | |
| $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; |