Permalink
Browse files

Initialized django files

  • Loading branch information...
1 parent d963ee7 commit a908d45dc19c2c3df8b35d8724b26ef4d04bf58d @mutaku committed Apr 3, 2011
Showing with 31 additions and 0 deletions.
  1. 0 __init__.py
  2. +14 −0 manage.py
  3. +17 −0 urls.py
View
0 __init__.py
No changes.
View
14 manage.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+from django.core.management import execute_manager
+import imp
+try:
+ imp.find_module('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" % __file__)
+ sys.exit(1)
+
+import settings
+
+if __name__ == "__main__":
+ execute_manager(settings)
View
17 urls.py
@@ -0,0 +1,17 @@
+from django.conf.urls.defaults 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'^$', 'stumpy_django.views.home', name='home'),
+ # url(r'^stumpy_django/', include('stumpy_django.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)),
+)

0 comments on commit a908d45

Please sign in to comment.