Cleaned up the urls file a bit, to remove urls that don't work. Also removed some unused stuff from static_template_views.
This commit is contained in:
@@ -16,10 +16,6 @@ if settings.STATIC_GRAB:
|
||||
valid_templates = valid_templates+['server-down.html',
|
||||
'server-error.html'
|
||||
'server-overloaded.html',
|
||||
'mitx_global.html',
|
||||
'mitx-overview.html',
|
||||
'6002x-faq.html',
|
||||
'6002x-press-release.html'
|
||||
]
|
||||
|
||||
def index(request, template):
|
||||
@@ -47,13 +43,4 @@ def render_404(request):
|
||||
def render_500(request):
|
||||
return render_to_response('static_templates/server-error.html', {})
|
||||
|
||||
valid_auth_templates=[]
|
||||
|
||||
def auth_index(request, template):
|
||||
if not request.user.is_authenticated():
|
||||
return redirect('/')
|
||||
|
||||
if template in valid_auth_templates:
|
||||
return render_to_response(template,{})
|
||||
else:
|
||||
return redirect('/')
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
<%inherit file="marketing.html" />
|
||||
<%block name="login_area">
|
||||
</%block>
|
||||
<section class="subpage">
|
||||
<div>
|
||||
|
||||
<h1> <i>MITx</i> Advances MIT’s Vision for Online Learning</h1>
|
||||
|
||||
<p> Education has entered an era of rapid, exciting,
|
||||
technology-enabled change. At MIT, we welcome the opportunity to
|
||||
harness the power of on-line technology for our students and for the
|
||||
world. On December 19, 2011, we announced <i>MITx</i>, an initiative to
|
||||
offer exciting, challenging and enriching courses to anyone,
|
||||
anywhere, who has the motivation and ability to engage MIT’s
|
||||
educational content.</p>
|
||||
|
||||
<p> Ten years ago, MIT
|
||||
launched <a href="http://ocw.mit.edu/index.htm">OpenCourseWare</a>,
|
||||
which places online the course materials for substantially the entire
|
||||
MIT curriculum, and was the genesis of today’s worldwide
|
||||
movement in free, open educational resources. <i>MITx</i> is the next step
|
||||
in opening MIT’s educational doors to the world. Through OCW and
|
||||
<i>MITx</i>, MIT invites the world to join it in the passion, hard work and
|
||||
thrill of learning and discovery.</p>
|
||||
|
||||
<h2><i>MITx</i> will e-publish interactive online courses that:</h2>
|
||||
|
||||
<ul>
|
||||
<li>Empower students to learn at their own pace;</li>
|
||||
<li>Offer online laboratories where students can experiment and apply their learning;</li>
|
||||
<li>Connect students to each other in online discussion groups and wiki-based collaborative learning; </li>
|
||||
<li>Challenge learners with MIT-rigor course materials; and</li>
|
||||
<li>Assess individual student learning as the student progresses through the course.</li>
|
||||
</ul>
|
||||
|
||||
<p> <i>MITx</i> students who demonstrate their mastery of a subject can earn
|
||||
a certificate of completion awarded by <i>MITx</i>.</p>
|
||||
|
||||
<p> <i>MITx</i> courses will be available to the world through an Internet
|
||||
platform that MIT will make freely available. MIT hopes that other
|
||||
educational institutions, anywhere in the world, will adapt and use
|
||||
the platform to publish their own educational content online for the
|
||||
benefit of learners. Because the platform will be open-source and
|
||||
scalable, adopters and users can continuously improve it, for the
|
||||
benefit of everyone.</p>
|
||||
|
||||
<h2> Why Is MIT Creating <i>MITx</i>?</h2>
|
||||
|
||||
<p> Excellence in teaching and learning. MIT must always provide its
|
||||
students the very best teaching and learning tools possible. MIT
|
||||
began experimenting with online technologies in its educational
|
||||
programs long before we launched OCW in 2001. We have only increased
|
||||
our emphasis in recent years, as several MIT committees have studied
|
||||
how MIT might enhance the learning experience of its students and
|
||||
expand its impact worldwide through new online offerings.</p>
|
||||
|
||||
<p> These efforts, combined with those of numerous individual MIT
|
||||
faculty members, confirmed MIT’s conviction that digital
|
||||
technologies enrich learning. Many other innovative institutions and
|
||||
enterprises believe the same and are bringing creative online
|
||||
offerings forward. Having brain-stormed, investigated and studied,
|
||||
we were ready to act and eager to start. We announced our <i>MITx</i>
|
||||
aspiration to capture and encourage the energy of our faculty in
|
||||
creating new online teaching and learning tools. </p>
|
||||
|
||||
<p> Once up and running, <i>MITx</i> will be a laboratory for online
|
||||
learning. Whether <i>MITx</i> learners are MIT’s on-campus students,
|
||||
university students elsewhere, or independent learners, <i>MITx</i> will help
|
||||
us understand how online learning occurs and how virtual communities
|
||||
of learners assemble -- information that in turn will allow us to
|
||||
improve both <i>MITx</i> and our on-campus teaching. </p>
|
||||
|
||||
<p> Access to higher education. <i>MITx</i> will help shatter barriers to
|
||||
education. The constraints of MIT’s physical campus allow us to
|
||||
admit less than 10 percent of our undergraduate applicants. We teach
|
||||
on-campus only a tiny fraction of the people in the world with the
|
||||
ability and motivation to learn MIT content. Online technology
|
||||
provides a new and different portal into MIT-quality education.
|
||||
Through <i>MITx</i>, MIT educational content can reach, augment, and enrich
|
||||
the education and livelihood of many learners who cannot attend
|
||||
MIT. </p>
|
||||
|
||||
<p> <i>MITx</i> does not provide a full MIT education. Our residential
|
||||
campus is the heart of MIT’s knowledge creation and
|
||||
dissemination. MIT students enjoy a comprehensive curriculum and
|
||||
distinct educational environment. Without MIT, there would be no
|
||||
<i>MITx</i>. </p>
|
||||
|
||||
<p> Advancing the public good. <i>MITx</i> is an opportunity to help
|
||||
preserve and expand higher education as a public good. Historically,
|
||||
the investment of public and private assets in enormous amounts has
|
||||
produced the public benefits of knowledge creation and dissemination,
|
||||
leading to capable citizens, innovation, job creation, economic
|
||||
development, and broader welfare.</p>
|
||||
|
||||
<p> Today, as computation and Internet technologies enable higher
|
||||
education to migrate online, MIT sees the opportunity to democratize
|
||||
education with unprecedented efficiency and scalability. We possess a
|
||||
strong desire and feel a compelling obligation to offer a
|
||||
not-for-profit, mission-driven, open-technology approach to online
|
||||
learning. <i>MITx</i> is our contribution. </p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
@@ -1,131 +0,0 @@
|
||||
<%inherit file="marketing.html" />
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
|
||||
<%block name="header_class">home</%block>
|
||||
|
||||
<section class="index-content">
|
||||
<section class="about">
|
||||
|
||||
<section class="intro">
|
||||
<section class="intro-text">
|
||||
<p><em>MITx</em> will offer a portfolio of MIT courses for free to a virtual community of learners around the world. It will also enhance the educational experience of its on-campus students, offering them online tools that supplement and enrich their classroom and laboratory experiences.</p>
|
||||
<p>The first <em>MITx</em> course, 6.002x (Circuits and Electronics), was launched in an experimental prototype form. Watch this space for further upcoming courses, which will become available in Fall 2012.</p>
|
||||
</section>
|
||||
|
||||
<section class="intro-video">
|
||||
<a id="video-overlay-link" rel="leanModal" href="#video-overlay"><img src="${static.url('images/video-image.png')}" id="video-img" alt="Link to MITx introduction video" /><span> Watch intro video</span></a>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="features">
|
||||
<h2><em>MIT<span>x</span></em> courses will be offered on an online learning platform that:</h2>
|
||||
|
||||
<ul>
|
||||
<li>organizes and presents course material to enable students to learn worldwide</li>
|
||||
<li>features interactive instruction, online laboratories and student-to-student and student-to-professor communication</li>
|
||||
<li>allows for the individual assessment of any student’s work and allows students who demonstrate their mastery of subjects to earn certificates awarded by <em>MITx</em></li>
|
||||
<li>operates on an open-source, scalable software infrastructure in order to make it continuously improving and readily available to other educational institutions, such as universities and K-12 school systems.</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Press & links:</strong> <a href="/6002x-press-release.html">6.002x Press Release</a>, <a href="/6002x-faq.html">6.002x FAQ</a>, <a href="/mitx-overview.html">MITx overview</a>, <a href="http://www.boston.com/news/local/massachusetts/articles/2011/12/19/mit_to_launch_online_only_graded_courses_free_to_all/?page=full" target="_blank">Boston Globe</a>, <a href="http://www.nytimes.com/2011/12/19/education/mit-expands-free-online-courses-offering-certificates.html?_r=3&hpw=" target="_blank">New York Times</a>, <a href="http://web.mit.edu/newsoffice/2011/mitx-education-initiative-1219.html" target="_blank">MIT Press Release</a>, <a href="http://web.mit.edu/newsoffice/2011/mitx-faq-1219" target="_blank"><em>MITx</em> FAQ</a>, <a href="http://ocw.mit.edu/index.htm" target="_blank">OpenCourseWare</a></p>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="course">
|
||||
<div class="announcement">
|
||||
<h1> Announcement </h1>
|
||||
<img src="/static/images/marketing/edx-logo.png" alt="" />
|
||||
<p>
|
||||
On May 2, it was announced that Harvard University will join MIT as a partner in edX. MITx, which offers online versions of MIT courses, will be a core offering of edX, as will Harvardx, a set of course offerings from Harvard.
|
||||
</p>
|
||||
|
||||
<p class="announcement-button">
|
||||
<a href="http://edxonline.org">Read more details here <span class="arrow">‣</span></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<hgroup>
|
||||
<h1>Spring 2012 Course offering</h1>
|
||||
<h2>Circuits and Electronics</h2>
|
||||
<h3>6.002x</h3>
|
||||
</hgroup>
|
||||
|
||||
<p>
|
||||
<a href="http://6002x.mitx.mit.edu/" class="more-info">More information <span>&</span> Enroll <span class="arrow">‣</span></a>
|
||||
</p>
|
||||
|
||||
<p>Taught by Anant Agarwal, with Gerald Sussman and Piotr Mitros, 6.002x (Circuits and Electronics) is an on-line adaption of 6.002, MIT’s first undergraduate analog design course. This prototype course is running, free of charge, for students worldwide from March 5, 2012 through June 8, 2012. Students are given the opportunity to demonstrate their mastery of the material and earn a certificate from <em>MITx</em>.</p>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<div id="video-overlay" class="leanModal_box">
|
||||
<iframe id="player" type="text/html" width="560" height="390" src="http://www.youtube.com/embed/p2Q6BrNhdh8?enablejsapi=1" frameborder="0">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<%block name="js_extra">
|
||||
<script>
|
||||
|
||||
var player;
|
||||
function onYouTubePlayerAPIReady() {
|
||||
player = new YT.Player('player', {
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
||||
var tag = document.createElement('script');
|
||||
tag.src = "http://www.youtube.com/player_api";
|
||||
var firstScriptTag = document.getElementsByTagName('script')[0];
|
||||
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
||||
|
||||
$("a#video-overlay-link").click(function(){
|
||||
player.playVideo();
|
||||
$("a.modal_close, #lean_overlay").click(function(){
|
||||
player.pauseVideo();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// TODO: Clean up as per http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
|
||||
|
||||
/* Handles when the user hits 'enroll'. Grabs form data. Does AJAX.
|
||||
Either shows error, or shows success. */
|
||||
|
||||
$('#create_account_button').click(function() {
|
||||
var submit_data={};
|
||||
$.each($("[id^=ca_]"), function(index,value){
|
||||
submit_data[value.name]=value.value;
|
||||
});
|
||||
$.each($("[id^=cb_]"), function(index,value){
|
||||
submit_data[value.name]=value.checked;
|
||||
});
|
||||
|
||||
postJSON('/create_account',
|
||||
submit_data,
|
||||
function(json) {
|
||||
if(json.success) {
|
||||
$('#enroll').html(json.value);
|
||||
} else {
|
||||
$('#enroll_error').html(json.value);
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
/* Activate stupid spinner drop-downs in enrollment form */
|
||||
var spinner_array=$("[id^=spinner_]");
|
||||
spinner_array.each(function(i) {
|
||||
var s=spinner_array[i];
|
||||
$("#"+s.id).click(function(){
|
||||
$("#sregion"+s.id.substring(7)).toggle();
|
||||
});
|
||||
})
|
||||
|
||||
/*$("sregion"+$("[id^=spinner_]")[1].id.substring(7)) */
|
||||
});
|
||||
|
||||
</script>
|
||||
</%block>
|
||||
44
lms/urls.py
44
lms/urls.py
@@ -13,21 +13,23 @@ if settings.DEBUG:
|
||||
urlpatterns = ('',
|
||||
url(r'^$', 'student.views.index', name="root"), # Main marketing page, or redirect to courseware
|
||||
url(r'^dashboard$', 'student.views.dashboard', name="dashboard"),
|
||||
|
||||
url(r'^change_email$', 'student.views.change_email_request'),
|
||||
url(r'^email_confirm/(?P<key>[^/]*)$', 'student.views.confirm_email_change'),
|
||||
url(r'^change_name$', 'student.views.change_name_request'),
|
||||
url(r'^accept_name_change$', 'student.views.accept_name_change'),
|
||||
url(r'^reject_name_change$', 'student.views.reject_name_change'),
|
||||
url(r'^pending_name_changes$', 'student.views.pending_name_changes'),
|
||||
url(r'^gradebook$', 'courseware.views.gradebook'),
|
||||
|
||||
url(r'^event$', 'track.views.user_track'),
|
||||
url(r'^t/(?P<template>[^/]*)$', 'static_template_view.views.index'),
|
||||
url(r'^t/(?P<template>[^/]*)$', 'static_template_view.views.index'), # TODO: Is this used anymore? What is STATIC_GRAB?
|
||||
|
||||
url(r'^login$', 'student.views.login_user'),
|
||||
url(r'^login/(?P<error>[^/]*)$', 'student.views.login_user'),
|
||||
url(r'^logout$', 'student.views.logout_user', name='logout'),
|
||||
url(r'^create_account$', 'student.views.create_account'),
|
||||
url(r'^activate/(?P<key>[^/]*)$', 'student.views.activate_account'),
|
||||
# url(r'^reactivate/(?P<key>[^/]*)$', 'student.views.reactivation_email'),
|
||||
|
||||
url(r'^password_reset/$', 'student.views.password_reset', name='password_reset'),
|
||||
## Obsolete Django views for password resets
|
||||
## TODO: Replace with Mako-ized views
|
||||
@@ -42,10 +44,10 @@ urlpatterns = ('',
|
||||
name='auth_password_reset_complete'),
|
||||
url(r'^password_reset_done/$', django.contrib.auth.views.password_reset_done,
|
||||
name='auth_password_reset_done'),
|
||||
## Feedback
|
||||
url(r'^send_feedback$', 'util.views.send_feedback'),
|
||||
|
||||
url(r'^heartbeat$', include('heartbeat.urls')),
|
||||
|
||||
url(r'^university_profile/(?P<org_id>[^/]+)$', 'courseware.views.university_profile', name="university_profile"),
|
||||
|
||||
#Semi-static views (these need to be rendered and have the login bar, but don't change)
|
||||
url(r'^404$', 'static_template_view.views.render',
|
||||
@@ -72,15 +74,11 @@ urlpatterns = ('',
|
||||
{'template': 'copyright.html'}, name="copyright"),
|
||||
url(r'^honor$', 'static_template_view.views.render',
|
||||
{'template': 'honor.html'}, name="honor"),
|
||||
|
||||
|
||||
|
||||
url(r'^university_profile/(?P<org_id>[^/]+)$', 'courseware.views.university_profile', name="university_profile"),
|
||||
|
||||
#TODO: Convert these pages to the new edX layout
|
||||
# 'tos.html',
|
||||
# 'privacy.html',
|
||||
# 'honor.html',
|
||||
# 'copyright.html',
|
||||
# TODO: These urls no longer work. They need to be updated before they are re-enabled
|
||||
# url(r'^send_feedback$', 'util.views.send_feedback'),
|
||||
# url(r'^reactivate/(?P<key>[^/]*)$', 'student.views.reactivation_email'),
|
||||
)
|
||||
|
||||
if settings.PERFSTATS:
|
||||
@@ -93,15 +91,14 @@ if settings.COURSEWARE_ENABLED:
|
||||
url(r'^modx/(?P<id>.*?)/(?P<dispatch>[^/]*)$', 'courseware.module_render.modx_dispatch'), #reset_problem'),
|
||||
url(r'^xqueue/(?P<username>[^/]*)/(?P<id>.*?)/(?P<dispatch>[^/]*)$', 'courseware.module_render.xqueue_callback'),
|
||||
url(r'^change_setting$', 'student.views.change_setting'),
|
||||
url(r'^s/(?P<template>[^/]*)$', 'static_template_view.views.auth_index'),
|
||||
# url(r'^course_info/$', 'student.views.courseinfo'),
|
||||
# url(r'^show_circuit/(?P<circuit>[^/]*)$', 'circuit.views.show_circuit'),
|
||||
url(r'^edit_circuit/(?P<circuit>[^/]*)$', 'circuit.views.edit_circuit'),
|
||||
url(r'^save_circuit/(?P<circuit>[^/]*)$', 'circuit.views.save_circuit'),
|
||||
url(r'^calculate$', 'util.views.calculate'),
|
||||
url(r'^heartbeat$', include('heartbeat.urls')),
|
||||
|
||||
# Multicourse related:
|
||||
|
||||
# TODO: These views need to be updated before they work
|
||||
# url(r'^calculate$', 'util.views.calculate'),
|
||||
# url(r'^gradebook$', 'courseware.views.gradebook'),
|
||||
# TODO: We should probably remove the circuit package. I believe it was only used in the old way of saving wiki circuits for the wiki
|
||||
# url(r'^edit_circuit/(?P<circuit>[^/]*)$', 'circuit.views.edit_circuit'),
|
||||
# url(r'^save_circuit/(?P<circuit>[^/]*)$', 'circuit.views.save_circuit'),
|
||||
|
||||
url(r'^courses/?$', 'courseware.views.courses', name="courses"),
|
||||
#About the course
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/about$',
|
||||
@@ -135,9 +132,6 @@ if settings.WIKI_ENABLED:
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/wiki/', include('simplewiki.urls')),
|
||||
)
|
||||
|
||||
if settings.ENABLE_MULTICOURSE:
|
||||
urlpatterns += (url(r'^mitxhome$', 'multicourse.views.mitxhome'),)
|
||||
|
||||
if settings.QUICKEDIT:
|
||||
urlpatterns += (url(r'^quickedit/(?P<id>[^/]*)$', 'dogfood.views.quickedit'),)
|
||||
urlpatterns += (url(r'^dogfood/(?P<id>[^/]*)$', 'dogfood.views.df_capa_problem'),)
|
||||
|
||||
Reference in New Issue
Block a user