score:1
you do not need to include ecomstore
when importing. have you added catalog
to your installed_apps
in your settings.py
in the ecomstore
project folder?
e.g.:
installed_apps = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# uncomment the next line to enable the admin:
'django.contrib.admin',
# uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'catalog'
)
score:0
change the line to
from catalog.models import product
and it should work. the problem is it is looking for a module (directory) named 'ecomstore' within the directories on the search path. note that this is different to finding 'ecomstore' in the search path - it doesn't care what the directory names on the search path are, it just looks inside them.
score:0
shot in the dark: check your pythonpath settings in windows system settings. it used to be right clicking over the my pc icon and click on properties. one of the tabs will show you sistem paths.
Source: stackoverflow.com
Related Query
- Eclipse and Google App Engine: ImportError: No module named _sysconfigdata_nd; unrecognized arguments: --high_replication
- No module named filterspecs
- Unable to resolve 'No module named Appium' error
- py2exe ImportError: no module named <package I have impemented>
- pydev importerror: no module named thread, debugging no longer works after pydev upgrade
- python project dependencies with maven - modulenotfounderror: no module named 'yyy'
- ImportError: No module named _______
- Windows, Eclipse, Pretty Printers - ImportError: No module named _gdb
- No module named cairo - Mac
- Python Django no module named 'app' in eclipse, urls.py
- org.eclipse.core.runtime.CoreException: Module named '_auto_generated_ear_' failed to deploy
- Eclipse asking for module named after the old project name
- "ModuleNotFoundError: No module named x" : Pydev configuration correct?
- how to import / add module named web in python
- PyDev run configuration: ImportError: No module named
- Anaconda2 ImportError: No module named matplotlib.pylab
- pydev project - no module named pyodbc
- ImportError: No module named osv
- ImportError while importing a python package into a python module
- Pinax synch db gives me no module named debug_toolbar?
- from google.appengine.ext.webapp.util import run_wsgi_app ImportError: No module named google.appengine.ext.webapp.util
- ImportError: No module named py4j.java_gateway
- ImportError: No module named dtmilano
- ImportError when Importing Python Module into Java Program in Eclipse
- ModuleNotFoundError: No module named '_pydevd_bundle'
- getting error "modulenotfounderror: No module named 'google'" but when trying to install through command prompt it says requirement already satisfied
- No module named py4j.protocol on Eclipse (PyDev)
- Python Django no module named app in eclipse
- eclipse + jython: importError: No module named pycurl
- ImportError: No module named 'libstdcxx' when starting Eclipse debugger
More Query from same tag
- My java source files cannot be commited
- SAP HANA Modeler view in Eclipse IDEInsufficient privilege (EXECUTE on REPOSITORY_REST)
- How do i match a specific input within a string in Java?
- Android L (5.0) does not search native libraries in “armeabi” or "armeabi-v7a" folder (UnsatisfiedLinkError) in eclipse
- How do you get files updated from a GIT repository in eclipse?
- What is the purpose of settings.xml in a maven project?
- Exception occurred while getting the javadoc: Unknown javadoc format
- Error:Execution failed for task ':Find Me:transformResourcesWithMergeJavaResForDebug'
- How to include only one dependency project classes in final jar
- pydev source helpers for indirect packages
- Read Text from website and put it in a string (Android , Eclipse)
- Unable to read value from console in java using eclipse
- Could not fetch model of type 'EclipseProject' using Gradle
- Maven in eclipse Indigo, project dependency on Runtime
- How to move from Eclipse Carbon to Cocoa 64-bit?
- Getting error when running maven project second time in eclipse ide
- How to hide other panels or panes during coding
- Spring MVC tutorial not working
- How can I make PyDev autoformat the maximum number of characters per line?
- How to shade all occurrences of highlighted word in custom editor plugin
- kafka_2.10 source is not available
- Sharing project library via GIT
- Time limit for progress dialogue in android
- How do you do install ada into eclipse?
- How can I get other branches than "master" to show in my package explorer?
- What is a goal when running a Maven/Wicket project in Eclipse?
- Mysql DB connection with JDBC freezing program
- Detect Who Created a Thread (w. Eclipse)
- Simplest way to access Eclipse from java program?
- looking for code revision gui/application for my eclipse subversion