Here are a few issues concerning GPL-licensed software in combination with closed source software. We assume [version 2 of the GPL] [1] in the following discussion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import simplejson | |
| from django.http import HttpResponse | |
| from django.conf import settings | |
| class JSONResponse(HttpResponse): | |
| def __init__(self, request, data): | |
| indent = 2 if settings.DEBUG else None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ./setup.py build | |
| Setting up testproj | |
| running build | |
| running pre_hook testproj.pre_build_hook for command build | |
| Someone is building my project! | |
| running build_py | |
| running post_hook testproj.post_build_hook for command build | |
| Someone built my project! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOGGING = { | |
| ... | |
| 'handlers': { | |
| 'console': { | |
| 'level': 'DEBUG', | |
| 'class': 'logging.StreamHandler', | |
| }, | |
| ... | |
| }, | |
| 'loggers': { |
Hi my name is Gregor Müllegger. I'm a Computer Science student in Germany at the University of Augsburg currently in the fourth year of my studies. I first came to django shortly before 0.96 was released and a lots of awesomeness was introduced with the magic removal branch.
I'm also doing some django freelancing work since 2008 to finance my studies and attended DjangoCon EU in 2010. This year I would like to apply to
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.db import models | |
| from django.db.models import signals | |
| class DeletingFileField(models.FileField): | |
| """ | |
| FileField subclass that deletes the refernced file when the model object | |
| itself is deleted. | |
| WARNING: Be careful using this class - it can cause data loss! This class | |
| makes at attempt to see if the file's referenced elsewhere, but it can get |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """pycache -- cache a python package from PyPI on S3. | |
| A simple script to collect a cache of packages locally and sync them up to an S3 bucket, using directories as namespaces so that different projects can have different dependencies. | |
| This is just about the simplest thing that could possibly work. | |
| """ | |
| import warnings | |
| warnings.filterwarnings('ignore') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import Module, request, redirect, url_for, render_template, abort | |
| from formalchemy import FieldSet | |
| from example import db | |
| from example import Service, User, Forum, Category, Topic, Post | |
| mod = Module(__name__) | |
| models = { |
NewerOlder