Django Error Was No Module Named Views
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have django error no module named mysqldb Meta Discuss the workings and policies of this site About Us
Django Importerror No Module Named
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Django No Module Named Settings
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers,
Django No Module Named Urls
just like you, helping each other. Join them; it only takes a minute: Sign up django - import error: no module named views up vote 5 down vote favorite I've been racking my brains and can't figure out why there should be an import error when 'views' is imported. I get the following message when I django no module named models visit my index page: " Request Method: GET Request URL: http://127.0.0.1:8000/moments/ Django Version: 1.6.1 Exception Type: ImportError Exception Value: No module named views Exception Location: C:\Python27\lib\site-packages\django\utils\importlib.py in import_module, line 40 " Here is my urls.py from django.conf.urls import patterns, url from moments_app import views urlpatterns = patterns('', url(r'^$', "views.index", name='index'), url(r'^$', "views.choose_dataset", name='choose'), url(r'^get_moments/', "views.get_moments", name='get_moments'), url(r'^learn/$', "views.learn", name='learn'), url(r'^(?P
here for a quick overview of the site Help Center Detailed answers django no module named psycopg2 to any questions you might have Meta Discuss the workings django no module named context_processors and policies of this site About Us Learn more about Stack Overflow the company Business django no module named related Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack http://stackoverflow.com/questions/21485148/django-import-error-no-module-named-views Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Django import error in views - no module named 'x' up vote 1 down vote favorite I keep getting an error that there's no such http://stackoverflow.com/questions/18921141/django-import-error-in-views-no-module-named-x module. The project name is gmblnew, and I have two subfolders- core and gmblnew - the app I'm working on is core. My urls.py file is from django.conf.urls import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'gmblnew.views.home', name='home'), # url(r'^gmblnew/', include('gmblnew.foo.urls')), url(r'^league/', include('core.views.league')), # Uncomment the admin/doc line below to enable admin documentation: url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^admin/', include(admin.site.urls)), ) This seems to be fine. The views.py file is: from django.http import HttpResponse def league(request): from core.models import Division response = HttpResponse() response['mimetype'] = 'text/plain' response.write("<>BODY>\n") response.write("< TABLE BORDER=1>