From a1ae8f951c4b34a72441ce9f464ee888253d33b2 Mon Sep 17 00:00:00 2001 From: Florian N Date: Tue, 28 Jan 2014 15:36:11 -0500 Subject: [PATCH] initial django files --- manage.py | 10 ++++++ pydash/__init__.py | 0 pydash/__init__.pyc | Bin 0 -> 124 bytes pydash/settings.py | 82 ++++++++++++++++++++++++++++++++++++++++++++ pydash/settings.pyc | Bin 0 -> 2133 bytes pydash/urls.py | 12 +++++++ pydash/urls.pyc | Bin 0 -> 404 bytes pydash/wsgi.py | 14 ++++++++ pydash/wsgi.pyc | Bin 0 -> 579 bytes 9 files changed, 118 insertions(+) create mode 100644 manage.py create mode 100644 pydash/__init__.py create mode 100644 pydash/__init__.pyc create mode 100644 pydash/settings.py create mode 100644 pydash/settings.pyc create mode 100644 pydash/urls.py create mode 100644 pydash/urls.pyc create mode 100644 pydash/wsgi.py create mode 100644 pydash/wsgi.pyc diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..889180b --- /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", "pydash.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/pydash/__init__.py b/pydash/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pydash/__init__.pyc b/pydash/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cf8701cf8ad0c5c300fd3e1653aa964a78185332 GIT binary patch literal 124 zcmcckiI>Y?PO2Tqyka0`002j47~cQ@ literal 0 HcmV?d00001 diff --git a/pydash/settings.py b/pydash/settings.py new file mode 100644 index 0000000..047b677 --- /dev/null +++ b/pydash/settings.py @@ -0,0 +1,82 @@ +""" +Django settings for pydash project. + +For more information on this file, see +https://docs.djangoproject.com/en/1.6/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.6/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/1.6/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = '1)$crmowu-23tz@i2-d=7tb3t+1u&(pm!lnjyuarki^72h!3af' + +# 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 = 'pydash.urls' + +WSGI_APPLICATION = 'pydash.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.6/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + +# Internationalization +# https://docs.djangoproject.com/en/1.6/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/1.6/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/pydash/settings.pyc b/pydash/settings.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2eed5033f28f89d479dd51946a19101731e47605 GIT binary patch literal 2133 zcmeHIUvt|;5MRZq-MUFhleC2v7h1m1lh?}E3jkarZ_RrCRn z_rQB7gLInj%h-QMQtzGz$uw>7?X{{fUpw_c8C*i;u!QPA`kS{R8pyE4IH! zzC09X2jb&a@w}PEPow1gstEE6_QT=+?CC);;k&ZbDk(io6OpqsJs>el_|6JJA!hu^ z+k9zA6CtiL%K4+W&7OM6t*{(=vu@`0g z0Vag|Q!;GdIE|NS>S4sfi}N77z<$@iJIaHY4l~)&ykvS8P3OlzFY;(!kL&d%pE5nj zGK5i)mg_;z^fN@J3E?{bF=B!qh$=!^_Hoa)cwGi`wv?>n(l!T{kk<*Jlc0zMzlC#} z>=j&8a5i>3{5FmTR~0sz679dzit}JslyA}I;Z?wVM}I$foOBugAyY z9?o2AaMCwjG*PTgWSRZ`@YL%1Uk@GEQA$1AagmEW^W?-4+o&|?b-R7*)ErrUr*Arr z<%kVrkA_3nACLN-p?xH_ka6l9_oP+7*D>AR&{lDrrz{b7P}((JQwHn^>9}v&$7Ayt z5r@x`uBRw8dLpU(7&L(rQJkXf^GF Jn$lF-e*v!Fd%^$! literal 0 HcmV?d00001 diff --git a/pydash/urls.py b/pydash/urls.py new file mode 100644 index 0000000..a88c614 --- /dev/null +++ b/pydash/urls.py @@ -0,0 +1,12 @@ +from django.conf.urls import patterns, include, url + +from django.contrib import admin +admin.autodiscover() + +urlpatterns = patterns('', + # Examples: + # url(r'^$', 'pydash.views.home', name='home'), + # url(r'^blog/', include('blog.urls')), + + url(r'^admin/', include(admin.site.urls)), +) diff --git a/pydash/urls.pyc b/pydash/urls.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8a94f1c6cf9dcafe6d86201dfb888bec39a962a6 GIT binary patch literal 404 zcmYLEOHRWu5Pfz&E#adcfDOB>nhPMr30Q<(7L`J5sHvMo@dT;soRA~1W6cF%CbX(G ze)Hx(^Z9d~eWl-JgX3GWe&ioE42DHv2Y7`_!E00+K0*~iNlarG!zZW`D4W2gn7~ZI zM6eM|467l51>6#o!lXs23z!7YdCDW)FTXruMl!muiR{n@T1c#I{AesmbR2xHBr9R4 z&EB=d1VQpPvt2yp85^`>FzPyW)Hw@<-8r(}cuW-fwdZf;{ z&~zVmpqL%Ok)4TjqD%HLIW3yAi8F*dHj8byx5fWb{lU~>TO5^iSoeqd)cbvBMsFWv Ot01@E>XpiLn*0Idd{!<1 literal 0 HcmV?d00001 diff --git a/pydash/wsgi.py b/pydash/wsgi.py new file mode 100644 index 0000000..accaf0c --- /dev/null +++ b/pydash/wsgi.py @@ -0,0 +1,14 @@ +""" +WSGI config for pydash 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/1.6/howto/deployment/wsgi/ +""" + +import os +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pydash.settings") + +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() diff --git a/pydash/wsgi.pyc b/pydash/wsgi.pyc new file mode 100644 index 0000000000000000000000000000000000000000..80a29faee9181a500a9f33650bc86818ffa2012e GIT binary patch literal 579 zcmYjN!EO^V5FIZ`KnsXUR6Uzp4zLy%4hSJYEm068Qd5MK%f_rH8@FD2wVtNr+%N2f zZ{W-iz&J}$E&F*q&wlg9H@_d}^TS`K75p0m-rw9%#Y(qw~Qtyu3P z7imI=(t57f>i`yvI*5Pv*5%UdE8(%ABLKO>hu6-SDJyoGm=+(>OmD+?W3d&&X z!mdG2>MGV&<@OJc869zh$DiKMCi8M}a&|VIO%~;s`SI7!C-DhWeXB)8BJ1lo7M!C) zh8n3%LggLrD&MB5NxYn1B=zx#C^`hdAi==tFukw(Y vyW)I=@qdWVION_MRN6GwtKRADmSl={M-TYcoBs3PrZ^@TWsk(u>_GelTY#ZD literal 0 HcmV?d00001