Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
83 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from __future__ import absolute_import | ||
|
||
from django.conf.urls.defaults import * | ||
from . import views | ||
|
||
urlpatterns = patterns('', | ||
url(r'^$', | ||
views.index, | ||
name = 'community-index' | ||
), | ||
url( | ||
r'^(?P<feed_type_slug>[-\w]+)/$', | ||
views.feed_list, | ||
name = "community-feed-list" | ||
), | ||
url( | ||
r'^add/$', | ||
views.feed_type_list, | ||
name = "community-add-feed-list" | ||
), | ||
url( | ||
r'^add/(?P<feed_type_slug>[-\w]+)/$', | ||
views.add_feed, | ||
name = 'community-add-feed' | ||
), | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Legacy URLs for documentation pages. | ||
""" | ||
|
||
from __future__ import absolute_import | ||
|
||
from django.conf.urls.defaults import * | ||
from .views import gone | ||
|
||
urlpatterns = patterns('', | ||
(r'^documentation/$', gone), | ||
(r'^documentation/(?P<version>[\d.]+)/$', gone), | ||
(r'^documentation/models/$', gone), | ||
(r'^documentation/models/(?P<slug>\w+)/$', gone), | ||
(r'^documentation/(?P<version>[\d.]+)/models/$', gone), | ||
(r'^documentation/(?P<version>[\d.]+)/models/(?P<slug>\w+)/$', gone), | ||
(r'^documentation/(?P<version>[\d.]+)/(?P<slug>[\w\.-]+)/$', gone), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
BEGIN; | ||
INSERT INTO aggregator_feedtype (name, slug, can_self_add) | ||
VALUES ('Blog feed', 'feed', true); | ||
ALTER TABLE aggregator_feeds | ||
ADD COLUMN feed_type_id INTEGER NULL | ||
REFERENCES aggregator_feedtype (id) DEFERRABLE INITIALLY DEFERRED; | ||
UPDATE aggregator_feeds | ||
SET feed_type_id = (SELECT id FROM aggregator_feedtype WHERE slug = 'feed'); | ||
COMMIT; | ||
|
||
-- Can't alter the column in the same transaction as inserting data pointing to it. | ||
|
||
BEGIN; | ||
ALTER TABLE aggregator_feeds ALTER COLUMN feed_type_id SET NOT NULL; | ||
COMMIT; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
import sys | ||
sys.path.append(os.path.abspath(os.path.dirname(__file__))) | ||
|
||
import djangodocs.settings | ||
from django.core.management import execute_manager | ||
execute_manager(djangodocs.settings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
import sys | ||
sys.path.append(os.path.abspath(os.path.dirname(__file__))) | ||
|
||
import django_website.settings | ||
from django.core.management import execute_manager | ||
execute_manager(django_website.settings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Django >= 1.2, < 1.3 | ||
django-registration == 0.7 | ||
akismet == 0.2.0 | ||
FeedParser == 4.1 | ||
FeedParser >= 4.1, < 5.0 | ||
psycopg2 >= 2.2, < 2.3 |