We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove rss feed
All code related to this should be removed, isn't useful.

https://github.com/readthedocs/readthedocs.org/blob/1ce31662650d6defa434587ec0325f044052ee72/readthedocs/core/urls/__init__.py#L55-L66

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `readthedocs/core/urls/__init__.py`
Content:
```
1 """URL configuration for core app."""
2 
3 from __future__ import absolute_import
4 from django.conf.urls import url
5 
6 from readthedocs.constants import pattern_opts
7 from readthedocs.core import views
8 from readthedocs.core.views import serve
9 from readthedocs.projects.feeds import LatestProjectsFeed, NewProjectsFeed
10 
11 docs_urls = [
12     url(
13         (
14             r'^docs/(?P<project_slug>{project_slug})/page/'
15             r'(?P<filename>{filename_slug})$'.format(**pattern_opts)
16         ),
17         serve.redirect_page_with_filename,
18         name='docs_detail',
19     ),
20     url(
21         (
22             r'^docs/(?P<project_slug>{project_slug})/'
23             r'(?:|projects/(?P<subproject_slug>{project_slug})/)$'.format(
24                 **pattern_opts
25             )
26         ),
27         serve.redirect_project_slug,
28         name='docs_detail',
29     ),
30     url(
31         (
32             r'^docs/(?P<project_slug>{project_slug})/'
33             r'(?:|projects/(?P<subproject_slug>{project_slug})/)'
34             r'(?P<lang_slug>{lang_slug})/'
35             r'(?P<version_slug>{version_slug})/'
36             r'(?P<filename>{filename_slug})'.format(**pattern_opts)
37         ),
38         serve.serve_docs,
39         name='docs_detail',
40     ),
41 ]
42 
43 core_urls = [
44     # Random other stuff
45     url(
46         (
47             r'^wipe/(?P<project_slug>{project_slug})/'
48             r'(?P<version_slug>{version_slug})/$'.format(**pattern_opts)
49         ),
50         views.wipe_version,
51         name='wipe_version',
52     ),
53 ]
54 
55 deprecated_urls = [
56     url(
57         r'^feeds/new/$',
58         NewProjectsFeed(),
59         name='new_feed',
60     ),
61     url(
62         r'^feeds/latest/$',
63         LatestProjectsFeed(),
64         name='latest_feed',
65     ),
66 ]
67
```

