Django documentation says to use:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com
<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
Require all granted
| import sys | |
| from io import BytesIO | |
| from PIL import Image | |
| import xml.etree.cElementTree as et | |
| from django.core.exceptions import ValidationError | |
| from django.forms import ImageField as DjangoImageField | |
| from django.utils import six | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ClientPropertiesManager"> | |
| <properties class="javax.swing.AbstractButton"> | |
| <property name="hideActionText" class="java.lang.Boolean" /> | |
| </properties> | |
| <properties class="javax.swing.JComponent"> | |
| <property name="html.disable" class="java.lang.Boolean" /> | |
| </properties> | |
| <properties class="javax.swing.JEditorPane"> |
| /** | |
| * @license | |
| * lodash 3.9.3 (Custom Build) <https://lodash.com/> | |
| * Build: `lodash modern -o ./lodash.js` | |
| * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | |
| * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | |
| * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
| * Available under MIT license <https://lodash.com/license> | |
| */ | |
| ;(function() { |
| /** | |
| * @license | |
| * lodash 3.5.0 (Custom Build) <https://lodash.com/> | |
| * Build: `lodash modern -o ./lodash.js` | |
| * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | |
| * Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> | |
| * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
| * Available under MIT license <https://lodash.com/license> | |
| */ | |
| ;(function() { |
| copy($(".checklist-item:not(.checklist-item-checked)").map(function() { | |
| var e = $(this), | |
| item = e.find(".checklist-item-details-text").text() | |
| if (e.hasClass("checklist-item-state-complete")) { | |
| item = item + " (DONE)" | |
| } | |
| return item | |
| }).get().join("\n")) |
Django documentation says to use:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com
<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
Require all granted
| from functools import update_wrapper | |
| from django.contrib import admin | |
| from django.contrib.admin import ModelAdmin | |
| from django.contrib.admin.templatetags.admin_urls import add_preserved_filters | |
| from django.core.exceptions import PermissionDenied | |
| from django.shortcuts import render | |
| from myapp.models import Widget | |
| from myapp.forms import ManageWidgetForm |
| # taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
| # generate server.xml with the following command: | |
| # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
| # run as follows: | |
| # python simple-https-server.py | |
| # then in your browser, visit: | |
| # https://localhost:4443 | |
| import BaseHTTPServer, SimpleHTTPServer | |
| import ssl |
This is a very simple approach to doing role-based access control with Neo4j. It is optimistic, in the sense that all items are assumed to be world-readable unless they have specific constraints. Item visibility can be constrained to either individual users or all users who belong to a role. Roles are also hierarchical, so can inherit privileges from other roles.
First, lets create our basic example data:
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: