ModuleNotFound Error In Django In Django Tastypie Web Application
I am pretty new to Django. When i try to include the urls from the api.py file it returns me an error. Here is api.py file from the articles app folder from tastypie.resources impo
Solution 1:
Removing quotes from include will solve the problem
urlpatterns = [
url(r'^api/',include(article_resource.urls))
]
NOTE: Django include
functions uses python's import_module
to import the module from string, but here, the article_resource
is only available in your local scope.
Post a Comment for "ModuleNotFound Error In Django In Django Tastypie Web Application"