Note that there are some explanatory texts on larger screens.

plurals
  1. POManagement command not found without unzipping .egg
    primarykey
    data
    text
    <p>I have a django app that I've packaged according to the docs here: <a href="https://docs.djangoproject.com/en/1.5/intro/reusable-apps/" rel="nofollow">https://docs.djangoproject.com/en/1.5/intro/reusable-apps/</a></p> <p>I installed the app into a virtual environment using setup.py.</p> <pre><code>./setup.py install </code></pre> <p>The app's web UI runs fine from the virtual environment. But I cannot access the custom management command with this vanilla install.</p> <pre><code>(django_grm)[grm@controller django_grm]$ python ./manage.py sync_to_graphite Unknown command: 'sync_to_graphite' </code></pre> <p>Here's what the virtual environment looks like when the command will not execute:</p> <pre><code>(django_grm)[grm@controller django_grm]$ ll /home/grm/venv/django_grm/lib/python2.7/site-packages total 1148 ... -rw-rw-r-- 1 grm grm 243962 Jun 19 17:11 django_grm-0.0.4-py2.7.egg ... </code></pre> <p>However, once I unzip the .egg file, the management command works as expected.</p> <pre><code>(django_grm)[grm@controller django_grm]$ cd /home/grm/venv/django_grm/lib/python2.7/site-packages (django_grm)[grm@controller site-packages]$ unzip django_grm-0.0.4-py2.7.egg (django_grm)[grm@controller site-packages]$ ll /home/grm/venv/django_grm/lib/python2.7/site-packages total 1152 ... -rw-rw-r-- 1 grm grm 243962 Jun 19 17:11 django_grm-0.0.4-py2.7.egg drwxrwxr-x 6 grm grm 4096 Jun 19 17:16 dj_grm ... (django_grm)[grm@controller site-packages]$ cd /home/grm/django_projects/django_grm/ (django_grm)[grm@controller django_grm]$ python ./manage.py sync_to_graphite &lt;success&gt; </code></pre> <p>Is this normal behaviour? It feels wonky.</p>
    singulars
    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. 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