Re: Exception Value: No module named urls
I finally fund the problem. A freelancer I have working on the site deleted a urls file in my api app. On Mar 11, 10:34 am, nerdydorkwrote: > /home/inzolo/webapps/budgetsite/lib/python2.5 contains "django". That > is the only folder there. This is hosted on Webfaction. > > On Mar 11, 9:35 am, Xavier Ordoquy wrote: > > > > > Hello, > > > > /home/inzolo/webapps/budgetsite/lib/python2.5 > > > You probably want > > /home/inzolo/webapps/budgetsite/lib/python2.5/site-packages instead if it's > > a virtual env. > > > Xavier. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Exception Value: No module named urls
/home/inzolo/webapps/budgetsite/lib/python2.5 contains "django". That is the only folder there. This is hosted on Webfaction. On Mar 11, 9:35 am, Xavier Ordoquywrote: > Hello, > > > /home/inzolo/webapps/budgetsite/lib/python2.5 > > You probably want /home/inzolo/webapps/budgetsite/lib/python2.5/site-packages > instead if it's a virtual env. > > Xavier. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Exception Value: No module named urls
Hello, > /home/inzolo/webapps/budgetsite/lib/python2.5 You probably want /home/inzolo/webapps/budgetsite/lib/python2.5/site-packages instead if it's a virtual env. Xavier. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Exception Value: No module named urls
I have that folder in my python path. Here is my wsgi file === import os import sys sys.path = ['/home/inzolo/webapps/budgetsite', '/home/inzolo/webapps/budgetsite/budgetsite', '/home/inzolo/webapps/budgetsite/budgetsite/budget', '/home/inzolo/webapps/budgetsite/lib/python2.5'] + sys.path from django.core.handlers.wsgi import WSGIHandler os.environ['DJANGO_SETTINGS_MODULE'] = 'budgetsite.settings' application = WSGIHandler() === I added '/home/inzolo/webapps/budgetsite/budgetsite' & '/home/inzolo/ webapps/budgetsite/budgetsite/budget' trying to fix the problem, but still no luck. On Mar 11, 7:08 am, felix <crucialfe...@gmail.com> wrote: > its an ImportError which means that it couldn't find your main urls.py > or possibly a sub urls that you are including. > > check your python paths > > you need to include the folder ABOVE the module you are addressing > > eg. > > folder > app > urls.py > models.py > > folder needs to be on the python path > > On Mar 11, 2:13 pm, nerdydork <dustin.da...@gmail.com> wrote: > > > > > I hired someone to help me write an API using piston. One of the pages > > is returning this error: > > === > > Traceback: > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > > handlers/base.py" in get_response > > 83. request.path_info) > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > > urlresolvers.py" in resolve > > 218. sub_match = pattern.resolve(new_path) > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > > urlresolvers.py" in resolve > > 216. for pattern in self.url_patterns: > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > > urlresolvers.py" in _get_url_patterns > > 245. patterns = getattr(self.urlconf_module, "urlpatterns", > > self.urlconf_module) > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > > urlresolvers.py" in _get_urlconf_module > > 240. self._urlconf_module = > > import_module(self.urlconf_name) > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/utils/ > > importlib.py" in import_module > > 35. __import__(name) > > > Exception Type: ImportError at /api/v0.1/transaction.xml/get/ > > Exception Value: No module named urls > > === > > > I was running Django 1.0. I thought I would first try to update to the > > latest stable version 1.1. I'm still getting the above error, but now > > I am also getting this error on all my admin pages. I can see my admin > > login screen, but once I log in, I get this error page. The rest of > > the site works fine. > > > My guess is that it might have something to do with the URL reverse > > function, but I'm not sure. Anyone have an idea? > > > === > > Environment: > > > Request Method: GET > > Request URL:https://inzolo.com/admin/ > > Django Version: 1.1.1 > > Python Version: 2.5.4 > > Installed Applications: > > ['django.contrib.auth', > > 'django.contrib.contenttypes', > > 'django.contrib.sessions', > > 'django.contrib.sites', > > 'django.contrib.admin', > > 'django.contrib.flatpages', > > 'django_wysiwyg', > > 'registration', > > 'template_utils', > > 'budgetsite.budget', > > 'budgetsite.budget.templatetags.hashkey', > > 'south', > > 'paypal.standard.ipn', > > 'wapi'] > > Installed Middleware: > > ('django.middleware.common.CommonMiddleware', > > 'django.contrib.sessions.middleware.SessionMiddleware', > > 'django.contrib.auth.middleware.AuthenticationMiddleware', > > 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', > > 'budgetsite.budget.middleware.ProStatusMiddleware', > > 'budgetsite.budget.middleware.SecureBudgetPros') > > > Traceback: > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > > handlers/base.py" in get_response > > 92. response = callback(request, *callback_args, > > **callback_kwargs) > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/contrib/ > > admin/sites.py" in wrapper > > 196. return self.admin_view(view, cacheable)(*args, > > **kwargs) > > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/views/ > > decorators/cache.py" in _wrapped_view_func > > 44. response = view_func(request, *args, **kwargs) > > File "/home/inzolo/webapp
Re: Exception Value: No module named urls
its an ImportError which means that it couldn't find your main urls.py or possibly a sub urls that you are including. check your python paths you need to include the folder ABOVE the module you are addressing eg. folder app urls.py models.py folder needs to be on the python path On Mar 11, 2:13 pm, nerdydork <dustin.da...@gmail.com> wrote: > I hired someone to help me write an API using piston. One of the pages > is returning this error: > === > Traceback: > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > handlers/base.py" in get_response > 83. request.path_info) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > urlresolvers.py" in resolve > 218. sub_match = pattern.resolve(new_path) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > urlresolvers.py" in resolve > 216. for pattern in self.url_patterns: > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > urlresolvers.py" in _get_url_patterns > 245. patterns = getattr(self.urlconf_module, "urlpatterns", > self.urlconf_module) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > urlresolvers.py" in _get_urlconf_module > 240. self._urlconf_module = > import_module(self.urlconf_name) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/utils/ > importlib.py" in import_module > 35. __import__(name) > > Exception Type: ImportError at /api/v0.1/transaction.xml/get/ > Exception Value: No module named urls > === > > I was running Django 1.0. I thought I would first try to update to the > latest stable version 1.1. I'm still getting the above error, but now > I am also getting this error on all my admin pages. I can see my admin > login screen, but once I log in, I get this error page. The rest of > the site works fine. > > My guess is that it might have something to do with the URL reverse > function, but I'm not sure. Anyone have an idea? > > === > Environment: > > Request Method: GET > Request URL:https://inzolo.com/admin/ > Django Version: 1.1.1 > Python Version: 2.5.4 > Installed Applications: > ['django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.sites', > 'django.contrib.admin', > 'django.contrib.flatpages', > 'django_wysiwyg', > 'registration', > 'template_utils', > 'budgetsite.budget', > 'budgetsite.budget.templatetags.hashkey', > 'south', > 'paypal.standard.ipn', > 'wapi'] > Installed Middleware: > ('django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', > 'budgetsite.budget.middleware.ProStatusMiddleware', > 'budgetsite.budget.middleware.SecureBudgetPros') > > Traceback: > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ > handlers/base.py" in get_response > 92. response = callback(request, *callback_args, > **callback_kwargs) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/contrib/ > admin/sites.py" in wrapper > 196. return self.admin_view(view, cacheable)(*args, > **kwargs) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/views/ > decorators/cache.py" in _wrapped_view_func > 44. response = view_func(request, *args, **kwargs) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/contrib/ > admin/sites.py" in inner > 186. return view(request, *args, **kwargs) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/views/ > decorators/cache.py" in _wrapped_view_func > 44. response = view_func(request, *args, **kwargs) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/contrib/ > admin/sites.py" in index > 374. context_instance=context_instance > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/shortcuts/ > __init__.py" in render_to_response > 20. return HttpResponse(loader.render_to_string(*args, > **kwargs), **httpresponse_kwargs) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ > loader.py" in render_to_string > 108. return t.render(context_instance) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ > __init__.py" in render > 178. return self.nodelist.render(context) > File "/home/inzolo/webapps/budgetsite/lib/python2.5/d
Exception Value: No module named urls
I hired someone to help me write an API using piston. One of the pages is returning this error: === Traceback: File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ handlers/base.py" in get_response 83. request.path_info) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ urlresolvers.py" in resolve 218. sub_match = pattern.resolve(new_path) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ urlresolvers.py" in resolve 216. for pattern in self.url_patterns: File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ urlresolvers.py" in _get_url_patterns 245. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ urlresolvers.py" in _get_urlconf_module 240. self._urlconf_module = import_module(self.urlconf_name) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/utils/ importlib.py" in import_module 35. __import__(name) Exception Type: ImportError at /api/v0.1/transaction.xml/get/ Exception Value: No module named urls === I was running Django 1.0. I thought I would first try to update to the latest stable version 1.1. I'm still getting the above error, but now I am also getting this error on all my admin pages. I can see my admin login screen, but once I log in, I get this error page. The rest of the site works fine. My guess is that it might have something to do with the URL reverse function, but I'm not sure. Anyone have an idea? === Environment: Request Method: GET Request URL: https://inzolo.com/admin/ Django Version: 1.1.1 Python Version: 2.5.4 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.flatpages', 'django_wysiwyg', 'registration', 'template_utils', 'budgetsite.budget', 'budgetsite.budget.templatetags.hashkey', 'south', 'paypal.standard.ipn', 'wapi'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'budgetsite.budget.middleware.ProStatusMiddleware', 'budgetsite.budget.middleware.SecureBudgetPros') Traceback: File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/core/ handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/contrib/ admin/sites.py" in wrapper 196. return self.admin_view(view, cacheable)(*args, **kwargs) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/views/ decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/contrib/ admin/sites.py" in inner 186. return view(request, *args, **kwargs) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/views/ decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/contrib/ admin/sites.py" in index 374. context_instance=context_instance File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/shortcuts/ __init__.py" in render_to_response 20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ loader.py" in render_to_string 108. return t.render(context_instance) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ __init__.py" in render 178. return self.nodelist.render(context) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ __init__.py" in render 779. bits.append(self.render_node(node, context)) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ __init__.py" in render_node 792. return node.render(context) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ loader_tags.py" in render 97. return compiled_parent.render(context) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ __init__.py" in render 178. return self.nodelist.render(context) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ __init__.py" in render 779. bits.append(self.render_node(node, context)) File "/home/inzolo/webapps/budgetsite/lib/python2.5/django/template/ __init__.py" in render_node 792. return