Skip to content

Instantly share code, notes, and snippets.

View crooksey's full-sized avatar

Luke Crooks crooksey

  • Hampshire, UK
View GitHub Profile
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
@crooksey
crooksey / settings.py
Created July 19, 2011 09:55
settings.py
# -*- coding: utf-8 -*-
import os
gettext = lambda s: s
PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
@crooksey
crooksey / gist:1092515
Created July 19, 2011 14:22
cmsplugin_blog_base.html
{% extends "blog_base.html" %}
{% load cms_tags %}
{% block body %}
{% block left-col %}{% endblock %}
{% block right-col %}{% endblock %}
{% endblock %}
@crooksey
crooksey / gist:1092519
Created July 19, 2011 14:23
blog_base.html
{% load cms_tags %}
{% load cache menu_tags %}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<div id="page_container">
<header>
<title> {% page_attribute "page_title" %}</title>
<div id="header_container">
<div id="logo_container">
<p> aaaaaaaaaaaaaaaaaaaaaa </p>
.. _installfromscratch:
############
Installation
############
This guide is a "quick and dirty" way to get the CMS installed and running
on three different operating systems. To fully understand what you are doing
and what other changes you can make, please read the official docs
`offical_documentation`_.
############
Installation
############
This guide is a "quick and dirty" way to get the CMS installed and running
on three different operating systems. To fully understand what you are doing
and what other changes you can make, please read the official docs
`official_documentation`_.
Please read the documentation fully before logging any problems as you need
We couldn’t find that file to show.
<html>
<head>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="V.Security.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('form').submit(function() {
var s = $('#trans_id').val() + $('#amount').val() + $('#remotepassword').val(); //here three values get added to one string
$('#digest').val(V.Security.md5(s)); //here the values get passed through an md5 comverter and placed into hidden variable "digest" - see below
from django.db import models
from polymorphic.polymorphic_model import PolymorphicModel
from cms.models.fields import PlaceholderField
from django.db.models.signals import pre_save
from django.template.defaultfilters import slugify
class Slugifier(object):
def __init__(self, model, target, source):
self.model = product
self.target = slug
from django.db import models
from polymorphic.polymorphic_model import PolymorphicModel
from cms.models.fields import PlaceholderField
from django.db.models.signals import pre_save
from django.template.defaultfilters import slugify
class Slugifier(object):
def __init__(self, model, target, source):
self.model = model
self.target = target