Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b344976f
Commit
b344976f
authored
May 03, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making linters happier
parent
5d729c30
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
17 deletions
+10
-17
cms/urls.py
+4
-6
common/djangoapps/heartbeat/urls.py
+1
-1
lms/djangoapps/django_comment_client/base/urls.py
+1
-3
lms/djangoapps/django_comment_client/forum/urls.py
+1
-2
lms/djangoapps/django_comment_client/urls.py
+1
-1
lms/djangoapps/simplewiki/urls.py
+1
-1
lms/urls.py
+1
-3
No files found.
cms/urls.py
View file @
b344976f
...
...
@@ -6,7 +6,7 @@ from . import one_time_startup
# from django.contrib import admin
# admin.autodiscover()
urlpatterns
=
(
''
,
urlpatterns
=
(
''
,
# nopep8
url
(
r'^$'
,
'contentstore.views.howitworks'
,
name
=
'homepage'
),
url
(
r'^listing'
,
'contentstore.views.index'
,
name
=
'index'
),
url
(
r'^edit/(?P<location>.*?)$'
,
'contentstore.views.edit_unit'
,
name
=
'edit_unit'
),
...
...
@@ -118,17 +118,17 @@ urlpatterns += (
# static/proof-of-concept views
url
(
r'^ux-alerts$'
,
'contentstore.views.ux_alerts'
,
name
=
'ux-alerts'
)
)
)
js_info_dict
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'cms'
,),
}
}
urlpatterns
+=
(
# Serve catalog of localized strings to be rendered by Javascript
url
(
r'^jsi18n/$'
,
'django.views.i18n.javascript_catalog'
,
js_info_dict
),
)
)
if
settings
.
ENABLE_JASMINE
:
...
...
@@ -140,5 +140,3 @@ urlpatterns = patterns(*urlpatterns)
# Custom error pages
handler404
=
'contentstore.views.render_404'
handler500
=
'contentstore.views.render_500'
common/djangoapps/heartbeat/urls.py
View file @
b344976f
from
django.conf.urls
import
*
urlpatterns
=
patterns
(
''
,
urlpatterns
=
patterns
(
''
,
# nopep8
url
(
r'^$'
,
'heartbeat.views.heartbeat'
,
name
=
'heartbeat'
),
)
lms/djangoapps/django_comment_client/base/urls.py
View file @
b344976f
from
django.conf.urls.defaults
import
url
,
patterns
import
django_comment_client.base.views
urlpatterns
=
patterns
(
'django_comment_client.base.views'
,
urlpatterns
=
patterns
(
'django_comment_client.base.views'
,
# nopep8
url
(
r'upload$'
,
'upload'
,
name
=
'upload'
),
url
(
r'users/(?P<user_id>\w+)/update_moderator_status$'
,
'update_moderator_status'
,
name
=
'update_moderator_status'
),
url
(
r'threads/tags/autocomplete$'
,
'tags_autocomplete'
,
name
=
'tags_autocomplete'
),
...
...
lms/djangoapps/django_comment_client/forum/urls.py
View file @
b344976f
from
django.conf.urls.defaults
import
url
,
patterns
import
django_comment_client.forum.views
urlpatterns
=
patterns
(
'django_comment_client.forum.views'
,
urlpatterns
=
patterns
(
'django_comment_client.forum.views'
,
# nopep8
url
(
r'users/(?P<user_id>\w+)/followed$'
,
'followed_threads'
,
name
=
'followed_threads'
),
url
(
r'users/(?P<user_id>\w+)$'
,
'user_profile'
,
name
=
'user_profile'
),
url
(
r'^(?P<discussion_id>[\w\-.]+)/threads/(?P<thread_id>\w+)$'
,
'single_thread'
,
name
=
'single_thread'
),
...
...
lms/djangoapps/django_comment_client/urls.py
View file @
b344976f
from
django.conf.urls.defaults
import
url
,
patterns
,
include
urlpatterns
=
patterns
(
''
,
urlpatterns
=
patterns
(
''
,
# nopep8
url
(
r'forum/?'
,
include
(
'django_comment_client.forum.urls'
)),
url
(
r''
,
include
(
'django_comment_client.base.urls'
)),
)
lms/djangoapps/simplewiki/urls.py
View file @
b344976f
...
...
@@ -4,7 +4,7 @@ namespace_regex = r"[a-zA-Z\d._-]+"
article_slug
=
r'/(?P<article_path>'
+
namespace_regex
+
r'/[a-zA-Z\d_-]*)'
namespace
=
r'/(?P<namespace>'
+
namespace_regex
+
r')'
urlpatterns
=
patterns
(
''
,
urlpatterns
=
patterns
(
''
,
# nopep8
url
(
r'^$'
,
'simplewiki.views.root_redirect'
,
name
=
'wiki_root'
),
url
(
r'^view'
+
article_slug
,
'simplewiki.views.view'
,
name
=
'wiki_view'
),
url
(
r'^view_revision/(?P<revision_number>[0-9]+)'
+
article_slug
,
'simplewiki.views.view_revision'
,
name
=
'wiki_view_revision'
),
...
...
lms/urls.py
View file @
b344976f
...
...
@@ -2,7 +2,6 @@ from django.conf import settings
from
django.conf.urls
import
patterns
,
include
,
url
from
django.contrib
import
admin
from
django.conf.urls.static
import
static
from
django.views.generic
import
RedirectView
from
.
import
one_time_startup
...
...
@@ -10,10 +9,9 @@ import django.contrib.auth.views
# Uncomment the next two lines to enable the admin:
if
settings
.
DEBUG
:
from
django.contrib
import
admin
admin
.
autodiscover
()
urlpatterns
=
(
''
,
urlpatterns
=
(
''
,
# nopep8
# certificate view
url
(
r'^update_certificate$'
,
'certificates.views.update_certificate'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment