Hi,
I’m trying to submit the course from the form by adding extra input field. which is not going in XHR request.
four values only passing in the ajax call.
Can you provide more information on what you are trying to do, and what you have changed?
My understanding is that you have already updated the templates inside cms to show another field, right? If that’s the case, you’ll need now to update the JavaScript function that sends the XHR request to the API endpoint to include the new inputs data. You can find it here.
Like you said i’ve already added the additional parameter in the same place where you have mentioned. But still i can not able to get the data in the “inspect element XHR request”.
The new parameter is department which has been added as new
check the additional screenshot too as i have added the new line in the beginning of the code in the same file index.js.
Screenshot3 : Screenshot by Lightshot
The default install creates a Python virtualenv in /edx/app/edxapp/venvs/edxapp with all the packages necessary for running the platform. It seems you customised the installation path, so you might have it inside /opt/...
Activating the correct virtual environment and running the paver command should get you what you are trying to do.
Advice: Instead of modifying the native installation directly, I recommend getting the modifications tested on a devstack first as it’s much easier and faster to iterate.
If you activate the Python virtualenv used by the edx-platform, the paver command is added to the PATH and it reads from /edx/etc/*yml to find where the themes are installed, so you can run this from anywhere really.
Can you share more information on the errors and what you are trying to do?
Hi Viadanna,
I got the paver.edxapp file in /opt/edx-ironwood.2-0/apps/edx/bin
This file having below contant
#!/bin/sh
. /opt/edx-ironwood.2-0/apps/edx/conf/edxapp_env
cd /opt/edx-ironwood.2-0/apps/edx/edx-platform
paver $@