From 9338efab6e2c4c5d223f62168724c9b95a15a636 Mon Sep 17 00:00:00 2001 From: Breno Teixeira Date: Wed, 23 Oct 2013 18:13:27 -0200 Subject: [PATCH] first commit --- .gitignore | 36 +++++++++++++++++++++ README.md | 0 manage.py | 10 ++++++ sigi.db | Bin 0 -> 33792 bytes sigi/__init__.py | 0 sigi/settings.py | 82 +++++++++++++++++++++++++++++++++++++++++++++++ sigi/urls.py | 11 +++++++ sigi/wsgi.py | 14 ++++++++ 8 files changed, 153 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 manage.py create mode 100644 sigi.db create mode 100644 sigi/__init__.py create mode 100644 sigi/settings.py create mode 100644 sigi/urls.py create mode 100644 sigi/wsgi.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ded6067 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +*.py[cod] + +# C extensions +*.so + +# Packages +*.egg +*.egg-info +dist +build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg +lib +lib64 +__pycache__ + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox +nosetests.xml + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg +.project +.pydevproject diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..0fdd7e8 --- /dev/null +++ b/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sigi.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/sigi.db b/sigi.db new file mode 100644 index 0000000000000000000000000000000000000000..817d31a5b3a289747f85f5b9353dd32560ab7fcf GIT binary patch literal 33792 zcmeHQOKcm*8Q$4hl9p^qmTY;G$ck39Wt){{arqEMJ3&gzl&x5zV?83#fI%$DB}Iu3 zg%8Uz0u+>y7AOL=hZHE<0)3z;awz&b1PxHMXq!`eX@Md|(E@Fg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d0ER%vB0&8A!3c-` zGr>3bGyJdNZpW(nI25aMqIJWMY|xOcII_i4F*fe(2`5|Z*|f@M*{!i8H*WZWCo~mK znOjH}USm_ruENv%sGx6%wO7Hijdkuxm$(!G^*NgkL=kgKsTCl0mXUUP*%=LR?Hbw{ z8{xX}l&0#+eyZv_W+rg=Z8b;{v`?NaA1Z~N-<3Id=0lYW3tpET3 literal 0 HcmV?d00001 diff --git a/sigi/__init__.py b/sigi/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/settings.py b/sigi/settings.py new file mode 100644 index 0000000..0c430ee --- /dev/null +++ b/sigi/settings.py @@ -0,0 +1,82 @@ +""" +Django settings for sigi project. + +For more information on this file, see +https://docs.djangoproject.com/en/dev/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/dev/ref/settings/ +""" + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +import os +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = '0$ip1fb5xtq%a=)-k_4r^(#jn0t^@+*^kihkxkozg-mip7+w3+' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +TEMPLATE_DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = ( + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +) + +MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +) + +ROOT_URLCONF = 'sigi.urls' + +WSGI_APPLICATION = 'sigi.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/dev/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'sigi.db'), + } +} + +# Internationalization +# https://docs.djangoproject.com/en/dev/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/dev/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/sigi/urls.py b/sigi/urls.py new file mode 100644 index 0000000..95121a9 --- /dev/null +++ b/sigi/urls.py @@ -0,0 +1,11 @@ +from django.conf.urls import patterns, include, url +from django.views.generic.base import RedirectView + +from django.contrib import admin +admin.autodiscover() + +urlpatterns = patterns('', + url(r'^$', RedirectView.as_view(url='/sigi/'), name='go-to-sigi'), + + url(r'^sigi/', include(admin.site.urls)), +) diff --git a/sigi/wsgi.py b/sigi/wsgi.py new file mode 100644 index 0000000..2bfdfd1 --- /dev/null +++ b/sigi/wsgi.py @@ -0,0 +1,14 @@ +""" +WSGI config for sigi project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ +""" + +import os +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sigi.settings") + +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application()