diff --git a/vows/sandbox/main/admin.py b/vows/sandbox/main/admin.py index e09a757..9d1b31a 100644 --- a/vows/sandbox/main/admin.py +++ b/vows/sandbox/main/admin.py @@ -1,13 +1,3 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# django-pyvows extensions -# https://github.com/rafaelcaricio/django-pyvows - -# Licensed under the MIT license: -# http://www.opensource.org/licenses/mit-license -# Copyright (c) 2011 Rafael Caricio rafael@caricio.com - from django.contrib import admin from models import StringModel diff --git a/vows/sandbox/main/models.py b/vows/sandbox/main/models.py index 8c7dbca..5d1a30c 100644 --- a/vows/sandbox/main/models.py +++ b/vows/sandbox/main/models.py @@ -1,13 +1,3 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# django-pyvows extensions -# https://github.com/rafaelcaricio/django-pyvows - -# Licensed under the MIT license: -# http://www.opensource.org/licenses/mit-license -# Copyright (c) 2011 Rafael Caricio rafael@caricio.com - from django.db import models diff --git a/vows/sandbox/main/tests.py b/vows/sandbox/main/tests.py deleted file mode 100644 index 501deb7..0000000 --- a/vows/sandbox/main/tests.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -This file demonstrates writing tests using the unittest module. These will pass -when you run "manage.py test". - -Replace this with more appropriate tests for your application. -""" - -from django.test import TestCase - - -class SimpleTest(TestCase): - def test_basic_addition(self): - """ - Tests that 1 + 1 always equals 2. - """ - self.assertEqual(1 + 1, 2) diff --git a/vows/sandbox/main/urls.py b/vows/sandbox/main/urls.py deleted file mode 100644 index e69de29..0000000 diff --git a/vows/sandbox/main/views.py b/vows/sandbox/main/views.py index 39e10b8..3d48ef5 100644 --- a/vows/sandbox/main/views.py +++ b/vows/sandbox/main/views.py @@ -1,13 +1,3 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# django-pyvows extensions -# https://github.com/rafaelcaricio/django-pyvows - -# Licensed under the MIT license: -# http://www.opensource.org/licenses/mit-license -# Copyright (c) 2011 Rafael Caricio rafael@caricio.com - from django.conf import settings from django.http import HttpResponse from django.http import HttpResponseRedirect diff --git a/vows/sandbox/sandbox/settings.py b/vows/sandbox/sandbox/settings.py index 2364fa7..bb986a7 100644 --- a/vows/sandbox/sandbox/settings.py +++ b/vows/sandbox/sandbox/settings.py @@ -9,27 +9,17 @@ https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '+1e*=5h9ri-$#@xmgs*9wrm&@d#li6d9u3e&atmzo5s*6k%_#o' -# SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] - -# Application definition - INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', @@ -74,9 +64,7 @@ TEMPLATES = [ WSGI_APPLICATION = 'sandbox.wsgi.application' - # Database -# https://docs.djangoproject.com/en/1.8/ref/settings/#databases DATABASES = { 'default': { @@ -87,7 +75,6 @@ DATABASES = { # Internationalization -# https://docs.djangoproject.com/en/1.8/topics/i18n/ LANGUAGE_CODE = 'en-us' @@ -101,9 +88,8 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/1.8/howto/static-files/ STATIC_URL = '/static/' -# Custom config to be used in tests +# Custom configs SAY_HELLO_WITHOUT_NAME = False diff --git a/vows/sandbox/sandbox/urls.py b/vows/sandbox/sandbox/urls.py index 2ecfaf2..9738df5 100644 --- a/vows/sandbox/sandbox/urls.py +++ b/vows/sandbox/sandbox/urls.py @@ -1,18 +1,3 @@ -"""sandbox URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/1.8/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') -Including another URLconf - 1. Add an import: from blog import urls as blog_urls - 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) -""" from django.conf.urls import url from main.views import home, say_hello, post_it, post_file, post_name