I get an error after editing my admin.py file as follows:

from django.contrib import admin
from flow.models import Flow
admin.site.register(Flow)

... here is the error:
ImportError at /
cannot import name 'Flow'
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.6.5
Exception Type: ImportError
Exception Value: 
cannot import name 'Flow'
Exception Location: C:\landy\cresta\flow\admin.py in <module>, line 2
Python Executable: C:\landy\Scripts\python.exe
Python Version: 3.4.0
Python Path: 
['C:\\landy\\cresta',
 'C:\\Windows\\system32\\python34.zip',
 'C:\\Python34\\DLLs',
 'C:\\Python34\\lib',
 'C:\\Python34',
 'C:\\landy',
 'C:\\landy\\lib\\site-packages']
Server time: Thu, 14 Aug 2014 18:55:00 +0100

I am running in a virtual env.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/d5f30c9a-9611-4c42-9fd7-0895a3450cc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to