When you used the shell, you imported 'tracks.views' but in your urls.py, you have musicsite.views.home. The two don't match.
On Wednesday, December 12, 2012 6:11:54 AM UTC-8, Lloyd Dube wrote: > > urls.py: > > urlpatterns = patterns('', > # Examples: > url(r'^$', 'musicsite.views.home', name='home'), > # url(r'^musicsite/', include('musicsite.foo.urls')), > > # 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)), > ) > > I even considered indentation problems, but I have checked that and it is > fine. > > > On Tue, Dec 11, 2012 at 5:53 PM, Sergiy Khohlov > <skho...@gmail.com<javascript:> > > wrote: > >> please paste your urls.py >> >> >> 2012/12/11 Sithembewena Lloyd Dube <zeb...@gmail.com <javascript:>>: >> > Hi Segiy, >> > >> > Thanks for the response. "myproject" is only an alias I used while >> posting >> > the code on here, in the project code it is actually "tracks". >> > >> > >> > On Tue, Dec 11, 2012 at 1:31 PM, Sergiy Khohlov >> > <skho...@gmail.com<javascript:>> >> wrote: >> >> >> >> take a look you have error related to myproject.view.home but >> >> importing track.view.home .... >> >> >> >> 2012/12/11 Sithembewena Lloyd Dube <zeb...@gmail.com <javascript:>>: >> >> > >> >> > >> >> > On Tue, Dec 11, 2012 at 4:36 AM, Sithembewena Lloyd Dube >> >> > <zeb...@gmail.com <javascript:>> >> >> > wrote: >> >> >> >> >> >> Hi all, >> >> >> >> >> >> I have a Django project running Django 1.4.1. (just upgraded). My >> >> >> TEMPLATE_DIRS entry is: >> >> >> >> >> >> '/home/mymachine/Code/myproject/templates', >> >> >> >> >> >> >> >> >> and that is exactly where the index template of the new project is >> even >> >> >> when i use Firefox to locate it. >> >> >> >> >> >> In my home view, I call render_to_response as follows: >> >> >> >> >> >> 'def home(request): >> >> >> return render_to_response('myapp/index.html', {})', >> >> >> >> >> >> >> >> >> This raises an exception of type ViewDoesNotExist. If I run python >> >> >> manage.py shell, import the view and call it with None as an >> argument >> >> >> for >> >> >> request, it shows that a response object is returned. Yet, the >> browser >> >> >> will >> >> >> not render it. >> >> >> >> >> >> >>> from tracks.views import home as h >> >> >> >>> h(None) >> >> >> <django.http.HttpResponse object at 0x95fdeac> >> >> >> >>> dir(h(None)) >> >> >> ['__class__', '__contains__', '__delattr__', '__delitem__', >> '__dict__', >> >> >> '__doc__', '__format__', '__getattribute__', '__getitem__', >> >> >> '__getstate__', >> >> >> '__hash__', '__init__', '__iter__', '__module__', '__new__', >> >> >> '__reduce__', >> >> >> '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', >> >> >> '__setstate__', >> >> >> '__sizeof__', '__str__', '__subclasshook__', '__weakref__', >> >> >> '_base_content_is_iter', '_charset', '_container', >> '_convert_to_ascii', >> >> >> '_get_content', '_headers', '_set_content', 'close', 'content', >> >> >> 'cookies', >> >> >> 'delete_cookie', 'flush', 'get', 'has_header', 'items', 'next', >> >> >> 'set_cookie', 'set_signed_cookie', 'status_code', 'tell', 'write'] >> >> >> >> >> >> Am I missing something? >> >> >> >> >> >> Thanks. >> >> >> >> >> >> -- >> >> >> Regards, >> >> >> Sithu Lloyd Dube >> >> > >> >> > >> >> > >> >> > >> >> > -- >> >> > Regards, >> >> > Sithu Lloyd Dube >> >> > >> >> > -- >> >> > You received this message because you are subscribed to the Google >> >> > Groups >> >> > "Django users" group. >> >> > To post to this group, send email to >> >> > django...@googlegroups.com<javascript:> >> . >> >> > To unsubscribe from this group, send email to >> >> > django-users...@googlegroups.com <javascript:>. >> >> > For more options, visit this group at >> >> > http://groups.google.com/group/django-users?hl=en. >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> Groups >> >> "Django users" group. >> >> To post to this group, send email to >> >> django...@googlegroups.com<javascript:> >> . >> >> To unsubscribe from this group, send email to >> >> django-users...@googlegroups.com <javascript:>. >> >> For more options, visit this group at >> >> http://groups.google.com/group/django-users?hl=en. >> >> >> > >> > >> > >> > -- >> > Regards, >> > Sithu Lloyd Dube >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "Django users" group. >> > To post to this group, send email to >> > django...@googlegroups.com<javascript:> >> . >> > To unsubscribe from this group, send email to >> > django-users...@googlegroups.com <javascript:>. >> > For more options, visit this group at >> > http://groups.google.com/group/django-users?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> django-users...@googlegroups.com <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Regards, > Sithu Lloyd Dube > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GvUfAf_KOFQJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.