Custom theme not working

65 views
Skip to first unread message

Trinh Nguyen

unread,
May 28, 2017, 12:59:28 PM5/28/17
to edx-...@googlegroups.com
Hi,

I just apply a new theme (follow this documentation) but after I compiled the assets, everything broke.

* This is a production stack.
* Here are my them directory structure:
edx
└── my-themes
   └── edx-platform
      └── my-first-theme
         ├── cms
         └── lms
            └── static
               └── images
                  └── logo.png
            └── templates
* And my lms.env.json configuration:

"ENABLE_COMPREHENSIVE_THEMING": true,

    "COMPREHENSIVE_THEME_DIRS": [
        "/edx/my-themes/edx-platform" 
    ], 

"THEME_NAME": "my-first-theme"

* Everything under /edx/my-themes are own by edxapp:edxapp


After I compile the assets, the site saying that I missing the logo and some javascript files:



Looking at the logo url, It says: Mango%20Course-on-edx-logo.png not logo.png

Not sure how it gets that logo name?

Did anyone experienced this issue?

Thanks,


Nguyễn Trọng Đăng Trình

Matjaz Gregoric

unread,
May 29, 2017, 3:17:54 AM5/29/17
to edx-...@googlegroups.com
Hi Trinh,

Did you use correct django settings when compiling assets? In production you would typically use "aws" or "openstack" rather than the default "devstack" settings file, for example:

paver update_assets --settings=aws

If that doesn't work for you, you can also try:

- restarting memcached ("sudo service memcached restart")
- removing temporary mako files ("rm -r /tmp/mako_*")
- restarting all edx services ("sudo /edx/bin/supervisor restart all")

--
Matjaz Gregoric
@OpenCraft

Trinh Nguyen

unread,
May 29, 2017, 5:18:00 AM5/29/17
to edx-...@googlegroups.com
Thanks Matjaz,

I will try your suggestions.

Bests,


Nguyễn Trọng Đăng Trình

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CALNP4Fc5mEk1YMEXXp97SVrCf-53NG2hVDH_5OzomHcOVtHWHA%40mail.gmail.com.

Trinh Nguyen

unread,
May 29, 2017, 8:31:52 PM5/29/17
to edx-...@googlegroups.com
Hi,

The logo is still missing and pulling from this:

/static/images/Mango%20Course-on-edx-logo.png

I can do a workaround by modifying the navigation.html in my custom theme to use this URL (hard-code):

/static/my-first-theme/images/logo.png

Not sure how the new theming works.

Cheers,


Nguyễn Trọng Đăng Trình

Reply all
Reply to author
Forward
0 new messages