Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Move apps outside of the django_website package.

  • Loading branch information...
commit 4bdbb80a8f6de3b85c31fdbb9aaa0d2747a83d5a 1 parent f379356
Aymeric Augustin authored February 05, 2013

Showing 103 changed files with 37 additions and 27 deletions. Show diff stats Hide diff stats

  1. 2  TODO
  2. 0  __init__.py b/tracdb/__init__.py
  3. 0  {django_website → }/accounts/__init__.py
  4. 0  {django_website → }/accounts/forms.py
  5. 0  {django_website → }/accounts/migrations/0001_initial.py
  6. 0  {django_website → }/accounts/migrations/__init__.py
  7. 0  {django_website → }/accounts/models.py
  8. 0  {django_website → }/accounts/profile_urls.py
  9. 0  {django_website → }/accounts/urls.py
  10. 6  {django_website → }/accounts/views.py
  11. 0  {django_website → }/aggregator/__init__.py
  12. 0  {django_website → }/aggregator/admin.py
  13. 0  {django_website → }/aggregator/feeds.py
  14. 0  {django_website → }/aggregator/forms.py
  15. 0  {django_website → }/aggregator/management/__init__.py
  16. 0  {django_website → }/aggregator/management/commands/__init__.py
  17. 0  {django_website → }/aggregator/management/commands/send_pending_approval_email.py
  18. 0  {django_website → }/aggregator/migrations/0001_initial.py
  19. 0  {django_website → }/aggregator/migrations/0002_rename_tables.py
  20. 0  {django_website → }/aggregator/migrations/0003_add_feed_owner.py
  21. 0  {django_website → }/aggregator/migrations/0004_add_approval_status_field.py
  22. 0  {django_website → }/aggregator/migrations/0005_add_feed_approver_auth_group.py
  23. 0  {django_website → }/aggregator/migrations/__init__.py
  24. 0  {django_website → }/aggregator/models.py
  25. 0  {django_website → }/aggregator/templatetags/__init__.py
  26. 0  {django_website → }/aggregator/templatetags/aggregator.py
  27. 4  {django_website → }/aggregator/tests.py
  28. 0  {django_website → }/aggregator/urls.py
  29. 0  {django_website → }/aggregator/utils.py
  30. 4  {django_website → }/aggregator/views.py
  31. 0  {django_website → }/blog/__init__.py
  32. 0  {django_website → }/blog/admin.py
  33. 0  {django_website → }/blog/feeds.py
  34. 0  {django_website → }/blog/migrations/0001_initial.py
  35. 0  {django_website → }/blog/migrations/0002_auto__add_field_entry_is_active.py
  36. 0  {django_website → }/blog/migrations/0003_activate_existing_entries.py
  37. 0  {django_website → }/blog/migrations/0004_auto__add_field_entry_summary_html__add_field_entry_body_html.py
  38. 0  {django_website → }/blog/migrations/0005_copy_entry_summary_and_body_to_html.py
  39. 0  {django_website → }/blog/migrations/0006_auto__add_field_entry_use_raw_html.py
  40. 0  {django_website → }/blog/migrations/0007_existing_entries_are_raw_html.py
  41. 0  {django_website → }/blog/migrations/0008_auto__del_field_entry_use_raw_html.py
  42. 0  {django_website → }/blog/migrations/0009_auto__add_field_entry_content_format.py
  43. 0  {django_website → }/blog/migrations/__init__.py
  44. 0  {django_website → }/blog/models.py
  45. 0  {django_website → }/blog/templatetags/__init__.py
  46. 0  {django_website → }/blog/templatetags/weblog.py
  47. 0  {django_website → }/blog/urls.py
  48. 0  {django_website → }/blog/views.py
  49. 0  {django_website → }/cla/__init__.py
  50. 0  {django_website → }/cla/admin.py
  51. 0  {django_website → }/cla/migrations/0001_initial.py
  52. 0  {django_website → }/cla/migrations/__init__.py
  53. 0  {django_website → }/cla/models.py
  54. 0  {django_website → }/contact/__init__.py
  55. 0  {django_website → }/contact/forms.py
  56. 0  {django_website/svntogit → contact}/models.py
  57. 0  {django_website → }/contact/urls.py
  58. 4  django_docs/settings.py
  59. 2  django_docs/urls.py
  60. 2  django_website/context_processors.py
  61. 3  django_website/sitemaps.py
  62. 18  django_www/settings.py
  63. 19  django_www/urls.py
  64. 0  {django_website → }/docs/__init__.py
  65. 0  {django_website → }/docs/admin.py
  66. 0  {django_website → }/docs/fixtures/doc_releases.json
  67. 0  {django_website → }/docs/forms.py
  68. 0  {django_website → }/docs/management/__init__.py
  69. 0  {django_website → }/docs/management/commands/__init__.py
  70. 0  {django_website → }/docs/management/commands/update_docs.py
  71. 0  {django_website → }/docs/migrations/0001_initial.py
  72. 0  {django_website → }/docs/migrations/0002_add_document_model.py
  73. 0  {django_website → }/docs/migrations/0003_fix_document_model.py
  74. 0  {django_website → }/docs/migrations/0004_add_git_support.py
  75. 0  {django_website → }/docs/migrations/__init__.py
  76. 0  {django_website → }/docs/models.py
  77. 0  {django_website → }/docs/search_indexes.py
  78. 0  {django_website → }/docs/search_sites.py
  79. 0  {django_website → }/docs/templates/docs/doc.html
  80. 0  {django_website → }/docs/templates/docs/genindex.html
  81. 0  {django_website → }/docs/templates/docs/index.html
  82. 0  {django_website → }/docs/templates/docs/py-modindex.html
  83. 0  {django_website → }/docs/templates/docs/search.html
  84. 0  {django_website → }/docs/templates/docs/search_form.html
  85. 0  {django_website → }/docs/templatetags/__init__.py
  86. 0  {django_website → }/docs/templatetags/docs.py
  87. 0  {django_website → }/docs/utils.py
  88. 0  {django_website → }/docs/views.py
  89. 0  {django_website → }/legacy/__init__.py
  90. 0  django_website/svntogit/__init__.py → legacy/models.py
  91. 0  {django_website → }/legacy/urls.py
  92. 0  {django_website → }/legacy/views.py
  93. 0  migrations/__init__.py b/tracdb/migrations/__init__.py
  94. 0  {django_website/trac → svntogit}/__init__.py
  95. 0  {django_website → }/svntogit/mapping.py
  96. 0  django_website/trac/migrations/__init__.py → svntogit/models.py
  97. 0  {django_website → }/svntogit/urls.py
  98. 0  {django_website → }/svntogit/views.py
  99. 0  {django_website/trac → tracdb}/db_router.py
  100. 0  {django_website/trac → tracdb}/migrations/0001_initial.py
  101. 0  {django_website/trac → tracdb}/models.py
  102. 0  {django_website/trac → tracdb}/stats.py
  103. 0  {django_website/trac → tracdb}/trac.sql
2  TODO
... ...
@@ -1,2 +1,4 @@
1 1
 * allow users to "claim" legacy feeds (might do this by hand.)
2 2
 * get rid of wsgi-scripts, move useful functions to django_*.wsgi
  3
+* the aggregator templatetags are dead code and have an import error
  4
+* remove django_website.shortcuts
0  __init__.py b/tracdb/__init__.py
No changes.
0  django_website/accounts/__init__.py → accounts/__init__.py
File renamed without changes
0  django_website/accounts/forms.py → accounts/forms.py
File renamed without changes
0  django_website/accounts/migrations/0001_initial.py → accounts/migrations/0001_initial.py
File renamed without changes
0  django_website/accounts/migrations/__init__.py → accounts/migrations/__init__.py
File renamed without changes
0  django_website/accounts/models.py → accounts/models.py
File renamed without changes
0  django_website/accounts/profile_urls.py → accounts/profile_urls.py
File renamed without changes
0  django_website/accounts/urls.py → accounts/urls.py
File renamed without changes
6  django_website/accounts/views.py → accounts/views.py
@@ -8,10 +8,12 @@
8 8
 from django.conf import settings
9 9
 from django.core import cache
10 10
 from django.http import HttpResponse
  11
+
  12
+from cla.models import find_agreements
  13
