Tuesday, April 28, 2015

1.8, django-extensions, ipython notebook no models?

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/CAGBeqiMbkr2Z0bEJMBdeGheM-n0R1ocWbqXWBye7WpwbTO1Ceg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment