{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/11885","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/11885/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/11885/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/11885/events","html_url":"https://github.com/edx/edx-platform/pull/11885","id":142918440,"number":11885,"title":"WL-325: Multi-Site Comprehensive Theming","user":{"login":"saleem-latif","id":7114956,"avatar_url":"https://avatars.githubusercontent.com/u/7114956?v=3","gravatar_id":"","url":"https://api.github.com/users/saleem-latif","html_url":"https://github.com/saleem-latif","followers_url":"https://api.github.com/users/saleem-latif/followers","following_url":"https://api.github.com/users/saleem-latif/following{/other_user}","gists_url":"https://api.github.com/users/saleem-latif/gists{/gist_id}","starred_url":"https://api.github.com/users/saleem-latif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleem-latif/subscriptions","organizations_url":"https://api.github.com/users/saleem-latif/orgs","repos_url":"https://api.github.com/users/saleem-latif/repos","events_url":"https://api.github.com/users/saleem-latif/events{/privacy}","received_events_url":"https://api.github.com/users/saleem-latif/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-23T10:13:27Z","updated_at":"2016-03-25T16:55:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/11885","html_url":"https://github.com/edx/edx-platform/pull/11885","diff_url":"https://github.com/edx/edx-platform/pull/11885.diff","patch_url":"https://github.com/edx/edx-platform/pull/11885.patch"},"body":"Hi @mattdrayer , @ziafazal \r\n\r\nKindly review this PR, it contains changes required to support multi-tenant comprehensive theming solution. Themes enable developers to override mako and django templates, static assets, sass styling etc.\r\n\r\nJIRA ticket [WL-325](https://openedx.atlassian.net/browse/WL-325) and it subtasks contain more information about the changes included in this PR.\r\n\r\nHere is a lsit of changes included,\r\n1) Update LMS to use Django Sites framework (WL-326)\r\n2) Add SiteTheme model to LMS (WL-328)\r\n3) Multi-tenancy support for Mako templates\r\n4) Change Comprehensive Theming Behaviour for static assets to support Multi-Tenancy (WL-321)\r\n5) Updated existing Comprehensive Theming and IS_EDX_DOMAIN tests\r\n6) Update django wiki to support multi-tenancy (WL-322)\r\n7) Updates sass compilation path so that scss in themes overrides lms/cms's sass files (WL-299)\r\n\r\nA sandbox is available, with four sites currently configured:\r\n\r\n- https://theming.sandbox.edx.org (default \"edx.org\" theme)\r\n- https://red-theme.sandbox.edx.org (\"red-theme\" theme)\r\n- https://red-theme-2.sandbox.edx.org (also \"red-theme\" theme)\r\n- https://stanford-theme.sandbox.edx.org (\"stanford-style\" replacement theme)"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/201362334","html_url":"https://github.com/edx/edx-platform/pull/11885#issuecomment-201362334","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/11885","id":201362334,"user":{"login":"mtyaka","id":32585,"avatar_url":"https://avatars.githubusercontent.com/u/32585?v=3","gravatar_id":"","url":"https://api.github.com/users/mtyaka","html_url":"https://github.com/mtyaka","followers_url":"https://api.github.com/users/mtyaka/followers","following_url":"https://api.github.com/users/mtyaka/following{/other_user}","gists_url":"https://api.github.com/users/mtyaka/gists{/gist_id}","starred_url":"https://api.github.com/users/mtyaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtyaka/subscriptions","organizations_url":"https://api.github.com/users/mtyaka/orgs","repos_url":"https://api.github.com/users/mtyaka/repos","events_url":"https://api.github.com/users/mtyaka/events{/privacy}","received_events_url":"https://api.github.com/users/mtyaka/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T16:55:51Z","updated_at":"2016-03-25T16:55:51Z","body":"@saleem-latif @mattdrayer I only had a quick looks so far, but this looks great! Very nice work.\r\n\r\nThe https://stanford-theme.sandbox.edx.org/ currently loads with the red theme for me. Is that a bug or just misconfiguration?\r\n\r\n![screen shot 2016-03-25 at 17 55 27](https://cloud.githubusercontent.com/assets/32585/14049051/ccb7215a-f2b2-11e5-87cb-7ecda5104ace.png)\r\n"}}