from django.conf.urls.defaults import * import instinctual from instinctual import informer from instinctual.settings import media_path from instinctual.informer.models import Project from instinctual.informer import relativeUrl as rel conf = instinctual.getConf() root = informer.getServerRoot() pat_project = "(?P<project_name>[^/]+)" pat_shot = "(?P<shot_name>[^/]+)" url_api = informer.getApiFragment() url_projects = rel(informer.getProjectsUrl(format='html')) url_project_print = rel(informer.getProjectPrintUrl(pat_project, format='html')) url_project_shots = rel(informer.getProjectShotsUrl(pat_project, format='html')) url_project_shots_alt = url_projects + pat_project + '/' url_project_shot = rel(informer.getProjectShotUrl(pat_project, pat_shot, format='html')) url_project_shot_notes = rel(informer.getProjectShotNotesUrl(pat_project, pat_shot, format='html')) url_project_shot_elements = rel(informer.getProjectShotElementsUrl(pat_project, pat_shot, format='html')) url_project_shot_renders = rel(informer.getProjectShotRendersUrl(pat_project, pat_shot, format='html')) # -------------------- # base patterns: # urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls')), (r'^' + url_api + '/', include('instinctual.informer.urls')),
# http://blogs.law.harvard.edu/tech/stories/storyReader$15 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 # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = media_path # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com" MEDIA_URL = getServerRoot() + '/media/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/media/admin/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'gq#gb$_7cm=+fk*$iqa9&)LUNAROCKS#v(#&7^g*tpi1+li!j5b' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', )