Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c06467a90a3d3ea9073940c043c6504888b208ee 1 parent 81e40a4
jacob authored
11 django_website/manage.py
View
@@ -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)
0  django_website/settings/main.py → django_website/settings.py
View
File renamed without changes
0  django_website/settings/__init__.py
View
No changes.
21 django_website/settings/admin.py
View
@@ -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',
-)
0  django_website/settings/urls/__init__.py
View
No changes.
7 django_website/settings/urls/admin.py
View
@@ -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')),
-)
0  django_website/settings/urls/main.py → django_website/urls.py
View
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.