Path: `readthedocs/urls.py`
Content:
```
1 # pylint: disable=missing-docstring
2 import os
3 from functools import reduce
4 from operator import add
5 
6 from django.conf import settings
7 from django.conf.urls import include, url
8 from django.conf.urls.static import static
9 from django.contrib import admin
10 from django.views.generic.base import RedirectView, TemplateView
11 
12 from readthedocs.core.urls import core_urls, deprecated_urls, docs_urls
13 from readthedocs.core.views import (
14     HomepageView,
15     SupportView,
16     do_not_track,
17     server_error_404,
18     server_error_500,
19 )
20 from readthedocs.search import views as search_views
21 from readthedocs.search.api import PageSearchAPIView
22 
23 
24 admin.autodiscover()
25 
26 handler404 = server_error_404
27 handler500 = server_error_500
28 
29 basic_urls = [
30     url(r'^$', HomepageView.as_view(), name='homepage'),
31     url(r'^support/', SupportView.as_view(), name='support'),
32     url(r'^security/', TemplateView.as_view(template_name='security.html')),
33     url(
34         r'^\.well-known/security.txt$',
35         TemplateView
36         .as_view(template_name='security.txt', content_type='text/plain'),
37     ),
38 ]
39 
40 rtd_urls = [
41     url(r'^search/$', search_views.elastic_search, name='search'),
42     url(r'^dashboard/', include('readthedocs.projects.urls.private')),
43     url(r'^profiles/', include('readthedocs.profiles.urls.public')),
44     url(r'^accounts/', include('readthedocs.profiles.urls.private')),
45     url(r'^accounts/', include('allauth.urls')),
46     url(r'^notifications/', include('readthedocs.notifications.urls')),
47     url(r'^accounts/gold/', include('readthedocs.gold.urls')),
48     # For redirects
49     url(r'^builds/', include('readthedocs.builds.urls')),
50     # For testing the 404's with DEBUG on.
51     url(r'^404/$', handler404),
52     # For testing the 500's with DEBUG on.
53     url(r'^500/$', handler500),
54 ]
55 
56 project_urls = [
57     url(r'^projects/', include('readthedocs.projects.urls.public')),
58 ]
59 
60 api_urls = [
61     url(r'^api/v2/', include('readthedocs.api.v2.urls')),
62     # Keep the `doc_search` at root level, so the test does not fail for other API
63     url(r'^api/v2/docsearch/$', PageSearchAPIView.as_view(), name='doc_search'),
64     url(
65         r'^api-auth/',
66         include('rest_framework.urls', namespace='rest_framework')
67     ),
68     url(r'^api/v3/', include('readthedocs.api.v3.urls')),
69 ]
70 
71 i18n_urls = [
72     url(r'^i18n/', include('django.conf.urls.i18n')),
73 ]
74 
75 admin_urls = [
76     url(r'^admin/', admin.site.urls),
77 ]
78 
79 dnt_urls = [
80     url(r'^\.well-known/dnt/$', do_not_track),
81 
82     # https://github.com/EFForg/dnt-guide#12-how-to-assert-dnt-compliance
83     url(
84         r'^\.well-known/dnt-policy.txt$',
85         TemplateView
86         .as_view(template_name='dnt-policy.txt', content_type='text/plain'),
87     ),
88 ]
89 
90 debug_urls = []
91 for build_format in ('epub', 'htmlzip', 'json', 'pdf'):
92     debug_urls += static(
93         settings.MEDIA_URL + build_format,
94         document_root=os.path.join(settings.MEDIA_ROOT, build_format),
95     )
96 debug_urls += [
97     url(
98         'style-catalog/$',
99         TemplateView.as_view(template_name='style_catalog.html'),
100     ),
101 
102     # This must come last after the build output files
103     url(
104         r'^media/(?P<remainder>.+)$',
105         RedirectView.as_view(url=settings.STATIC_URL + '%(remainder)s'),
106         name='media-redirect',
107     ),
108 ]
109 
110 # Export URLs
111 groups = [
112     basic_urls,
113     rtd_urls,
114     project_urls,
115     api_urls,
116     core_urls,
117     i18n_urls,
118     deprecated_urls,
119 ]
120 
121 if settings.DO_NOT_TRACK_ENABLED:
122     # Include Do Not Track URLs if DNT is supported
123     groups.append(dnt_urls)
124 
125 
126 if settings.READ_THE_DOCS_EXTENSIONS:
127     groups.append([
128         url(r'^', include('readthedocsext.urls'))
129     ])
130 
131 if not settings.USE_SUBDOMAIN or settings.DEBUG:
132     groups.insert(0, docs_urls)
133 if settings.ALLOW_ADMIN:
134     groups.append(admin_urls)
135 if settings.DEBUG:
136     import debug_toolbar
137 
138     debug_urls += [
139         url(r'^__debug__/', include(debug_toolbar.urls)),
140     ]
141     groups.append(debug_urls)
142 
143 urlpatterns = reduce(add, groups)
144
```