+from tracdb import stats as trac_stats
  14
+
11 15
 from .forms import ProfileForm
12 16
 from .models import Profile
13  
-from ..trac import stats as trac_stats
14  
-from ..cla.models import find_agreements
15 17
 
16 18
 def user_profile(request, username):
17 19
     u = get_object_or_404(User, username=username)
0  django_website/aggregator/__init__.py → aggregator/__init__.py
File renamed without changes
0  django_website/aggregator/admin.py → aggregator/admin.py
File renamed without changes
0  django_website/aggregator/feeds.py → aggregator/feeds.py
File renamed without changes
0  django_website/aggregator/forms.py → aggregator/forms.py
File renamed without changes
0  django_website/aggregator/management/__init__.py → aggregator/management/__init__.py
File renamed without changes
0  ...ebsite/aggregator/management/commands/__init__.py → aggregator/management/commands/__init__.py
File renamed without changes
0  ...anagement/commands/send_pending_approval_email.py → ...anagement/commands/send_pending_approval_email.py
File renamed without changes
0  django_website/aggregator/migrations/0001_initial.py → aggregator/migrations/0001_initial.py
File renamed without changes
0  ...bsite/aggregator/migrations/0002_rename_tables.py → aggregator/migrations/0002_rename_tables.py
File renamed without changes
0  ...site/aggregator/migrations/0003_add_feed_owner.py → aggregator/migrations/0003_add_feed_owner.py
File renamed without changes
0  ...ator/migrations/0004_add_approval_status_field.py → ...ator/migrations/0004_add_approval_status_field.py
File renamed without changes
0  ...r/migrations/0005_add_feed_approver_auth_group.py → ...r/migrations/0005_add_feed_approver_auth_group.py
File renamed without changes
0  django_website/aggregator/migrations/__init__.py → aggregator/migrations/__init__.py
File renamed without changes
0  django_website/aggregator/models.py → aggregator/models.py
File renamed without changes
0  django_website/aggregator/templatetags/__init__.py → aggregator/templatetags/__init__.py
File renamed without changes
0  django_website/aggregator/templatetags/aggregator.py → aggregator/templatetags/aggregator.py
File renamed without changes
4  django_website/aggregator/tests.py → aggregator/tests.py
@@ -9,9 +9,11 @@
9 9
 from django.core.urlresolvers import reverse
10 10
 from django.test import TestCase
11 11
 from django.test.client import Client
  12
+
  13
+from docs.models import DocumentRelease
  14
+
12 15
 from .management.commands import send_pending_approval_email
13 16
 from . import models
14  
-from ..docs.models import DocumentRelease
15 17
 
16 18
 class AggregatorTests(TestCase):
17 19
 
0  django_website/aggregator/urls.py → aggregator/urls.py
File renamed without changes
0  django_website/aggregator/utils.py → aggregator/utils.py
File renamed without changes
4  django_website/aggregator/views.py → aggregator/views.py
@@ -8,9 +8,11 @@
8 8
 from django.http import HttpResponseRedirect
9 9
 from django.core.urlresolvers import reverse
10 10
 from django.views.generic.list_detail import object_list
  11
+
  12
+from django_website.shortcuts import render
  13
+
11 14
 from .models import FeedItem, Feed, FeedType, APPROVED_FEED
12 15
 from .forms import FeedModelForm
13  
-from ..shortcuts import render
14 16
 
15 17
 def index(request):
