From c8db182dc735a56cc936a360d57ddcd1da900a0c Mon Sep 17 00:00:00 2001 From: Shane Frischkorn Date: Wed, 24 Jul 2013 13:29:06 +1000 Subject: [PATCH] re-organising --- .../pip-requirements.txt | 0 manage.py | 10 -- rockviewer.sql | Bin 131072 -> 0 bytes rockviewer/__init__.py | 0 rockviewer/settings.py | 157 ------------------ rockviewer/urls.py | 17 -- rockviewer/wsgi.py | 32 ---- 7 files changed, 216 deletions(-) rename pip-requirements.txt => docs/pip-requirements.txt (100%) delete mode 100644 manage.py delete mode 100644 rockviewer.sql delete mode 100644 rockviewer/__init__.py delete mode 100644 rockviewer/settings.py delete mode 100644 rockviewer/urls.py delete mode 100644 rockviewer/wsgi.py diff --git a/pip-requirements.txt b/docs/pip-requirements.txt similarity index 100% rename from pip-requirements.txt rename to docs/pip-requirements.txt diff --git a/manage.py b/manage.py deleted file mode 100644 index 5b9a794..0000000 --- a/manage.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rockviewer.settings") - - from django.core.management import execute_from_command_line - - execute_from_command_line(sys.argv) diff --git a/rockviewer.sql b/rockviewer.sql deleted file mode 100644 index e0ce3578ce61ef94d34a529901ba3072049e65ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131072 zcmeI5Uu+x6eaCktk}Fc=t|g0J|2ah~>U=gK>nw_rWu0rB6(4hT?8vcX-JK3dw<~c; zt<8VoQa;Di_1$N+M-B{0&RmfO@p=%%}ZbM zkQD9A>~MFvTuN4IpD)69VUKoZelx${eCF@YjODdEx2%?_mFmr^(bDq5F+miCYnmnq z!Ykx2{n>fa7& zwyk>2))z|ixw+Dk5gvWw`f6eMZb7@T@?ZR_XagvovpR&NF>pcsj%yFV;=vGsBCe`nT$}mRW1*tw#-0XJ$M&E~!gP z;-1tpHY=uGr;MsrxoNZroNdc))tisPL&vx+cb7kXtDt4Vg^1FGMx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Y_l z00ck)1V8`;KmY_l00cnbs1cy&|09vF2}5FhG`^A05?>fjCjUJ3p?ppLp7JH>OR?|9 zCZpeoYD5GN2!H?xJbwc1p>auleMW5O*nOGeJ)>5x>qfC^)#$;jo?kRe^XBG!Fhb+! z#5Y#nD7>R(g3)fejCOmaH=15L2wv;SwuP4*QzpYrxs;!u-MWjDqn`(VDpY$gO_y#SNg~Hq+kW-5 zq^>QC?R5sgJ(Jg&ectT@TfdwyE|!)qZ}t}%?>4KypqrOtVt+wuu4e-~lWLzo;j0;aM9SX*Bx&FAJyONM8l6LF@WS%GvxW1MKp zjJ+{jyK+iW^LcUaI=lPA+p)hNgapal0DgrpM1m;!e_Z1Wxp|i{8V$W-Y?{9Fl`yd? zxrMjChvsrPsi!1MCJOTF|3#I9G zNCzbM>-Wt^-U-vZ|4vEo<;YGN(v^*j)-oTqdQPl-eLd_*>B_N~dOLdnjgFcQ2<{(g zUl@_psVQ-H!r!)Rav8D%fV_@|m!8BNwha~QaG)Of8vnF9LT1=dC%Nxu?%RF;+gZ%rr98BJ5?|jQU$!ArHWC`Xm-`8RLC`7ZKq~i zWpc0?Y@p;?Z>?dhsweZ@1wnOr=jfr+dq`b3CPJwone=$q7fgs6#5 zAZ_*SPn~dVE9_@m*RrK2NA;;}>*R5eZ5|V6sUoQU#bt1s*E@@fV8p2qqu9v6%(vZi zK68B06jEm#$>RL~`G3wp0|!3m00ck)1V8`;KmY_l00cnb`4hnR|MO=I4IlslAOHd&00JNY0w4eaAOHd&@S+Le h`~OAP0Q7?Z2!H?xfB*=900@8p2!H?xfWY%7@PAd(nnwTt diff --git a/rockviewer/__init__.py b/rockviewer/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/rockviewer/settings.py b/rockviewer/settings.py deleted file mode 100644 index 69374b9..0000000 --- a/rockviewer/settings.py +++ /dev/null @@ -1,157 +0,0 @@ -# Django settings for rockviewer project. - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -ADMINS = ( - # ('Your Name', 'your_email@example.com'), -) - -MANAGERS = ADMINS - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': '/Users/shanef/Documents/Dev/rockviewer/rockviewer.sql', # Or path to database file if using sqlite3. - # The following settings are not used with sqlite3: - 'USER': '', - 'PASSWORD': '', - 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP. - 'PORT': '', # Set to empty string for default. - } -} - -# Hosts/domain names that are valid for this site; required if DEBUG is False -# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts -ALLOWED_HOSTS = [] - -# Local time zone for this installation. Choices can be found here: -# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name -# although not all choices may be available on all operating systems. -# In a Windows environment this must be set to your system time zone. -TIME_ZONE = 'Australia/Brisbane' - -# Language code for this installation. All choices can be found here: -# http://www.i18nguy.com/unicode/language-identifiers.html -LANGUAGE_CODE = 'en-us' - -SITE_ID = 1 - -# If you set this to False, Django will make some optimizations so as not -# to load the internationalization machinery. -USE_I18N = True - -# If you set this to False, Django will not format dates, numbers and -# calendars according to the current locale. -USE_L10N = True - -# If you set this to False, Django will not use timezone-aware datetimes. -USE_TZ = True - -# Absolute filesystem path to the directory that will hold user-uploaded files. -# Example: "/var/www/example.com/media/" -MEDIA_ROOT = '' - -# URL that handles the media served from MEDIA_ROOT. Make sure to use a -# trailing slash. -# Examples: "http://example.com/media/", "http://media.example.com/" -MEDIA_URL = '' - -# Absolute path to the directory static files should be collected to. -# Don't put anything in this directory yourself; store your static files -# in apps' "static/" subdirectories and in STATICFILES_DIRS. -# Example: "/var/www/example.com/static/" -STATIC_ROOT = '' - -# URL prefix for static files. -# Example: "http://example.com/static/", "http://static.example.com/" -STATIC_URL = '/static/' - -# Additional locations of static files -STATICFILES_DIRS = ( - # Put strings here, like "/home/html/static" or "C:/www/django/static". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. -) - -# List of finder classes that know how to find static files in -# various locations. -STATICFILES_FINDERS = ( - 'django.contrib.staticfiles.finders.FileSystemFinder', - 'django.contrib.staticfiles.finders.AppDirectoriesFinder', -# 'django.contrib.staticfiles.finders.DefaultStorageFinder', -) - -# Make this unique, and don't share it with anybody. -SECRET_KEY = '9ob0#=x5sl6iyo0*_7$y45%r2@+p+b88a2056z&2qde+lt7!dc' - -# List of callables that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', -# 'django.template.loaders.eggs.Loader', -) - -MIDDLEWARE_CLASSES = ( - 'django.middleware.common.CommonMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.middleware.csrf.CsrfViewMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - 'django.contrib.messages.middleware.MessageMiddleware', - # Uncomment the next line for simple clickjacking protection: - # 'django.middleware.clickjacking.XFrameOptionsMiddleware', -) - -ROOT_URLCONF = 'rockviewer.urls' - -# Python dotted path to the WSGI application used by Django's runserver. -WSGI_APPLICATION = 'rockviewer.wsgi.application' - -TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. -) - -INSTALLED_APPS = ( - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.sites', - 'django.contrib.messages', - 'django.contrib.staticfiles', - # Uncomment the next line to enable the admin: - 'django.contrib.admin', - # Uncomment the next line to enable admin documentation: - 'django.contrib.admindocs', - 'south', -) - -# A sample logging configuration. The only tangible logging -# performed by this configuration is to send an email to -# the site admins on every HTTP 500 error when DEBUG=False. -# See http://docs.djangoproject.com/en/dev/topics/logging for -# more details on how to customize your logging configuration. -LOGGING = { - 'version': 1, - 'disable_existing_loggers': False, - 'filters': { - 'require_debug_false': { - '()': 'django.utils.log.RequireDebugFalse' - } - }, - 'handlers': { - 'mail_admins': { - 'level': 'ERROR', - 'filters': ['require_debug_false'], - 'class': 'django.utils.log.AdminEmailHandler' - } - }, - 'loggers': { - 'django.request': { - 'handlers': ['mail_admins'], - 'level': 'ERROR', - 'propagate': True, - }, - } -} diff --git a/rockviewer/urls.py b/rockviewer/urls.py deleted file mode 100644 index b575711..0000000 --- a/rockviewer/urls.py +++ /dev/null @@ -1,17 +0,0 @@ -from django.conf.urls import patterns, include, url - -# Uncomment the next two lines to enable the admin: -# from django.contrib import admin -# admin.autodiscover() - -urlpatterns = patterns('', - # Examples: - # url(r'^$', 'rockviewer.views.home', name='home'), - # url(r'^rockviewer/', include('rockviewer.foo.urls')), - - # Uncomment the admin/doc line below to enable admin documentation: - # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), - - # Uncomment the next line to enable the admin: - # url(r'^admin/', include(admin.site.urls)), -) diff --git a/rockviewer/wsgi.py b/rockviewer/wsgi.py deleted file mode 100644 index 57eca68..0000000 --- a/rockviewer/wsgi.py +++ /dev/null @@ -1,32 +0,0 @@ -""" -WSGI config for rockviewer project. - -This module contains the WSGI application used by Django's development server -and any production WSGI deployments. It should expose a module-level variable -named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover -this application via the ``WSGI_APPLICATION`` setting. - -Usually you will have the standard Django WSGI application here, but it also -might make sense to replace the whole Django WSGI application with a custom one -that later delegates to the Django one. For example, you could introduce WSGI -middleware here, or combine a Django application with an application of another -framework. - -""" -import os - -# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks -# if running multiple sites in the same mod_wsgi process. To fix this, use -# mod_wsgi daemon mode with each site in its own daemon process, or use -# os.environ["DJANGO_SETTINGS_MODULE"] = "rockviewer.settings" -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rockviewer.settings") - -# This application object is used by any WSGI server configured to use this -# file. This includes Django's development server, if the WSGI_APPLICATION -# setting points here. -from django.core.wsgi import get_wsgi_application -application = get_wsgi_application() - -# Apply WSGI middleware here. -# from helloworld.wsgi import HelloWorldApplication -# application = HelloWorldApplication(application)