changeset 0:448f907a9d7e

Initial Agora Octave commit
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Wed, 16 Jun 2010 23:18:41 -0500
parents
children 013cf0aa49b7
files .hgignore __init__.py dj manage.py urls.py
diffstat 4 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Wed Jun 16 23:18:41 2010 -0500
@@ -0,0 +1,3 @@
+syntax: glob
+*.pyc
+settings.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dj	Wed Jun 16 23:18:41 2010 -0500
@@ -0,0 +1,1 @@
+manage.py
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/manage.py	Wed Jun 16 23:18:41 2010 -0500
@@ -0,0 +1,11 @@
+#!/usr/bin/python
+from django.core.management import execute_manager
+try:
+    import settings # Assumed to be in the same directory.
+except ImportError:
+    import sys
+    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+    sys.exit(1)
+
+if __name__ == "__main__":
+    execute_manager(settings)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/urls.py	Wed Jun 16 23:18:41 2010 -0500
@@ -0,0 +1,17 @@
+from django.conf.urls.defaults import *
+
+# Uncomment the next two lines to enable the admin:
+from django.contrib import admin
+admin.autodiscover()
+
+urlpatterns = patterns('',
+    # Example:
+    # (r'^agora/', include('agora.foo.urls')),
+
+    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
+    # to INSTALLED_APPS to enable admin documentation:
+    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
+
+    # Uncomment the next line to enable the admin:
+    (r'^admin/', include(admin.site.urls)),
+)