Skip to content

Commit

Permalink
Move apps outside of the django_website package.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Feb 5, 2013
1 parent f379356 commit 4bdbb80
Show file tree
Hide file tree
Showing 103 changed files with 37 additions and 27 deletions.
2 changes: 2 additions & 0 deletions TODO
@@ -1,2 +1,4 @@
* allow users to "claim" legacy feeds (might do this by hand.)
* get rid of wsgi-scripts, move useful functions to django_*.wsgi
* the aggregator templatetags are dead code and have an import error
* remove django_website.shortcuts
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions django_website/accounts/views.py → accounts/views.py
Expand Up @@ -8,10 +8,12 @@
from django.conf import settings
from django.core import cache
from django.http import HttpResponse

from cla.models import find_agreements
from tracdb import stats as trac_stats

from .forms import ProfileForm
from .models import Profile
from ..trac import stats as trac_stats
from ..cla.models import find_agreements

def user_profile(request, username):
u = get_object_or_404(User, username=username)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion django_website/aggregator/tests.py → aggregator/tests.py
Expand Up @@ -9,9 +9,11 @@
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import Client

from docs.models import DocumentRelease

from .management.commands import send_pending_approval_email
from . import models
from ..docs.models import DocumentRelease

class AggregatorTests(TestCase):

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion django_website/aggregator/views.py → aggregator/views.py
Expand Up @@ -8,9 +8,11 @@
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views.generic.list_detail import object_list

from django_website.shortcuts import render

from .models import FeedItem, Feed, FeedType, APPROVED_FEED
from .forms import FeedModelForm
from ..shortcuts import render

def index(request):
"""
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions django_docs/settings.py
Expand Up @@ -10,7 +10,7 @@
# Keep around debug_toolbar and raven if the parent settings module installed
# them.
_new_apps = [
'django_website.docs',
'docs',
'haystack',
]
if 'debug_toolbar' in INSTALLED_APPS:
Expand All @@ -26,7 +26,7 @@
DOCS_BUILD_ROOT = '/tmp/djangodocs'

# Haystack settings
HAYSTACK_SITECONF = 'django_website.docs.search_sites'
HAYSTACK_SITECONF = 'docs.search_sites'
if PRODUCTION:
HAYSTACK_SEARCH_ENGINE = 'xapian'
HAYSTACK_XAPIAN_PATH = BASE.ancestor(2).child('djangodocs.index')
Expand Down
2 changes: 1 addition & 1 deletion django_docs/urls.py
Expand Up @@ -2,7 +2,7 @@
from django.conf.urls.defaults import *
from haystack.views import search_view_factory

from django_website.docs import views
from docs import views

urlpatterns = patterns('',
url(
Expand Down
2 changes: 1 addition & 1 deletion django_website/context_processors.py
@@ -1,7 +1,7 @@
from django.conf import settings
from django.core.cache import cache

from django_website.docs.models import DocumentRelease
from docs.models import DocumentRelease

def recent_release(request):
recent_release = cache.get('recent_release')
Expand Down
3 changes: 2 additions & 1 deletion django_website/sitemaps.py
Expand Up @@ -3,7 +3,8 @@
import datetime
from django.contrib.sitemaps import Sitemap
from django.contrib.flatpages.models import FlatPage
from .blog.models import Entry

from blog.models import Entry

class FlatPageSitemap(Sitemap):
"""
Expand Down
18 changes: 9 additions & 9 deletions django_www/settings.py
Expand Up @@ -35,7 +35,7 @@
'USER': 'code.djangoproject'
}
}
DATABASE_ROUTERS = ['django_website.trac.db_router.TracRouter']
DATABASE_ROUTERS = ['tracdb.db_router.TracRouter']

USE_I18N = False
USE_L10N = False
Expand Down Expand Up @@ -72,13 +72,13 @@
'django.contrib.sessions',
'django.contrib.sitemaps',
'django_push.subscriber',
'django_website.blog',
'django_website.accounts',
'django_website.aggregator',
'django_website.cla',
'django_website.docs',
'django_website.svntogit',
'django_website.trac',
'blog',
'accounts',
'aggregator',
'cla',
'docs',
'svntogit',
'tracdb',
'registration',
'south',
'djangosecure',
Expand Down Expand Up @@ -179,7 +179,7 @@

# PubSubHubbub settings
PUSH_HUB = 'https://superfeedr.com/hubbub'
PUSH_CREDENTIALS = 'django_website.aggregator.utils.push_credentials'
PUSH_CREDENTIALS = 'aggregator.utils.push_credentials'
PUSH_SSL_CALLBACK = PRODUCTION

# Lock down some security stuff
Expand Down
19 changes: 10 additions & 9 deletions django_www/urls.py
Expand Up @@ -9,9 +9,10 @@
from django.contrib.sitemaps import views as sitemap_views
from django.views.decorators.cache import cache_page
from django.views.generic.simple import redirect_to
from django_website.accounts import views as account_views
from django_website.aggregator.feeds import CommunityAggregatorFeed, CommunityAggregatorFirehoseFeed
from django_website.blog.feeds import WeblogEntryFeed

from accounts import views as account_views
from aggregator.feeds import CommunityAggregatorFeed, CommunityAggregatorFirehoseFeed
from blog.feeds import WeblogEntryFeed
from django_website.sitemaps import FlatPageSitemap, WeblogSitemap

admin.autodiscover()
Expand All @@ -31,12 +32,12 @@

urlpatterns = patterns('',
url(r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'homepage.html'}, name="homepage"),
url(r'^accounts/', include('django_website.accounts.urls')),
url(r'^accounts/', include('accounts.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^comments/$', 'django.views.generic.list_detail.object_list', comments_info_dict),
url(r'^comments/', include('django.contrib.comments.urls')),
url(r'^community/', include('django_website.aggregator.urls')),
url(r'^contact/', include('django_website.contact.urls')),
url(r'^community/', include('aggregator.urls')),
url(r'^contact/', include('contact.urls')),
url(r'^r/', include('django.conf.urls.shortcut')),

# There's no school like the old school.
Expand All @@ -57,11 +58,11 @@
url(r'^subscriber/', include('django_push.subscriber.urls')),

url(r'^sitemap\.xml$', cache_page(sitemap_views.sitemap, 60 * 60 * 6), {'sitemaps': sitemaps}),
url(r'^weblog/', include('django_website.blog.urls')),
url(r'^weblog/', include('blog.urls')),
url(r'^freenode\.9xJY7YIUWtwn\.html$', 'django.views.generic.simple.direct_to_template', {'template': 'freenode_tmp.html'}),
url(r'^download$', flatpage, {'url': 'download'}, name="download"),
url(r'^svntogit/', include('django_website.svntogit.urls')),
url(r'', include('django_website.legacy.urls')),
url(r'^svntogit/', include('svntogit.urls')),
url(r'', include('legacy.urls')),
)

if not settings.PRODUCTION:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added tracdb/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
Empty file added tracdb/migrations/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4bdbb80

Please sign in to comment.