Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
devstack
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
devstack
Commits
bc0cfcbb
Commit
bc0cfcbb
authored
Jul 20, 2017
by
Albert St. Aubin
Committed by
Albert (AJ) St. Aubin
Aug 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ecommerce PyCharm integration notes
parent
eda14e03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
docs/pycharm_integration.rst
+27
-0
No files found.
docs/pycharm_integration.rst
View file @
bc0cfcbb
...
@@ -83,6 +83,20 @@ so you can easily switch back to old without this delay.
...
@@ -83,6 +83,20 @@ so you can easily switch back to old without this delay.
**Warning**: When you change configuration files, the service drop-down gets
**Warning**: When you change configuration files, the service drop-down gets
reset. Remember to restore to the IDA you wish to test.
reset. Remember to restore to the IDA you wish to test.
Setup Django Support
--------------------
Before setting up a Server/Debug configuration you will need to setup Django
Support for the specific Project (e.g. LMS and Studio, or ecommerce)
PyCharm -> Preferences -> Languages & Frameworks -> Django
Here are some example settings you might use:
Django Project Root: /Path/to/docker_devstack/ecommerce
Settings: ecommerce/settings/devstack.py
Manage Script: manage.py
Setup a Server Run/Debug Configuration
Setup a Server Run/Debug Configuration
--------------------------------------
--------------------------------------
...
@@ -101,6 +115,19 @@ be set to the service-specific port from the table above.
...
@@ -101,6 +115,19 @@ be set to the service-specific port from the table above.
*Note*: See next section for additional changes needed for LMS and
*Note*: See next section for additional changes needed for LMS and
Studio.
Studio.
Setup a Server Run/Debug Configuration for ecommerce
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add the following Environment Variables to the Server configuration, these are all
defined on the ecommerce server in /edx/app/ecommerce/ecommerce_env
.. code-block::
export PATH="/edx/app/ecommerce/nodeenvs/ecommerce/bin:/edx/app/ecommerce/venvs/ecommerce/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
export ECOMMERCE_CFG="/edx/etc/ecommerce.yml"
export DJANGO_SETTINGS_MODULE="ecommerce.settings.devstack"
Setup a Server Run/Debug Configuration for LMS or Studio
Setup a Server Run/Debug Configuration for LMS or Studio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment