Skip to content
Browse files

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...
1 parent 81e40a4 commit c06467a90a3d3ea9073940c043c6504888b208ee jacob committed
View
11 django_website/manage.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env 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)
View
0 django_website/settings/main.py → django_website/settings.py
File renamed without changes.
View
0 django_website/settings/__init__.py
No changes.
View
21 django_website/settings/admin.py
@@ -1,21 +0,0 @@
-from django_website.settings.main import *
-
-PREPEND_WWW = False
-TEMPLATE_DIRS = (
- '/home/html/templates/admin.djangoproject.com/',
-# '/home/html/templates/shared-admin/',
-)
-INSTALLED_APPS = INSTALLED_APPS + ('django.contrib.admin',)
-ROOT_URLCONF = 'django_website.settings.urls.admin'
-MIDDLEWARE_CLASSES = (
- 'django.middleware.sessions.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
-)
-ADMIN_FOR = (
- 'django_website.settings.main',
-)
-ADMIN_MEDIA_PREFIX = '/m/'
-TEMPLATE_LOADERS = (
- 'django.core.template.loaders.filesystem.load_template_source',
- 'django.core.template.loaders.app_directories.load_template_source',
-)
View
0 django_website/settings/urls/__init__.py
No changes.
View
7 django_website/settings/urls/admin.py
@@ -1,7 +0,0 @@
-from django.conf.urls.defaults import *
-
-urlpatterns = patterns('',
- (r'^password_reset/', include('django.conf.urls.admin_password_reset')),
- (r'^r/', include('django.conf.urls.shortcut')),
- (r'', include('django.contrib.admin.urls.admin')),
-)
View
0 django_website/settings/urls/main.py → django_website/urls.py
File renamed without changes.

0 comments on commit c06467a

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