16 18
     """
0  django_website/blog/__init__.py → blog/__init__.py
File renamed without changes
0  django_website/blog/admin.py → blog/admin.py
File renamed without changes
0  django_website/blog/feeds.py → blog/feeds.py
File renamed without changes
0  django_website/blog/migrations/0001_initial.py → blog/migrations/0001_initial.py
File renamed without changes
0  ...igrations/0002_auto__add_field_entry_is_active.py → ...igrations/0002_auto__add_field_entry_is_active.py
File renamed without changes
0  ...blog/migrations/0003_activate_existing_entries.py → blog/migrations/0003_activate_existing_entries.py
File renamed without changes
0  ..._entry_summary_html__add_field_entry_body_html.py → ..._entry_summary_html__add_field_entry_body_html.py
File renamed without changes
0  ...tions/0005_copy_entry_summary_and_body_to_html.py → ...tions/0005_copy_entry_summary_and_body_to_html.py
File renamed without changes
0  ...ations/0006_auto__add_field_entry_use_raw_html.py → ...ations/0006_auto__add_field_entry_use_raw_html.py
File renamed without changes
0  .../migrations/0007_existing_entries_are_raw_html.py → .../migrations/0007_existing_entries_are_raw_html.py
File renamed without changes
0  ...ations/0008_auto__del_field_entry_use_raw_html.py → ...ations/0008_auto__del_field_entry_use_raw_html.py
File renamed without changes
0  ...ions/0009_auto__add_field_entry_content_format.py → ...ions/0009_auto__add_field_entry_content_format.py
File renamed without changes
0  django_website/blog/migrations/__init__.py → blog/migrations/__init__.py
File renamed without changes
0  django_website/blog/models.py → blog/models.py
File renamed without changes
0  django_website/blog/templatetags/__init__.py → blog/templatetags/__init__.py
File renamed without changes
0  django_website/blog/templatetags/weblog.py → blog/templatetags/weblog.py
File renamed without changes
0  django_website/blog/urls.py → blog/urls.py
File renamed without changes
0  django_website/blog/views.py → blog/views.py
File renamed without changes
0  django_website/cla/__init__.py → cla/__init__.py
File renamed without changes
0  django_website/cla/admin.py → cla/admin.py
File renamed without changes
0  django_website/cla/migrations/0001_initial.py → cla/migrations/0001_initial.py
File renamed without changes
0  django_website/cla/migrations/__init__.py → cla/migrations/__init__.py
File renamed without changes
0  django_website/cla/models.py → cla/models.py
File renamed without changes
0  django_website/contact/__init__.py → contact/__init__.py
File renamed without changes
0  django_website/contact/forms.py → contact/forms.py
File renamed without changes
0  django_website/svntogit/models.py → contact/models.py
File renamed without changes
0  django_website/contact/urls.py → contact/urls.py
File renamed without changes
4  django_docs/settings.py
@@ -10,7 +10,7 @@
10 10
 # Keep around debug_toolbar and raven if the parent settings module installed
11 11
 # them.
12 12
 _new_apps = [
13  
-    'django_website.docs',
  13
+    'docs',
14 14
     'haystack',
15 15
 ]
16 16
 if 'debug_toolbar' in INSTALLED_APPS:
@@ -26,7 +26,7 @@
26 26
     DOCS_BUILD_ROOT = '/tmp/djangodocs'
27 27
 
28 28
 # Haystack settings
29  
-HAYSTACK_SITECONF = 'django_website.docs.search_sites'
  29
+HAYSTACK_SITECONF = 'docs.search_sites'
30 30
 if PRODUCTION:
31 31
     HAYSTACK_SEARCH_ENGINE = 'xapian'
32 32
     HAYSTACK_XAPIAN_PATH = BASE.ancestor(2).child('djangodocs.index')
2  django_docs/urls.py
@@ -2,7 +2,7 @@
2 2
 from django.conf.urls.defaults import *
3 3
 from haystack.views import search_view_factory
4 4
 
5  
-from django_website.docs import views
  5
+from docs import views
6 6
 
7 7
 urlpatterns = patterns('',
8 8
     url(
2  django_website/context_processors.py
... ...
@@ -1,7 +1,7 @@
1 1
 from django.conf import settings
2 2
 from django.core.cache import cache
3 3
 
4  
-from django_website.docs.models import DocumentRelease
  4
+from docs.models import DocumentRelease
5 5
 
6 6
 def recent_release(request):
7 7
     recent_release = cache.get('recent_release')
3  django_website/sitemaps.py
@@ -3,7 +3,8 @@
3 3
 import datetime
4 4
 from django.contrib.sitemaps import Sitemap
5 5
 from django.contrib.flatpages.models import FlatPage
6  
-from .blog.models import Entry
  6
+
  7
+from blog.models import Entry
7 8
 
8 9
 class FlatPageSitemap(Sitemap):
9 10
     """
18  django_www/settings.py
@@ -35,7 +35,7 @@
35 35
         'USER': 'code.djangoproject'
36 36
     }
37 37
 }
38  
-DATABASE_ROUTERS = ['django_website.trac.db_router.TracRouter']
  38
+DATABASE_ROUTERS = ['tracdb.db_router.TracRouter']
39 39
 
40 40
 USE_I18N = False
41 41
 USE_L10N = False
@@ -72,13 +72,13 @@
72 72
     'django.contrib.sessions',
73 73
     'django.contrib.sitemaps',
74 74
     'django_push.subscriber',
75  
-    'django_website.blog',
76  
-    'django_website.accounts',
77  
-    'django_website.aggregator',
78  
-    'django_website.cla',
79  
-    'django_website.docs',
80  
-    'django_website.svntogit',
81  
-    'django_website.trac',
  75
+    'blog',
  76
+    'accounts',
  77
+    'aggregator',
  78
+    'cla',
  79
+    'docs',
  80
+    'svntogit',
  81
+    'tracdb',
82 82
     'registration',
83 83
     'south',
84 84
     'djangosecure',
@@ -179,7 +179,7 @@
179 179
 
180 180
 # PubSubHubbub settings
181 181
 PUSH_HUB = 'https://superfeedr.com/hubbub'
182  
-PUSH_CREDENTIALS = 'django_website.aggregator.utils.push_credentials'
  182
+PUSH_CREDENTIALS = 'aggregator.utils.push_credentials'
183 183
 PUSH_SSL_CALLBACK = PRODUCTION
184 184
 
185 185
 # Lock down some security stuff
19  django_www/urls.py
@@ -9,9 +9,10 @@
9 9
 from django.contrib.sitemaps import views as sitemap_views
10 10
 from django.views.decorators.cache import cache_page
11 11
 from django.views.generic.simple import redirect_to
12  
-from django_website.accounts import views as account_views
13  
-from django_website.aggregator.feeds import CommunityAggregatorFeed, CommunityAggregatorFirehoseFeed
14  
-from django_website.blog.feeds import WeblogEntryFeed
  12
+
  13
+from accounts import views as account_views
  14
+from aggregator.feeds import CommunityAggregatorFeed, CommunityAggregatorFirehoseFeed
  15
+from blog.feeds import WeblogEntryFeed
15 16
 from django_website.sitemaps import FlatPageSitemap, WeblogSitemap
16 17
 
17 18
 admin.autodiscover()
@@ -31,12 +32,12 @@
31 32
 
32 33
 urlpatterns = patterns('',
33 34
     url(r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'homepage.html'}, name="homepage"),
34  
-    url(r'^accounts/', include('django_website.accounts.urls')),
  35
+    url(r'^accounts/', include('accounts.urls')),
35 36
     url(r'^admin/', include(admin.site.urls)),
36 37
     url(r'^comments/$', 'django.views.generic.list_detail.object_list', comments_info_dict),
37 38
     url(r'^comments/', include('django.contrib.comments.urls')),
38  
-    url(r'^community/', include('django_website.aggregator.urls')),
39  
-    url(r'^contact/', include('django_website.contact.urls')),
  39
+    url(r'^community/', include('aggregator.urls')),
  40
+    url(r'^contact/', include('contact.urls')),
40 41
     url(r'^r/', include('django.conf.urls.shortcut')),
41 42
 
42 43
     # There's no school like the old school.
@@ -57,11 +58,11 @@
57 58
     url(r'^subscriber/', include('django_push.subscriber.urls')),
58 59
 
59 60
     url(r'^sitemap\.xml$', cache_page(sitemap_views.sitemap, 60 * 60 * 6), {'sitemaps': sitemaps}),
60  
-    url(r'^weblog/', include('django_website.blog.urls')),
  61
+    url(r'^weblog/', include('blog.urls')),
61 62
     url(r'^freenode\.9xJY7YIUWtwn\.html$', 'django.views.generic.simple.direct_to_template', {'template': 'freenode_tmp.html'}),
62 63
     url(r'^download$', flatpage, {'url': 'download'}, name="download"),
