Commit Graph

1966 Commits

Author SHA1 Message Date
ichuang
39c61070ed new feature - load course.xml + html + problems etc from git
(see courseware.views.quickedit_git_reload)
2012-05-28 11:25:12 -04:00
ichuang
5729d013f4 in DEBUG mode, fail gracefully if a problem file is missing (capa_module) 2012-05-28 11:02:33 -04:00
ichuang
e3e41e0c95 dev_ike: MITX_ROOT_URL set based on hostname 2012-05-28 11:01:53 -04:00
ichuang
066dcfabc8 updates to envs.dev_ike for dogfood / edx4edx dev server 2012-05-28 10:09:12 -04:00
ichuang
2a16c46dbf accordion should use MITX_ROOT_URL 2012-05-28 10:08:55 -04:00
ichuang
e50fd0f998 add check code to dogfood; cleaned up interface to quickedit 2012-05-28 10:08:07 -04:00
ichuang
3df1845fc5 quickedit hook for dogfood - skip is_staff check for dogfood 2012-05-28 10:07:02 -04:00
ichuang
4ea7aa26ab debugging statement in multicourse.views 2012-05-28 10:05:57 -04:00
ichuang
c70b80753a pass instance of LoncapaProblem in response checker context 2012-05-28 10:05:14 -04:00
ichuang
9dd5cfa277 admin for courseware student model 2012-05-27 23:33:29 -04:00
ichuang
dbab163d1b fixed courseware.views.quickedit to create StudentModule state if not pre-existing 2012-05-27 22:48:43 -04:00
ichuang
a94f69f964 dogfood - deal with course.xml cache properly 2012-05-27 22:32:40 -04:00
ichuang
5251bb2a6a improve error handling in customresponse check function call 2012-05-27 21:27:10 -04:00
ichuang
7a27a97899 add "msg" output to textline 2012-05-27 21:12:54 -04:00
ichuang
b487003de7 change class of "msg" output in textbox to from "debug" to "message" 2012-05-27 21:12:27 -04:00
ichuang
30ee4d19ed fixed customresponse: when using cfn with multiple inputs fill in all
values of correct_map
2012-05-27 21:11:12 -04:00
ichuang
0aab9eb887 README 2012-05-27 20:18:45 -04:00
ichuang
92aea035d9 add env for ike's multicourse development and testing 2012-05-27 20:16:04 -04:00
ichuang
2d96379c84 multicourse: remove obsolete is_dogfood flag 2012-05-27 20:15:45 -04:00
ichuang
fa58406c1c templates/main.html patch: workaround for slow page load bug 2012-05-27 20:13:07 -04:00
ichuang
06910aaf8a urls: do admin autodiscover if settings.DEBUG 2012-05-27 20:12:47 -04:00
ichuang
4280c791a3 added (temporary?) debugging statements 2012-05-27 20:12:06 -04:00
ichuang
1548293821 dogfood.views: for edx4edx problems about edX problems 2012-05-27 20:10:23 -04:00
ichuang
8bbff1107f courseware.views - updated quickedit to allow calls from dogfood 2012-05-27 20:08:33 -04:00
ichuang
41a539ed1f html_module should render_to_string from namespace "course", not "main" 2012-05-27 20:07:38 -04:00
ichuang
6ad4a4f740 add textbox input type to customresponse 2012-05-27 20:05:19 -04:00
ichuang
213b53fcc2 fixed script evaluation in capa_problem: don't parse javascript or
perl, and use "context" for both global and local frames
2012-05-27 20:04:20 -04:00
ichuang
6c8abf63d1 created dogfood template (for capa_problem) 2012-05-27 20:03:46 -04:00
ichuang
2298b995a9 updated quickedit template 2012-05-27 20:03:27 -04:00
ichuang
2dd8bd48f7 fix textbox inputtypes to show default from problem if no student input available yet. 2012-05-26 23:04:06 -04:00
ichuang
472ef4a88e add codemirror.css back ; it is in static/css for now, until pipeline/coffee fixed. 2012-05-26 22:37:47 -04:00
ichuang
b0c7786245 add dogfood library routine and view - for edx4edx 2012-05-26 22:37:06 -04:00
ichuang
4d9140e151 multicourse: display course in mitxhome only if active = True for course 2012-05-26 22:35:54 -04:00
ichuang
d304261763 added function to check if is_dogfood in multicourse settings 2012-05-26 22:35:10 -04:00
ichuang
dcc72a2a18 added csrf handling to quickedit 2012-05-26 22:34:19 -04:00
ichuang
22572bf87b fix multicourse to properly set COURSE_TITLE (navigation.html uses settings.COURSE_TITLE) 2012-05-26 17:05:52 -04:00
Piotr Mitros
d7d831b4af Helper script to run django-admin 2012-05-26 09:27:25 -04:00
Calen Pennington
16046aa8e9 Be more specific when deleting mako template cache directory 2012-05-25 15:37:50 -04:00
Calen Pennington
bd7f1c3ab2 Delete mako temp files during .deb install 2012-05-25 15:27:56 -04:00
Calen Pennington
cdf6c87bb8 Exclude things during .deb packaging correctly, so that we don't have a bunch of build detritus left over. FPM still leaves the empty directories, unfortunately 2012-05-25 12:50:21 -04:00
pmitros
cb033b44f2 Merge pull request #65 from MITx/safe-cache-key
Use a key function that is safe for use w/ memcache

This is needed for the asset-pipeline. The pipeline has to map a requested asset name ('css/application.css') to a string that encodes the file contents ('css/application.12323423abcf.css'). It caches these associations in memcache. We have the potential for filenames with spaces in them, which memcache can't handle, so we need to escape the cache keys in such a way that memcache can handle them.

It puts these in a cache named 'staticfiles' (http://django-staticfiles.readthedocs.org/en/latest/helpers/#cachedstaticfilesstorage). In the future, it may make sense to put that cache onto the filesystem, rather than memcache, but we should do that only after performance testing.
2012-05-25 08:26:48 -07:00
Calen Pennington
1b5a9bc547 Moving the 'id' prefix back into content_parser where it exists 2012-05-25 11:04:05 -04:00
Calen Pennington
dea0d28ace Url encode memcache keys, rather than writing a new encoding scheme. Also use fasthash, rather than md5 2012-05-25 10:52:04 -04:00
Calen Pennington
88ff84dd2e Use a key function that is safe for use w/ memcache 2012-05-25 09:30:04 -04:00
Calen Pennington
f632db0e9d Use the coffee, sass, and yui-compressior binaries that are on the current path 2012-05-24 15:11:38 -04:00
David Ormsbee
4bea0f986e Merge pull request #64 from MITx/asset-pipeline
Asset pipeline
2012-05-24 09:08:10 -07:00
Calen Pennington
c5a68f8363 Don't fail silently on errors 2012-05-24 11:38:07 -04:00
Calen Pennington
3fdb117d71 Use the correct command to get the directory name when running collectstatic 2012-05-24 11:34:12 -04:00
Calen Pennington
06e06c81ad Mark the collectstatic alias as executable 2012-05-24 11:22:23 -04:00
Calen Pennington
25e01799bb Add a script to doing the collectstatic run during apt configuration 2012-05-24 10:56:26 -04:00