Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Moved things around in djangoproject.com project to match the standar…

…d Django layout

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c06467a90a3d3ea9073940c043c6504888b208ee 1 parent 81e40a4
authored
11  django_website/manage.py
... ...
@@ -0,0 +1,11 @@
  1
+#!/usr/bin/env python
  2
+from django.core.management import execute_manager
  3
+try:
  4
+    import settings # Assumed to be in the same directory.
  5
+except ImportError:
  6
+    import sys
  7
+    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__)
  8
+    sys.exit(1)
  9
+
  10
+if __name__ == "__main__":
  11
+    execute_manager(settings)
0  django_website/settings/main.py → django_website/settings.py
File renamed without changes
0  django_website/settings/__init__.py
No changes.
21  django_website/settings/admin.py
... ...
@@ -1,21 +0,0 @@
1  
-from django_website.settings.main import *
2  
-
3  
-PREPEND_WWW = False
4  
-TEMPLATE_DIRS = (
5  
-    '/home/html/templates/admin.djangoproject.com/',
6  
-#    '/home/html/templates/shared-admin/',
7  
-)
8  
-INSTALLED_APPS = INSTALLED_APPS + ('django.contrib.admin',)
9  
-ROOT_URLCONF = 'django_website.settings.urls.admin'
10  
-MIDDLEWARE_CLASSES = (
11  
-    'django.middleware.sessions.SessionMiddleware',
12  
-    'django.middleware.common.CommonMiddleware',
13  
-)
14  
-ADMIN_FOR = (
15  
-    'django_website.settings.main',
16  
-)
17  
-ADMIN_MEDIA_PREFIX = '/m/'
18  
-TEMPLATE_LOADERS = (
19  
-    'django.core.template.loaders.filesystem.load_template_source',
20  
-    'django.core.template.loaders.app_directories.load_template_source',
21  
-)
0  django_website/settings/urls/__init__.py
No changes.
7  django_website/settings/urls/admin.py
... ...
@@ -1,7 +0,0 @@
1  
-from django.conf.urls.defaults import *
2  
-
3  
-urlpatterns = patterns('',
4  
-    (r'^password_reset/', include('django.conf.urls.admin_password_reset')),
5  
-    (r'^r/', include('django.conf.urls.shortcut')),
6  
-    (r'', include('django.contrib.admin.urls.admin')),
7  
-)
0  django_website/settings/urls/main.py → django_website/urls.py
File renamed without changes

0 notes on commit c06467a

Please sign in to comment.
Something went wrong with that request. Please try again.