63  
-    url(r'^svntogit/', include('django_website.svntogit.urls')),
64  
-    url(r'', include('django_website.legacy.urls')),
  64
+    url(r'^svntogit/', include('svntogit.urls')),
  65
+    url(r'', include('legacy.urls')),
65 66
 )
66 67
 
67 68
 if not settings.PRODUCTION:
0  django_website/docs/__init__.py → docs/__init__.py
File renamed without changes
0  django_website/docs/admin.py → docs/admin.py
File renamed without changes
0  django_website/docs/fixtures/doc_releases.json → docs/fixtures/doc_releases.json
File renamed without changes
0  django_website/docs/forms.py → docs/forms.py
File renamed without changes
0  django_website/docs/management/__init__.py → docs/management/__init__.py
File renamed without changes
0  django_website/docs/management/commands/__init__.py → docs/management/commands/__init__.py
File renamed without changes
0  ...o_website/docs/management/commands/update_docs.py → docs/management/commands/update_docs.py
File renamed without changes
0  django_website/docs/migrations/0001_initial.py → docs/migrations/0001_initial.py
File renamed without changes
0  ...ebsite/docs/migrations/0002_add_document_model.py → docs/migrations/0002_add_document_model.py
File renamed without changes
0  ...ebsite/docs/migrations/0003_fix_document_model.py → docs/migrations/0003_fix_document_model.py
File renamed without changes
0  ...o_website/docs/migrations/0004_add_git_support.py → docs/migrations/0004_add_git_support.py
File renamed without changes
0  django_website/docs/migrations/__init__.py → docs/migrations/__init__.py
File renamed without changes
0  django_website/docs/models.py → docs/models.py
File renamed without changes
0  django_website/docs/search_indexes.py → docs/search_indexes.py
File renamed without changes
0  django_website/docs/search_sites.py → docs/search_sites.py
File renamed without changes
0  django_website/docs/templates/docs/doc.html → docs/templates/docs/doc.html
File renamed without changes
0  django_website/docs/templates/docs/genindex.html → docs/templates/docs/genindex.html
File renamed without changes
0  django_website/docs/templates/docs/index.html → docs/templates/docs/index.html
File renamed without changes
0  django_website/docs/templates/docs/py-modindex.html → docs/templates/docs/py-modindex.html
File renamed without changes
0  django_website/docs/templates/docs/search.html → docs/templates/docs/search.html
File renamed without changes
0  django_website/docs/templates/docs/search_form.html → docs/templates/docs/search_form.html
File renamed without changes
0  django_website/docs/templatetags/__init__.py → docs/templatetags/__init__.py
File renamed without changes
0  django_website/docs/templatetags/docs.py → docs/templatetags/docs.py
File renamed without changes
0  django_website/docs/utils.py → docs/utils.py
File renamed without changes
0  django_website/docs/views.py → docs/views.py
File renamed without changes
0  django_website/legacy/__init__.py → legacy/__init__.py
File renamed without changes
0  django_website/svntogit/__init__.py → legacy/models.py
File renamed without changes
0  django_website/legacy/urls.py → legacy/urls.py
File renamed without changes
0  django_website/legacy/views.py → legacy/views.py
File renamed without changes
0  migrations/__init__.py b/tracdb/migrations/__init__.py
No changes.
0  django_website/trac/__init__.py → svntogit/__init__.py
File renamed without changes
0  django_website/svntogit/mapping.py → svntogit/mapping.py
File renamed without changes
0  django_website/trac/migrations/__init__.py → svntogit/models.py
File renamed without changes
0  django_website/svntogit/urls.py → svntogit/urls.py
File renamed without changes
0  django_website/svntogit/views.py → svntogit/views.py
File renamed without changes
0  django_website/trac/db_router.py → tracdb/db_router.py
File renamed without changes
0  django_website/trac/migrations/0001_initial.py → tracdb/migrations/0001_initial.py
File renamed without changes
0  django_website/trac/models.py → tracdb/models.py
File renamed without changes
0  django_website/trac/stats.py → tracdb/stats.py
File renamed without changes
0  django_website/trac/trac.sql → tracdb/trac.sql
File renamed without changes

0 notes on commit 4bdbb80

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