From: Guillaume Pellerin Date: Mon, 6 Oct 2014 14:56:14 +0000 (+0200) Subject: mv sandbox X-Git-Tag: 0.6~4^2~24^2~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0898c66d0ad2a8d1f49ed316d63fce43c0f6eb41;p=timeside.git mv sandbox --- diff --git a/examples/sandbox/__init__.py b/examples/sandbox/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/examples/sandbox/diag.sh b/examples/sandbox/diag.sh new file mode 100755 index 0000000..a76eca4 --- /dev/null +++ b/examples/sandbox/diag.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +app="timeside" +dir="diagram" + +if [ ! -d $dir ]; then + mkdir $dir +fi + +./manage.py graph_models -a > $dir/$app-all.dot +./manage.py graph_models $app > $dir/$app.dot + +sed -i '/#\ /d' $dir/$app-all.dot +sed -i '/#\ /d' $dir/$app.dot + +dot $dir/$app-all.dot -Tpdf -o $dir/$app-all.pdf +dot $dir/$app.dot -Tpdf -o $dir/$app.pdf + +rsync -a $dir/ doc.parisson.com:/var/www/files/doc/$app/diagram/ diff --git a/examples/sandbox/diagram/timeside.dot b/examples/sandbox/diagram/timeside.dot new file mode 100644 index 0000000..2f04481 --- /dev/null +++ b/examples/sandbox/diagram/timeside.dot @@ -0,0 +1,541 @@ +digraph model_graph { + + fontname = "Helvetica" + fontsize = 8 + splines = true + + node [ + fontname = "Helvetica" + fontsize = 8 + shape = "plaintext" + ] + + edge [ + fontname = "Helvetica" + fontsize = 8 + ] + + + + timeside_models_DocBaseResource [label=< + + + + + + + + + + + + + +
+ + DocBaseResource
<BaseResource> +
+ date_added + + DateTimeField +
+ date_modified + + DateTimeField +
+ description + + TextField +
+ title + + CharField +
+ uuid + + CharField +
+ >] + + timeside_models_BaseResource [label=< + + + + + + + + + +
+ + BaseResource +
+ date_added + + DateTimeField +
+ date_modified + + DateTimeField +
+ uuid + + CharField +
+ >] + + timeside_models_Selection [label=< + + + + + + + + + + + + + + + + + +
+ + Selection
<DocBaseResource> +
+ id + + AutoField +
+ author + + ForeignKey (id) +
+ date_added + + DateTimeField +
+ date_modified + + DateTimeField +
+ description + + TextField +
+ title + + CharField +
+ uuid + + CharField +
+ >] + + timeside_models_Item [label=< + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Item
<DocBaseResource> +
+ id + + AutoField +
+ author + + ForeignKey (id) +
+ date_added + + DateTimeField +
+ date_modified + + DateTimeField +
+ description + + TextField +
+ file + + FileField +
+ hdf5 + + FileField +
+ lock + + BooleanField +
+ mime_type + + CharField +
+ sha1 + + CharField +
+ title + + CharField +
+ url + + URLField +
+ uuid + + CharField +
+ >] + + timeside_models_Experience [label=< + + + + + + + + + + + + + + + + + + + +
+ + Experience
<DocBaseResource> +
+ id + + AutoField +
+ author + + ForeignKey (id) +
+ date_added + + DateTimeField +
+ date_modified + + DateTimeField +
+ description + + TextField +
+ is_public + + BooleanField +
+ title + + CharField +
+ uuid + + CharField +
+ >] + + timeside_models_Processor [label=< + + + + + + + + + +
+ + Processor +
+ id + + AutoField +
+ pid + + CharField +
+ version + + CharField +
+ >] + + timeside_models_Preset [label=< + + + + + + + + + + + +
+ + Preset +
+ id + + AutoField +
+ processor + + ForeignKey (id) +
+ is_public + + BooleanField +
+ parameters + + TextField +
+ >] + + timeside_models_Result [label=< + + + + + + + + + + + + + + + + + + + + + + + +
+ + Result
<BaseResource> +
+ id + + AutoField +
+ item + + ForeignKey (id) +
+ preset + + ForeignKey (id) +
+ date_added + + DateTimeField +
+ date_modified + + DateTimeField +
+ file + + FileField +
+ hdf5 + + FileField +
+ mime_type + + CharField +
+ status + + IntegerField +
+ uuid + + CharField +
+ >] + + timeside_models_Task [label=< + + + + + + + + + + + + + +
+ + Task +
+ id + + AutoField +
+ author + + ForeignKey (id) +
+ experience + + ForeignKey (id) +
+ selection + + ForeignKey (id) +
+ status + + IntegerField +
+ >] + + + + + + timeside_models_DocBaseResource -> timeside_models_BaseResource + [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; + django_contrib_auth_models_User [label=< + + +
+ User +
+ >] + timeside_models_Selection -> django_contrib_auth_models_User + [label="author (selections)"] [arrowhead=none, arrowtail=dot, dir=both]; + + timeside_models_Selection -> timeside_models_Item + [label="items (selections)"] [arrowhead=dot arrowtail=dot, dir=both]; + + timeside_models_Selection -> timeside_models_Selection + [label="selections (other_selections)"] [arrowhead=dot arrowtail=dot, dir=both]; + + timeside_models_Selection -> timeside_models_DocBaseResource + [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; + django_contrib_auth_models_User [label=< + + +
+ User +
+ >] + timeside_models_Item -> django_contrib_auth_models_User + [label="author (items)"] [arrowhead=none, arrowtail=dot, dir=both]; + + timeside_models_Item -> timeside_models_DocBaseResource + [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; + django_contrib_auth_models_User [label=< + + +
+ User +
+ >] + timeside_models_Experience -> django_contrib_auth_models_User + [label="author (experiences)"] [arrowhead=none, arrowtail=dot, dir=both]; + + timeside_models_Experience -> timeside_models_Preset + [label="presets (experiences)"] [arrowhead=dot arrowtail=dot, dir=both]; + + timeside_models_Experience -> timeside_models_Experience + [label="experiences (other_experiences)"] [arrowhead=dot arrowtail=dot, dir=both]; + + timeside_models_Experience -> timeside_models_DocBaseResource + [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; + + timeside_models_Preset -> timeside_models_Processor + [label="processor (preset)"] [arrowhead=none, arrowtail=dot, dir=both]; + + timeside_models_Result -> timeside_models_Item + [label="item (results)"] [arrowhead=none, arrowtail=dot, dir=both]; + + timeside_models_Result -> timeside_models_Preset + [label="preset (results)"] [arrowhead=none, arrowtail=dot, dir=both]; + + timeside_models_Result -> timeside_models_BaseResource + [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; + + timeside_models_Task -> timeside_models_Experience + [label="experience (task)"] [arrowhead=none, arrowtail=dot, dir=both]; + + timeside_models_Task -> timeside_models_Selection + [label="selection (task)"] [arrowhead=none, arrowtail=dot, dir=both]; + django_contrib_auth_models_User [label=< + + +
+ User +
+ >] + timeside_models_Task -> django_contrib_auth_models_User + [label="author (tasks)"] [arrowhead=none, arrowtail=dot, dir=both]; + +} + diff --git a/examples/sandbox/diagram/timeside.pdf b/examples/sandbox/diagram/timeside.pdf new file mode 100644 index 0000000..9f72bae Binary files /dev/null and b/examples/sandbox/diagram/timeside.pdf differ diff --git a/examples/sandbox/manage.py b/examples/sandbox/manage.py new file mode 100755 index 0000000..f9726f9 --- /dev/null +++ b/examples/sandbox/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/examples/sandbox/settings.py b/examples/sandbox/settings.py new file mode 100644 index 0000000..3ce7cf8 --- /dev/null +++ b/examples/sandbox/settings.py @@ -0,0 +1,169 @@ +# Django settings for server project. + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +import os, sys +sys.dont_write_bytecode = True + +ADMINS = ( + # ('Your Name', 'your_email@example.com'), +) + +MANAGERS = ADMINS + +# Full filesystem path to the project. +PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'timeside.sql', # Or path to database file if using sqlite3. + 'USER': '', # Not used with sqlite3. + 'PASSWORD': '', # Not used with sqlite3. + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + } +} + +# Hosts/domain names that are valid for this site; required if DEBUG is False +# See https://docs.djangoproject.com/en/1.4/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 = 'Europe/Paris' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'fr-fr' + +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: "/home/media/media.lawrence.com/media/" +MEDIA_ROOT = PROJECT_ROOT + '/media/' + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash. +# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" +MEDIA_URL = '/media/' + +# 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: "/home/media/media.lawrence.com/static/" +STATIC_ROOT = '/var/www/static' + +# URL prefix for static files. +# Example: "http://media.lawrence.com/static/" +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 = '5%z&a3r@t0=xr2eaio+400qf-32$b5zp897pr*wh5i^s4(-+3(' + +# 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 = 'urls' + +# Python dotted path to the WSGI application used by Django's runserver. +WSGI_APPLICATION = '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', + 'django_extensions', + 'south', + 'timeside.server', + 'timeside.player', + 'rest_framework', +) + +# 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, + }, + } +} + +REST_FRAMEWORK = { +} diff --git a/examples/sandbox/timeside b/examples/sandbox/timeside new file mode 120000 index 0000000..62cc3cd --- /dev/null +++ b/examples/sandbox/timeside @@ -0,0 +1 @@ +../../../timeside \ No newline at end of file diff --git a/examples/sandbox/update_schema.sh b/examples/sandbox/update_schema.sh new file mode 100755 index 0000000..82d28e9 --- /dev/null +++ b/examples/sandbox/update_schema.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +./manage.py schemamigration timeside --auto +./manage.py migrate timeside + diff --git a/examples/sandbox/urls.py b/examples/sandbox/urls.py new file mode 100644 index 0000000..2224d24 --- /dev/null +++ b/examples/sandbox/urls.py @@ -0,0 +1,20 @@ +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('', + + url(r'^', include('timeside.server.urls')), + + # Examples: + # url(r'^$', 'server.views.home', name='home'), + # url(r'^server/', include('server.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/examples/sandbox/uwsgi.ini b/examples/sandbox/uwsgi.ini new file mode 100644 index 0000000..5cc8ab2 --- /dev/null +++ b/examples/sandbox/uwsgi.ini @@ -0,0 +1,35 @@ +[uwsgi] +# this config will be loaded if nothing specific is specified +# load base config from below +ini = :base + +# %d is the dir this configuration file is in +socket = %dapp.sock +master = true +processes = 4 + +[dev] +ini = :base +# socket (uwsgi) is not the same as http, nor http-socket +socket = :8001 + + +[local] +ini = :base +http = :8000 +# set the virtual env to use +home=/home/me/.virtualenv + + +[base] +# chdir to the folder of this config file, plus app/website +chdir = %d + +# load the module from wsgi.py, it is a python path from +# the directory above. +module = wsgi + +# allow anyone to connect to the socket. This is very permissive +chmod-socket=666 + +auto-reload = %dwsgi.py \ No newline at end of file diff --git a/examples/sandbox/wsgi.py b/examples/sandbox/wsgi.py new file mode 100644 index 0000000..f611065 --- /dev/null +++ b/examples/sandbox/wsgi.py @@ -0,0 +1,28 @@ +""" +WSGI config for server 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, sys + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "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) diff --git a/timeside/server/sandbox/__init__.py b/timeside/server/sandbox/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/timeside/server/sandbox/diag.sh b/timeside/server/sandbox/diag.sh deleted file mode 100755 index a76eca4..0000000 --- a/timeside/server/sandbox/diag.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -app="timeside" -dir="diagram" - -if [ ! -d $dir ]; then - mkdir $dir -fi - -./manage.py graph_models -a > $dir/$app-all.dot -./manage.py graph_models $app > $dir/$app.dot - -sed -i '/#\ /d' $dir/$app-all.dot -sed -i '/#\ /d' $dir/$app.dot - -dot $dir/$app-all.dot -Tpdf -o $dir/$app-all.pdf -dot $dir/$app.dot -Tpdf -o $dir/$app.pdf - -rsync -a $dir/ doc.parisson.com:/var/www/files/doc/$app/diagram/ diff --git a/timeside/server/sandbox/diagram/timeside.dot b/timeside/server/sandbox/diagram/timeside.dot deleted file mode 100644 index 2f04481..0000000 --- a/timeside/server/sandbox/diagram/timeside.dot +++ /dev/null @@ -1,541 +0,0 @@ -digraph model_graph { - - fontname = "Helvetica" - fontsize = 8 - splines = true - - node [ - fontname = "Helvetica" - fontsize = 8 - shape = "plaintext" - ] - - edge [ - fontname = "Helvetica" - fontsize = 8 - ] - - - - timeside_models_DocBaseResource [label=< - - - - - - - - - - - - - -
- - DocBaseResource
<BaseResource> -
- date_added - - DateTimeField -
- date_modified - - DateTimeField -
- description - - TextField -
- title - - CharField -
- uuid - - CharField -
- >] - - timeside_models_BaseResource [label=< - - - - - - - - - -
- - BaseResource -
- date_added - - DateTimeField -
- date_modified - - DateTimeField -
- uuid - - CharField -
- >] - - timeside_models_Selection [label=< - - - - - - - - - - - - - - - - - -
- - Selection
<DocBaseResource> -
- id - - AutoField -
- author - - ForeignKey (id) -
- date_added - - DateTimeField -
- date_modified - - DateTimeField -
- description - - TextField -
- title - - CharField -
- uuid - - CharField -
- >] - - timeside_models_Item [label=< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Item
<DocBaseResource> -
- id - - AutoField -
- author - - ForeignKey (id) -
- date_added - - DateTimeField -
- date_modified - - DateTimeField -
- description - - TextField -
- file - - FileField -
- hdf5 - - FileField -
- lock - - BooleanField -
- mime_type - - CharField -
- sha1 - - CharField -
- title - - CharField -
- url - - URLField -
- uuid - - CharField -
- >] - - timeside_models_Experience [label=< - - - - - - - - - - - - - - - - - - - -
- - Experience
<DocBaseResource> -
- id - - AutoField -
- author - - ForeignKey (id) -
- date_added - - DateTimeField -
- date_modified - - DateTimeField -
- description - - TextField -
- is_public - - BooleanField -
- title - - CharField -
- uuid - - CharField -
- >] - - timeside_models_Processor [label=< - - - - - - - - - -
- - Processor -
- id - - AutoField -
- pid - - CharField -
- version - - CharField -
- >] - - timeside_models_Preset [label=< - - - - - - - - - - - -
- - Preset -
- id - - AutoField -
- processor - - ForeignKey (id) -
- is_public - - BooleanField -
- parameters - - TextField -
- >] - - timeside_models_Result [label=< - - - - - - - - - - - - - - - - - - - - - - - -
- - Result
<BaseResource> -
- id - - AutoField -
- item - - ForeignKey (id) -
- preset - - ForeignKey (id) -
- date_added - - DateTimeField -
- date_modified - - DateTimeField -
- file - - FileField -
- hdf5 - - FileField -
- mime_type - - CharField -
- status - - IntegerField -
- uuid - - CharField -
- >] - - timeside_models_Task [label=< - - - - - - - - - - - - - -
- - Task -
- id - - AutoField -
- author - - ForeignKey (id) -
- experience - - ForeignKey (id) -
- selection - - ForeignKey (id) -
- status - - IntegerField -
- >] - - - - - - timeside_models_DocBaseResource -> timeside_models_BaseResource - [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; - django_contrib_auth_models_User [label=< - - -
- User -
- >] - timeside_models_Selection -> django_contrib_auth_models_User - [label="author (selections)"] [arrowhead=none, arrowtail=dot, dir=both]; - - timeside_models_Selection -> timeside_models_Item - [label="items (selections)"] [arrowhead=dot arrowtail=dot, dir=both]; - - timeside_models_Selection -> timeside_models_Selection - [label="selections (other_selections)"] [arrowhead=dot arrowtail=dot, dir=both]; - - timeside_models_Selection -> timeside_models_DocBaseResource - [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; - django_contrib_auth_models_User [label=< - - -
- User -
- >] - timeside_models_Item -> django_contrib_auth_models_User - [label="author (items)"] [arrowhead=none, arrowtail=dot, dir=both]; - - timeside_models_Item -> timeside_models_DocBaseResource - [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; - django_contrib_auth_models_User [label=< - - -
- User -
- >] - timeside_models_Experience -> django_contrib_auth_models_User - [label="author (experiences)"] [arrowhead=none, arrowtail=dot, dir=both]; - - timeside_models_Experience -> timeside_models_Preset - [label="presets (experiences)"] [arrowhead=dot arrowtail=dot, dir=both]; - - timeside_models_Experience -> timeside_models_Experience - [label="experiences (other_experiences)"] [arrowhead=dot arrowtail=dot, dir=both]; - - timeside_models_Experience -> timeside_models_DocBaseResource - [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; - - timeside_models_Preset -> timeside_models_Processor - [label="processor (preset)"] [arrowhead=none, arrowtail=dot, dir=both]; - - timeside_models_Result -> timeside_models_Item - [label="item (results)"] [arrowhead=none, arrowtail=dot, dir=both]; - - timeside_models_Result -> timeside_models_Preset - [label="preset (results)"] [arrowhead=none, arrowtail=dot, dir=both]; - - timeside_models_Result -> timeside_models_BaseResource - [label="abstract\ninheritance"] [arrowhead=empty, arrowtail=none, dir=both]; - - timeside_models_Task -> timeside_models_Experience - [label="experience (task)"] [arrowhead=none, arrowtail=dot, dir=both]; - - timeside_models_Task -> timeside_models_Selection - [label="selection (task)"] [arrowhead=none, arrowtail=dot, dir=both]; - django_contrib_auth_models_User [label=< - - -
- User -
- >] - timeside_models_Task -> django_contrib_auth_models_User - [label="author (tasks)"] [arrowhead=none, arrowtail=dot, dir=both]; - -} - diff --git a/timeside/server/sandbox/diagram/timeside.pdf b/timeside/server/sandbox/diagram/timeside.pdf deleted file mode 100644 index 9f72bae..0000000 Binary files a/timeside/server/sandbox/diagram/timeside.pdf and /dev/null differ diff --git a/timeside/server/sandbox/manage.py b/timeside/server/sandbox/manage.py deleted file mode 100755 index f9726f9..0000000 --- a/timeside/server/sandbox/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", "settings") - - from django.core.management import execute_from_command_line - - execute_from_command_line(sys.argv) diff --git a/timeside/server/sandbox/settings.py b/timeside/server/sandbox/settings.py deleted file mode 100644 index 3ce7cf8..0000000 --- a/timeside/server/sandbox/settings.py +++ /dev/null @@ -1,169 +0,0 @@ -# Django settings for server project. - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -import os, sys -sys.dont_write_bytecode = True - -ADMINS = ( - # ('Your Name', 'your_email@example.com'), -) - -MANAGERS = ADMINS - -# Full filesystem path to the project. -PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'timeside.sql', # Or path to database file if using sqlite3. - 'USER': '', # Not used with sqlite3. - 'PASSWORD': '', # Not used with sqlite3. - 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. - } -} - -# Hosts/domain names that are valid for this site; required if DEBUG is False -# See https://docs.djangoproject.com/en/1.4/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 = 'Europe/Paris' - -# Language code for this installation. All choices can be found here: -# http://www.i18nguy.com/unicode/language-identifiers.html -LANGUAGE_CODE = 'fr-fr' - -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: "/home/media/media.lawrence.com/media/" -MEDIA_ROOT = PROJECT_ROOT + '/media/' - -# URL that handles the media served from MEDIA_ROOT. Make sure to use a -# trailing slash. -# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" -MEDIA_URL = '/media/' - -# 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: "/home/media/media.lawrence.com/static/" -STATIC_ROOT = '/var/www/static' - -# URL prefix for static files. -# Example: "http://media.lawrence.com/static/" -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 = '5%z&a3r@t0=xr2eaio+400qf-32$b5zp897pr*wh5i^s4(-+3(' - -# 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 = 'urls' - -# Python dotted path to the WSGI application used by Django's runserver. -WSGI_APPLICATION = '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', - 'django_extensions', - 'south', - 'timeside.server', - 'timeside.player', - 'rest_framework', -) - -# 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, - }, - } -} - -REST_FRAMEWORK = { -} diff --git a/timeside/server/sandbox/timeside b/timeside/server/sandbox/timeside deleted file mode 120000 index 62cc3cd..0000000 --- a/timeside/server/sandbox/timeside +++ /dev/null @@ -1 +0,0 @@ -../../../timeside \ No newline at end of file diff --git a/timeside/server/sandbox/update_schema.sh b/timeside/server/sandbox/update_schema.sh deleted file mode 100755 index 82d28e9..0000000 --- a/timeside/server/sandbox/update_schema.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -./manage.py schemamigration timeside --auto -./manage.py migrate timeside - diff --git a/timeside/server/sandbox/urls.py b/timeside/server/sandbox/urls.py deleted file mode 100644 index 2224d24..0000000 --- a/timeside/server/sandbox/urls.py +++ /dev/null @@ -1,20 +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('', - - url(r'^', include('timeside.server.urls')), - - # Examples: - # url(r'^$', 'server.views.home', name='home'), - # url(r'^server/', include('server.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/timeside/server/sandbox/uwsgi.ini b/timeside/server/sandbox/uwsgi.ini deleted file mode 100644 index 5cc8ab2..0000000 --- a/timeside/server/sandbox/uwsgi.ini +++ /dev/null @@ -1,35 +0,0 @@ -[uwsgi] -# this config will be loaded if nothing specific is specified -# load base config from below -ini = :base - -# %d is the dir this configuration file is in -socket = %dapp.sock -master = true -processes = 4 - -[dev] -ini = :base -# socket (uwsgi) is not the same as http, nor http-socket -socket = :8001 - - -[local] -ini = :base -http = :8000 -# set the virtual env to use -home=/home/me/.virtualenv - - -[base] -# chdir to the folder of this config file, plus app/website -chdir = %d - -# load the module from wsgi.py, it is a python path from -# the directory above. -module = wsgi - -# allow anyone to connect to the socket. This is very permissive -chmod-socket=666 - -auto-reload = %dwsgi.py \ No newline at end of file diff --git a/timeside/server/sandbox/wsgi.py b/timeside/server/sandbox/wsgi.py deleted file mode 100644 index f611065..0000000 --- a/timeside/server/sandbox/wsgi.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -WSGI config for server 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, sys - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "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)