Modify login page in included themes on Ginkgo

332 views
Skip to first unread message

Emeric LEBON

unread,
Apr 27, 2018, 9:22:45 AM4/27/18
to Open edX operations
Hi. I'm posting here because I can't find a solution to my problem and maybe you can help me.

I'm using OpenEDX Ginkgo on a native installation. I've setup comprehensive theming and I'm using the embedded "edge.edx.org" theme. I wanted to modify the default login page (which I believe is "login.html") on the LMS part, so I've copied it from the generic templates directory to the theme directory. 
I've edited it the way I want (actually I want people to only use OAuth so basically the only thing I did was removing the form and the attached javascript code), and I started the theme compilation using "paver update_assets lms --settings=aws --debug" and restarted the LMS. But it doesn't seem to work, the login page isn't modified. I tried to do the same with "registration-form.html", but I get the same result

Modifying the generic template doesn't work either. I'm pretty sure I'm missing something but I can't find what. Can anyone help me on this?

Emeric LEBON

unread,
Apr 27, 2018, 9:25:46 AM4/27/18
to Open edX operations
EDIT: i wanted to say that I originally posted this to the code group, but after noticing that this kind of question is asked there then I decided to recreate my topic here. 

I've found out that the login page isn't the "login.html" file found in the templates directory but rather the "student_account/login.underscore" file. 
What is the purpose of the "login.html" file then ? Where is it used ?

Uman Shahzad

unread,
Apr 27, 2018, 10:11:02 AM4/27/18
to openedx-ops googlegroups.com
I don't have a direct answer to this question, but there have been a lot of changes to the front-end of Open edX, including moving to Bootstrap, so it's possible the file has been deprecated.

--
Uman

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/a62cfa9c-ad5c-47d5-8a97-2fe7beea350a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Bhagvan Kommadi

unread,
Apr 29, 2018, 10:56:06 AM4/29/18
to Open edX operations
hi,

In the urls.py, an view is specified for login_and_register.html.


line 170: response = render_to_response('student_account/login_and_register.html', context)

Bhagvan Kommadi

unread,
Apr 29, 2018, 11:04:44 AM4/29/18
to Open edX operations
check:

edx-platform/lms/templates/student_account/login_and_register.html

line 35:  <%static:include path="student_account/${template_name}.underscore" />

login.underscore is rendered.

Brian Levine

unread,
Nov 27, 2018, 3:48:24 PM11/27/18
to Open edX operations
FWIW, I discovered that the include directive includes files from the edx-platform even if you have the file in your theme. I copied the entire student_account directory into my theme and modified the login_and_register.html and login.underscore files. Changes to the login_and_register.html file were seen in my theme, but the mods to login.underscore were not.  I added a comment to the login.underscore file from edx-platform to confirm that that was the one that was being included.

Still searching for a way to include the *.underscore files from my theme.

-b

Brian Levine

unread,
Nov 27, 2018, 4:28:34 PM11/27/18
to Open edX operations
I should also mention that I'm running the Hawthorne release using the Bitnami image.

Luis Miguel Cabezas Granado

unread,
Feb 3, 2019, 12:45:00 PM2/3/19
to Open edX operations
Hello, I have the same problem as you. Did you find the solution?

Thanks!!
Reply all
Reply to author
Forward
0 new messages