Path: `readthedocs/projects/feeds.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 
3 """Project RSS feeds."""
4 
5 from django.contrib.syndication.views import Feed
6 
7 from readthedocs.projects.models import Project
8 
9 
10 class LatestProjectsFeed(Feed):
11 
12     """RSS feed for projects that were recently updated."""
13 
14     title = 'Recently updated documentation'
15     link = 'http://readthedocs.org'
16     description = 'Recently updated documentation on Read the Docs'
17 
18     def items(self):
19         return Project.objects.public().order_by('-modified_date')[:10]
20 
21     def item_title(self, item):
22         return item.name
23 
24     def item_description(self, item):
25         return item.get_latest_build()
26 
27 
28 class NewProjectsFeed(Feed):
29 
30     """RSS feed for newly created projects."""
31 
32     title = 'Newest documentation'
33     link = 'http://readthedocs.org'
34     description = 'Recently created documentation on Read the Docs'
35 
36     def items(self):
37         return Project.objects.public().order_by('-pk')[:10]
38 
39     def item_title(self, item):
40         return item.name
41 
42     def item_description(self, item):
43         return item.get_latest_build()
44
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/readthedocs/core/urls/__init__.py b/readthedocs/core/urls/__init__.py
--- a/readthedocs/core/urls/__init__.py
+++ b/readthedocs/core/urls/__init__.py
@@ -6,7 +6,7 @@
 from readthedocs.constants import pattern_opts
 from readthedocs.core import views
 from readthedocs.core.views import serve
-from readthedocs.projects.feeds import LatestProjectsFeed, NewProjectsFeed
+
 
 docs_urls = [
     url(
@@ -51,16 +51,3 @@
         name='wipe_version',
     ),
 ]
-
-deprecated_urls = [
-    url(
-        r'^feeds/new/$',
-        NewProjectsFeed(),
-        name='new_feed',
-    ),
-    url(
-        r'^feeds/latest/$',
-        LatestProjectsFeed(),
-        name='latest_feed',
-    ),
-]
diff --git a/readthedocs/projects/feeds.py b/readthedocs/projects/feeds.py
deleted file mode 100644
--- a/readthedocs/projects/feeds.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""Project RSS feeds."""
-
-from django.contrib.syndication.views import Feed
-
-from readthedocs.projects.models import Project
-
-
-class LatestProjectsFeed(Feed):
-
-    """RSS feed for projects that were recently updated."""
-
-    title = 'Recently updated documentation'
-    link = 'http://readthedocs.org'
-    description = 'Recently updated documentation on Read the Docs'
-
-    def items(self):
-        return Project.objects.public().order_by('-modified_date')[:10]
-
-    def item_title(self, item):
-        return item.name
-
-    def item_description(self, item):
-        return item.get_latest_build()
-
-
-class NewProjectsFeed(Feed):
-
-    """RSS feed for newly created projects."""
-
-    title = 'Newest documentation'
-    link = 'http://readthedocs.org'
-    description = 'Recently created documentation on Read the Docs'
-
-    def items(self):
-        return Project.objects.public().order_by('-pk')[:10]
-
-    def item_title(self, item):
-        return item.name
-
-    def item_description(self, item):
-        return item.get_latest_build()
diff --git a/readthedocs/urls.py b/readthedocs/urls.py
--- a/readthedocs/urls.py
+++ b/readthedocs/urls.py
@@ -9,7 +9,7 @@
 from django.contrib import admin
 from django.views.generic.base import RedirectView, TemplateView
 
-from readthedocs.core.urls import core_urls, deprecated_urls, docs_urls
+from readthedocs.core.urls import core_urls, docs_urls
 from readthedocs.core.views import (
     HomepageView,
     SupportView,
@@ -115,7 +115,6 @@
     api_urls,
     core_urls,
     i18n_urls,
-    deprecated_urls,
 ]
 
 if settings.DO_NOT_TRACK_ENABLED:

{"golden_diff": "diff --git a/readthedocs/core/urls/__init__.py b/readthedocs/core/urls/__init__.py\n--- a/readthedocs/core/urls/__init__.py\n+++ b/readthedocs/core/urls/__init__.py\n@@ -6,7 +6,7 @@\n from readthedocs.constants import pattern_opts\n from readthedocs.core import views\n from readthedocs.core.views import serve\n-from readthedocs.projects.feeds import LatestProjectsFeed, NewProjectsFeed\n+\n \n docs_urls = [\n     url(\n@@ -51,16 +51,3 @@\n         name='wipe_version',\n     ),\n ]\n-\n-deprecated_urls = [\n-    url(\n-        r'^feeds/new/$',\n-        NewProjectsFeed(),\n-        name='new_feed',\n-    ),\n-    url(\n-        r'^feeds/latest/$',\n-        LatestProjectsFeed(),\n-        name='latest_feed',\n-    ),\n-]\ndiff --git a/readthedocs/projects/feeds.py b/readthedocs/projects/feeds.py\ndeleted file mode 100644\n--- a/readthedocs/projects/feeds.py\n+++ /dev/null\n@@ -1,43 +0,0 @@\n-# -*- coding: utf-8 -*-\n-\n-\"\"\"Project RSS feeds.\"\"\"\n-\n-from django.contrib.syndication.views import Feed\n-\n-from readthedocs.projects.models import Project\n-\n-\n-class LatestProjectsFeed(Feed):\n-\n-    \"\"\"RSS feed for projects that were recently updated.\"\"\"\n-\n-    title = 'Recently updated documentation'\n-    link = 'http://readthedocs.org'\n-    description = 'Recently updated documentation on Read the Docs'\n-\n-    def items(self):\n-        return Project.objects.public().order_by('-modified_date')[:10]\n-\n-    def item_title(self, item):\n-        return item.name\n-\n-    def item_description(self, item):\n-        return item.get_latest_build()\n-\n-\n-class NewProjectsFeed(Feed):\n-\n-    \"\"\"RSS feed for newly created projects.\"\"\"\n-\n-    title = 'Newest documentation'\n-    link = 'http://readthedocs.org'\n-    description = 'Recently created documentation on Read the Docs'\n-\n-    def items(self):\n-        return Project.objects.public().order_by('-pk')[:10]\n-\n-    def item_title(self, item):\n-        return item.name\n-\n-    def item_description(self, item):\n-        return item.get_latest_build()\ndiff --git a/readthedocs/urls.py b/readthedocs/urls.py\n--- a/readthedocs/urls.py\n+++ b/readthedocs/urls.py\n@@ -9,7 +9,7 @@\n from django.contrib import admin\n from django.views.generic.base import RedirectView, TemplateView\n \n-from readthedocs.core.urls import core_urls, deprecated_urls, docs_urls\n+from readthedocs.core.urls import core_urls, docs_urls\n from readthedocs.core.views import (\n     HomepageView,\n     SupportView,\n@@ -115,7 +115,6 @@\n     api_urls,\n     core_urls,\n     i18n_urls,\n-    deprecated_urls,\n ]\n \n if settings.DO_NOT_TRACK_ENABLED:\n", "issue": "Remove rss feed\nAll code related to this should be removed, isn't useful.\r\n\r\nhttps://github.com/readthedocs/readthedocs.org/blob/1ce31662650d6defa434587ec0325f044052ee72/readthedocs/core/urls/__init__.py#L55-L66\n", "before_files": [{"content": "\"\"\"URL configuration for core app.\"\"\"\n\nfrom __future__ import absolute_import\nfrom django.conf.urls import url\n\nfrom readthedocs.constants import pattern_opts\nfrom readthedocs.core import views\nfrom readthedocs.core.views import serve\nfrom readthedocs.projects.feeds import LatestProjectsFeed, NewProjectsFeed\n\ndocs_urls = [\n    url(\n        (\n            r'^docs/(?P<project_slug>{project_slug})/page/'\n            r'(?P<filename>{filename_slug})$'.format(**pattern_opts)\n        ),\n        serve.redirect_page_with_filename,\n        name='docs_detail',\n    ),\n    url(\n        (\n            r'^docs/(?P<project_slug>{project_slug})/'\n            r'(?:|projects/(?P<subproject_slug>{project_slug})/)$'.format(\n                **pattern_opts\n            )\n        ),\n        serve.redirect_project_slug,\n        name='docs_detail',\n    ),\n    url(\n        (\n            r'^docs/(?P<project_slug>{project_slug})/'\n            r'(?:|projects/(?P<subproject_slug>{project_slug})/)'\n            r'(?P<lang_slug>{lang_slug})/'\n            r'(?P<version_slug>{version_slug})/'\n            r'(?P<filename>{filename_slug})'.format(**pattern_opts)\n        ),\n        serve.serve_docs,\n        name='docs_detail',\n    ),\n]\n\ncore_urls = [\n    # Random other stuff\n    url(\n        (\n            r'^wipe/(?P<project_slug>{project_slug})/'\n            r'(?P<version_slug>{version_slug})/$'.format(**pattern_opts)\n        ),\n        views.wipe_version,\n        name='wipe_version',\n    ),\n]\n\ndeprecated_urls = [\n    url(\n        r'^feeds/new/$',\n        NewProjectsFeed(),\n        name='new_feed',\n    ),\n    url(\n        r'^feeds/latest/$',\n        LatestProjectsFeed(),\n        name='latest_feed',\n    ),\n]\n", "path": "readthedocs/core/urls/__init__.py"}, {"content": "# pylint: disable=missing-docstring\nimport os\nfrom functools import reduce\nfrom operator import add\n\nfrom django.conf import settings\nfrom django.conf.urls import include, url\nfrom django.conf.urls.static import static\nfrom django.contrib import admin\nfrom django.views.generic.base import RedirectView, TemplateView\n\nfrom readthedocs.core.urls import core_urls, deprecated_urls, docs_urls\nfrom readthedocs.core.views import (\n    HomepageView,\n    SupportView,\n    do_not_track,\n    server_error_404,\n    server_error_500,\n)\nfrom readthedocs.search import views as search_views\nfrom readthedocs.search.api import PageSearchAPIView\n\n\nadmin.autodiscover()\n\nhandler404 = server_error_404\nhandler500 = server_error_500\n\nbasic_urls = [\n    url(r'^$', HomepageView.as_view(), name='homepage'),\n    url(r'^support/', SupportView.as_view(), name='support'),\n    url(r'^security/', TemplateView.as_view(template_name='security.html')),\n    url(\n        r'^\\.well-known/security.txt$',\n        TemplateView\n        .as_view(template_name='security.txt', content_type='text/plain'),\n    ),\n]\n\nrtd_urls = [\n    url(r'^search/$', search_views.elastic_search, name='search'),\n    url(r'^dashboard/', include('readthedocs.projects.urls.private')),\n    url(r'^profiles/', include('readthedocs.profiles.urls.public')),\n    url(r'^accounts/', include('readthedocs.profiles.urls.private')),\n    url(r'^accounts/', include('allauth.urls')),\n    url(r'^notifications/', include('readthedocs.notifications.urls')),\n    url(r'^accounts/gold/', include('readthedocs.gold.urls')),\n    # For redirects\n    url(r'^builds/', include('readthedocs.builds.urls')),\n    # For testing the 404's with DEBUG on.\n    url(r'^404/$', handler404),\n    # For testing the 500's with DEBUG on.\n    url(r'^500/$', handler500),\n]\n\nproject_urls = [\n    url(r'^projects/', include('readthedocs.projects.urls.public')),\n]\n\napi_urls = [\n    url(r'^api/v2/', include('readthedocs.api.v2.urls')),\n    # Keep the `doc_search` at root level, so the test does not fail for other API\n    url(r'^api/v2/docsearch/$', PageSearchAPIView.as_view(), name='doc_search'),\n    url(\n        r'^api-auth/',\n        include('rest_framework.urls', namespace='rest_framework')\n    ),\n    url(r'^api/v3/', include('readthedocs.api.v3.urls')),\n]\n\ni18n_urls = [\n    url(r'^i18n/', include('django.conf.urls.i18n')),\n]\n\nadmin_urls = [\n    url(r'^admin/', admin.site.urls),\n]\n\ndnt_urls = [\n    url(r'^\\.well-known/dnt/$', do_not_track),\n\n    # https://github.com/EFForg/dnt-guide#12-how-to-assert-dnt-compliance\n    url(\n        r'^\\.well-known/dnt-policy.txt$',\n        TemplateView\n        .as_view(template_name='dnt-policy.txt', content_type='text/plain'),\n    ),\n]\n\ndebug_urls = []\nfor build_format in ('epub', 'htmlzip', 'json', 'pdf'):\n    debug_urls += static(\n        settings.MEDIA_URL + build_format,\n        document_root=os.path.join(settings.MEDIA_ROOT, build_format),\n    )\ndebug_urls += [\n    url(\n        'style-catalog/$',\n        TemplateView.as_view(template_name='style_catalog.html'),\n    ),\n\n    # This must come last after the build output files\n    url(\n        r'^media/(?P<remainder>.+)$',\n        RedirectView.as_view(url=settings.STATIC_URL + '%(remainder)s'),\n        name='media-redirect',\n    ),\n]\n\n# Export URLs\ngroups = [\n    basic_urls,\n    rtd_urls,\n    project_urls,\n    api_urls,\n    core_urls,\n    i18n_urls,\n    deprecated_urls,\n]\n\nif settings.DO_NOT_TRACK_ENABLED:\n    # Include Do Not Track URLs if DNT is supported\n    groups.append(dnt_urls)\n\n\nif settings.READ_THE_DOCS_EXTENSIONS:\n    groups.append([\n        url(r'^', include('readthedocsext.urls'))\n    ])\n\nif not settings.USE_SUBDOMAIN or settings.DEBUG:\n    groups.insert(0, docs_urls)\nif settings.ALLOW_ADMIN:\n    groups.append(admin_urls)\nif settings.DEBUG:\n    import debug_toolbar\n\n    debug_urls += [\n        url(r'^__debug__/', include(debug_toolbar.urls)),\n    ]\n    groups.append(debug_urls)\n\nurlpatterns = reduce(add, groups)\n", "path": "readthedocs/urls.py"}, {"content": "# -*- coding: utf-8 -*-\n\n\"\"\"Project RSS feeds.\"\"\"\n\nfrom django.contrib.syndication.views import Feed\n\nfrom readthedocs.projects.models import Project\n\n\nclass LatestProjectsFeed(Feed):\n\n    \"\"\"RSS feed for projects that were recently updated.\"\"\"\n\n    title = 'Recently updated documentation'\n    link = 'http://readthedocs.org'\n    description = 'Recently updated documentation on Read the Docs'\n\n    def items(self):\n        return Project.objects.public().order_by('-modified_date')[:10]\n\n    def item_title(self, item):\n        return item.name\n\n    def item_description(self, item):\n        return item.get_latest_build()\n\n\nclass NewProjectsFeed(Feed):\n\n    \"\"\"RSS feed for newly created projects.\"\"\"\n\n    title = 'Newest documentation'\n    link = 'http://readthedocs.org'\n    description = 'Recently created documentation on Read the Docs'\n\n    def items(self):\n        return Project.objects.public().order_by('-pk')[:10]\n\n    def item_title(self, item):\n        return item.name\n\n    def item_description(self, item):\n        return item.get_latest_build()\n", "path": "readthedocs/projects/feeds.py"}], "after_files": [{"content": "\"\"\"URL configuration for core app.\"\"\"\n\nfrom __future__ import absolute_import\nfrom django.conf.urls import url\n\nfrom readthedocs.constants import pattern_opts\nfrom readthedocs.core import views\nfrom readthedocs.core.views import serve\n\n\ndocs_urls = [\n    url(\n        (\n            r'^docs/(?P<project_slug>{project_slug})/page/'\n            r'(?P<filename>{filename_slug})$'.format(**pattern_opts)\n        ),\n        serve.redirect_page_with_filename,\n        name='docs_detail',\n    ),\n    url(\n        (\n            r'^docs/(?P<project_slug>{project_slug})/'\n            r'(?:|projects/(?P<subproject_slug>{project_slug})/)$'.format(\n                **pattern_opts\n            )\n        ),\n        serve.redirect_project_slug,\n        name='docs_detail',\n    ),\n    url(\n        (\n            r'^docs/(?P<project_slug>{project_slug})/'\n            r'(?:|projects/(?P<subproject_slug>{project_slug})/)'\n            r'(?P<lang_slug>{lang_slug})/'\n            r'(?P<version_slug>{version_slug})/'\n            r'(?P<filename>{filename_slug})'.format(**pattern_opts)\n        ),\n        serve.serve_docs,\n        name='docs_detail',\n    ),\n]\n\ncore_urls = [\n    # Random other stuff\n    url(\n        (\n            r'^wipe/(?P<project_slug>{project_slug})/'\n            r'(?P<version_slug>{version_slug})/$'.format(**pattern_opts)\n        ),\n        views.wipe_version,\n        name='wipe_version',\n    ),\n]\n", "path": "readthedocs/core/urls/__init__.py"}, {"content": "# pylint: disable=missing-docstring\nimport os\nfrom functools import reduce\nfrom operator import add\n\nfrom django.conf import settings\nfrom django.conf.urls import include, url\nfrom django.conf.urls.static import static\nfrom django.contrib import admin\nfrom django.views.generic.base import RedirectView, TemplateView\n\nfrom readthedocs.core.urls import core_urls, docs_urls\nfrom readthedocs.core.views import (\n    HomepageView,\n    SupportView,\n    do_not_track,\n    server_error_404,\n    server_error_500,\n)\nfrom readthedocs.search import views as search_views\nfrom readthedocs.search.api import PageSearchAPIView\n\n\nadmin.autodiscover()\n\nhandler404 = server_error_404\nhandler500 = server_error_500\n\nbasic_urls = [\n    url(r'^$', HomepageView.as_view(), name='homepage'),\n    url(r'^support/', SupportView.as_view(), name='support'),\n    url(r'^security/', TemplateView.as_view(template_name='security.html')),\n    url(\n        r'^\\.well-known/security.txt$',\n        TemplateView\n        .as_view(template_name='security.txt', content_type='text/plain'),\n    ),\n]\n\nrtd_urls = [\n    url(r'^search/$', search_views.elastic_search, name='search'),\n    url(r'^dashboard/', include('readthedocs.projects.urls.private')),\n    url(r'^profiles/', include('readthedocs.profiles.urls.public')),\n    url(r'^accounts/', include('readthedocs.profiles.urls.private')),\n    url(r'^accounts/', include('allauth.urls')),\n    url(r'^notifications/', include('readthedocs.notifications.urls')),\n    url(r'^accounts/gold/', include('readthedocs.gold.urls')),\n    # For redirects\n    url(r'^builds/', include('readthedocs.builds.urls')),\n    # For testing the 404's with DEBUG on.\n    url(r'^404/$', handler404),\n    # For testing the 500's with DEBUG on.\n    url(r'^500/$', handler500),\n]\n\nproject_urls = [\n    url(r'^projects/', include('readthedocs.projects.urls.public')),\n]\n\napi_urls = [\n    url(r'^api/v2/', include('readthedocs.api.v2.urls')),\n    # Keep the `doc_search` at root level, so the test does not fail for other API\n    url(r'^api/v2/docsearch/$', PageSearchAPIView.as_view(), name='doc_search'),\n    url(\n        r'^api-auth/',\n        include('rest_framework.urls', namespace='rest_framework')\n    ),\n    url(r'^api/v3/', include('readthedocs.api.v3.urls')),\n]\n\ni18n_urls = [\n    url(r'^i18n/', include('django.conf.urls.i18n')),\n]\n\nadmin_urls = [\n    url(r'^admin/', admin.site.urls),\n]\n\ndnt_urls = [\n    url(r'^\\.well-known/dnt/$', do_not_track),\n\n    # https://github.com/EFForg/dnt-guide#12-how-to-assert-dnt-compliance\n    url(\n        r'^\\.well-known/dnt-policy.txt$',\n        TemplateView\n        .as_view(template_name='dnt-policy.txt', content_type='text/plain'),\n    ),\n]\n\ndebug_urls = []\nfor build_format in ('epub', 'htmlzip', 'json', 'pdf'):\n    debug_urls += static(\n        settings.MEDIA_URL + build_format,\n        document_root=os.path.join(settings.MEDIA_ROOT, build_format),\n    )\ndebug_urls += [\n    url(\n        'style-catalog/$',\n        TemplateView.as_view(template_name='style_catalog.html'),\n    ),\n\n    # This must come last after the build output files\n    url(\n        r'^media/(?P<remainder>.+)$',\n        RedirectView.as_view(url=settings.STATIC_URL + '%(remainder)s'),\n        name='media-redirect',\n    ),\n]\n\n# Export URLs\ngroups = [\n    basic_urls,\n    rtd_urls,\n    project_urls,\n    api_urls,\n    core_urls,\n    i18n_urls,\n]\n\nif settings.DO_NOT_TRACK_ENABLED:\n    # Include Do Not Track URLs if DNT is supported\n    groups.append(dnt_urls)\n\n\nif settings.READ_THE_DOCS_EXTENSIONS:\n    groups.append([\n        url(r'^', include('readthedocsext.urls'))\n    ])\n\nif not settings.USE_SUBDOMAIN or settings.DEBUG:\n    groups.insert(0, docs_urls)\nif settings.ALLOW_ADMIN:\n    groups.append(admin_urls)\nif settings.DEBUG:\n    import debug_toolbar\n\n    debug_urls += [\n        url(r'^__debug__/', include(debug_toolbar.urls)),\n    ]\n    groups.append(debug_urls)\n\nurlpatterns = reduce(add, groups)\n", "path": "readthedocs/urls.py"}, {"content": null, "path": "readthedocs/projects/feeds.py"}]}