Tuesday, April 28, 2015

Re: 1.8, django-extensions, ipython notebook no models?

Running

$ ./manage.py shell_plus --ipython

works fine - all models are imported

L.

------
let's build quiet armies friends, let's march on their glass towers...let's build fallen cathedrals and make impractical plans

- GYBE

On 29 April 2015 at 11:15, Lachlan Musicman <datakid@gmail.com> wrote:
Hi,

Using Django 1.8, django-extensions 1.5.2, ipython 3.1.0 in a virtualenv

I can't get access to my models at all?

All of the following fail:

d = Document()

from models import *
from app.models import *
from proj.app.models import *

i am loading from within venv with

$ ./manage.py shell_plus --notebook

My settings are:

IPYTHON_ARGUMENTS = [
    '--ext', 'django_extensions.management.notebook_extension',
    '--debug',
]


My dir layout is:

.
├── fraser
│   ├── __init__.py
│   ├── settings
│   │   ├── base.py
│   │   ├── dev.py
│   │   └── __init__.py
│   ├── urls.py
│   └── wsgi.py
├── manage.py
├── texts
│   ├── admin.py
│   ├── __init__.py
│   ├── models.py
│   ├── tests.py
│   └── views.py
└── utils
    └── archive_import.ipynb

Any tips greatly appreciated.

cheers
L.


------
let's build quiet armies friends, let's march on their glass towers...let's build fallen cathedrals and make impractical plans

- GYBE

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiNN9vm4j3zYSBOMXAZObq6u_71VYRf6LkhC3n04aLqtWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment