Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have two possible solutions to your problem:</p> <h2>Modify your PYTHONPATH environment variable</h2> <p>Add the path to apps catalogue by running following BASH / SH shell commands in your terminal:</p> <pre><code>$ export PYTHONPATH=$PYTHONPATH:'/path/to/apps' </code></pre> <p>Please not that adding it to the PATH environment variable won't work. To find out more about PYTHONPATH, how to manage it plus nice and friendly info on modules in general:</p> <p><a href="http://www.stereoplex.com/blog/understanding-imports-and-pythonpath">http://www.stereoplex.com/blog/understanding-imports-and-pythonpath</a></p> <p>Please note however that this approach does affect your system's PYTHONPATH. It is highly recommended to use a virtualenv - just in case things go wrong, it won't affect all your system and other apps. When using virtualenvwrapper:</p> <pre><code>$ add2virtualenv '/path/to/apps' </code></pre> <p>More <a href="http://virtualenvwrapper.readthedocs.org/en/latest/command_ref.html#add2virtualenv">HERE</a>.</p> <h2>Append path from inside the Python script</h2> <p>Alternatively, you can do the same but just for a script runtime by adding:</p> <pre><code>import sys sys.path.append('/path/to/apps') </code></pre> <p>to your <code>apps/alembic/env.py</code> file.</p> <p>Finally, in same file, make a following change:</p> <pre><code>from myapp.configs.config import DefaultConfig </code></pre> <p>And please note that your <code>apps/myapp</code> folder should also contain <code>__init__.py</code> file (might be empty) to make Python to treat is as a module as Demian Brecht pointed out.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload