mirror of https://github.com/interlegis/sigi.git
Breno Teixeira
11 years ago
commit
9338efab6e
8 changed files with 153 additions and 0 deletions
@ -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 |
@ -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) |
Binary file not shown.
@ -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/' |
@ -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)), |
|||
) |
@ -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() |
Loading…
Reference in new issue