could not load custom theme

106 views
Skip to first unread message

Umaimath Thonikkadavan

unread,
Jun 12, 2014, 9:21:01 AM6/12/14
to edx-...@googlegroups.com
I am trying to install edX in a fresh machine. I am using custom themes here.

I have mad echanges in lms.env.json
USE_CUSTOM_THEME: true
THEME_NAME: "iitbombay"

Created theme folder named 'iitbombay' under edxapp folder and set all permissions. The same is working on other installations.
Iam not understanding where is the issue is, I compared all files in new installation with the old one.
When I inspect element from browser I can see themes folders are not getting included. Please find the attachment.

Tried to change static_url_base in lms.env.json.

From lms log,
 Cannot find corresponding link for name: HOW_IT_WORKS  <a href="${marketing_link('HOW_IT_WORKS')}">${_("How it Works")}</a>

Any help would be great.

Thank you,
Umaimath








not-working.png
working.png

Marceau C.

unread,
Jun 12, 2014, 11:27:42 AM6/12/14
to edx-...@googlegroups.com
The "HOW IT WORKS" link in the header of edx.org (www.edx.org/how-it-works) is not part of the default Github design.

The issue seems to be not about theming, but "web routing" : the error is telling you "I don't know what view.html to load for the /how-it-works url".

Are you making a microsite for the official edx.org ? In that case, they may have this on their official platform, the theme is just not compatible with the Github platform.

If it is for a non-official platform, you should declare the new view in the url.py file of the LMS ( https://github.com/edx/edx-platform/blob/master/lms/urls.py ), or maybe theming allows for an additional url.py in the theme directory, but I never used that feature.



Marceau

Umaimath Thonikkadavan

unread,
Jun 12, 2014, 12:20:31 PM6/12/14
to edx-...@googlegroups.com
Thanks a ton Marceau !!!!!

I was bothered about the permission of themes directory and files inside.
When you pointed out it won't be issue of themes, I checked permissions of lms and other folders under edx-platform.
I changed everything to edxapp:edxapp 775. Then it worked very well :)

Thanks a lot again! I was thinking same direction only.

Thank you,
Umaimath

Chandrashekhar Patil

unread,
May 3, 2018, 9:50:39 AM5/3/18
to General Open edX discussion
Hello Umaimath,

Can you pleas tell me where to set these permissions. I have created theme directory: prud-Theme in home/ubuntu location.
I now am required to set permission on this Theme file. So I am using below command:

sudo chown -R edxapp:edxapp /prud-Theme

but it is giving errors as:
chown: cannot access '/prud-Theme': No such file or Directory.
So where exactly shall i run this command.
Please guide.

Bhagvan Kommadi

unread,
May 13, 2018, 12:25:42 PM5/13/18
to General Open edX discussion
hi Chandrasekhar,


The prod-theme directory is under /edx/app/edxapp/ as mentioned in the link.
Reply all
Reply to author
Forward
0 new messages