Re: 'url' template tag throws and error after upgrading to 1.4
I am trying now in a brand new environment, I have set up a new os, a new virtualenv with all the dependencies upgraded to latest versions, and I installed the project from the repository. It loads with debug = False, quite strange. I need it to work with debug = True and I want to understand what is wrong. Thanks for the help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: 'url' template tag throws and error after upgrading to 1.4
I'm not sure what you mean with 'connect to views'. In this case Django is complaining about the URL tags, the first one that gives an error tries to load django.views.i18n.javascript_catalog. When I manage.py shell I can do from django.views import * without problem. I really have no clue, maybe it is related to the static files in a way. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: 'url' template tag throws and error after upgrading to 1.4
Can you run manage.py shell and connect to 'views?' On Thu, Apr 4, 2013 at 4:13 PM, Mark Furbeewrote: > It would appear to me that your missing the path to django in your > environment. When you upgraded did you also upgrade to another version of > Python, perhaps? Is the dist-packages/site-packages django folder in the > same place it was? > > > On Thu, Apr 4, 2013 at 3:58 PM, Bastian wrote: > >> I have tried with runserver and debug = True and it gives me the error >> but when I turn off debug then the site loads fine. >> Then I installed gunicorn and with debug = true and the error appears but >> with debug = False the site loads fine but without the static content. >> I don't know if this is a clue about something wrong in the static >> settings or if it's just a setting in gunicorn. >> >> Any idea? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: 'url' template tag throws and error after upgrading to 1.4
It would appear to me that your missing the path to django in your environment. When you upgraded did you also upgrade to another version of Python, perhaps? Is the dist-packages/site-packages django folder in the same place it was? On Thu, Apr 4, 2013 at 3:58 PM, Bastianwrote: > I have tried with runserver and debug = True and it gives me the error but > when I turn off debug then the site loads fine. > Then I installed gunicorn and with debug = true and the error appears but > with debug = False the site loads fine but without the static content. > I don't know if this is a clue about something wrong in the static > settings or if it's just a setting in gunicorn. > > Any idea? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: 'url' template tag throws and error after upgrading to 1.4
I have tried with runserver and debug = True and it gives me the error but when I turn off debug then the site loads fine. Then I installed gunicorn and with debug = true and the error appears but with debug = False the site loads fine but without the static content. I don't know if this is a clue about something wrong in the static settings or if it's just a setting in gunicorn. Any idea? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: 'url' template tag throws and error after upgrading to 1.4
Thanks for the answer. But it does not really make any difference. I am still trying to figure out what is wrong in there... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: 'url' template tag throws and error after upgrading to 1.4
You may try {% load url from future %} But wrapping first argument to url in quotes was introduced in 1.5. Your original code should work. Please wait for someone else to answer. On Thu, Mar 28, 2013 at 9:27 PM, Bastianwrote: > Hi, > > I am trying to upgrade an existing project from 1.3 to 1.4.5. I have it > almost done but when I try to load the home page, in the base.html I have > this line: > > > > and it throws an error: No module named views. > > When I replace the tag with the real url (/jsi18n/) then the error > disappears but it reappears a little further with another 'url' template > tag. So I believe something is wrong with this > specific template tag. I have no idea how to debug it. Is there something > obvious that I missed when upgrading to 1.4? > > Here is the traceback: > > Traceback: > File > "/home/env/project/lib/python2.7/site-packages/django/core/handlers/base.py" > in get_response > 136. response = response.render() > File > "/home/env/project/lib/python2.7/site-packages/django/template/response.py" > in render > 104. self._set_content(self.rendered_content) > File > "/home/env/project/lib/python2.7/site-packages/django/template/response.py" > in rendered_content > 81. content = template.render(context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in > render > 140. return self._render(context) > File "/home/env/project/lib/python2.7/site-packages/django/test/utils.py" > in instrumented_test_render > 62. return self.nodelist.render(context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in > render > 823. bit = self.render_node(node, context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/debug.py" in > render_node > 74. return node.render(context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/loader_tags.py" > in render > 123. return compiled_parent._render(context) > File "/home/env/project/lib/python2.7/site-packages/django/test/utils.py" > in instrumented_test_render > 62. return self.nodelist.render(context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in > render > 823. bit = self.render_node(node, context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/debug.py" in > render_node > 74. return node.render(context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/loader_tags.py" > in render > 123. return compiled_parent._render(context) > File "/home/env/project/lib/python2.7/site-packages/django/test/utils.py" > in instrumented_test_render > 62. return self.nodelist.render(context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in > render > 823. bit = self.render_node(node, context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/debug.py" in > render_node > 74. return node.render(context) > File > "/home/env/project/lib/python2.7/site-packages/django/template/defaulttags.py" > in render > 411. url = reverse(view_name, args=args, kwargs=kwargs, > current_app=context.current_app) > File > "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" > in reverse > 476. return iri_to_uri(resolver._reverse_with_prefix(view, prefix, > *args, **kwargs)) > File > "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" > in _reverse_with_prefix > 363. possibilities = self.reverse_dict.getlist(lookup_view) > File > "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" > in reverse_dict > 276. self._populate() > File > "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" > in _populate > 265. lookups.appendlist(pattern.callback, (bits, > p_pattern, pattern.default_args)) > File > "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" > in callback > 216. self._callback = get_callable(self._callback_str) > File > "/home/env/project/lib/python2.7/site-packages/django/utils/functional.py" > in wrapper > 27. result = func(*args) > File > "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" > in get_callable > 92. lookup_view = getattr(import_module(mod_name), > func_name) > File > "/home/env/project/lib/python2.7/site-packages/django/utils/importlib.py" > in import_module > 35. __import__(name) > > Exception Type: ImportError at / > Exception Value: No module named views > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to
'url' template tag throws and error after upgrading to 1.4
Hi, I am trying to upgrade an existing project from 1.3 to 1.4.5. I have it almost done but when I try to load the home page, in the base.html I have this line: and it throws an error: No module named views. When I replace the tag with the real url (/jsi18n/) then the error disappears but it reappears a little further with another 'url' template tag. So I believe something is wrong with this specific template tag. I have no idea how to debug it. Is there something obvious that I missed when upgrading to 1.4? Here is the traceback: Traceback: File "/home/env/project/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 136. response = response.render() File "/home/env/project/lib/python2.7/site-packages/django/template/response.py" in render 104. self._set_content(self.rendered_content) File "/home/env/project/lib/python2.7/site-packages/django/template/response.py" in rendered_content 81. content = template.render(context) File "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in render 140. return self._render(context) File "/home/env/project/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render 62. return self.nodelist.render(context) File "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in render 823. bit = self.render_node(node, context) File "/home/env/project/lib/python2.7/site-packages/django/template/debug.py" in render_node 74. return node.render(context) File "/home/env/project/lib/python2.7/site-packages/django/template/loader_tags.py" in render 123. return compiled_parent._render(context) File "/home/env/project/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render 62. return self.nodelist.render(context) File "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in render 823. bit = self.render_node(node, context) File "/home/env/project/lib/python2.7/site-packages/django/template/debug.py" in render_node 74. return node.render(context) File "/home/env/project/lib/python2.7/site-packages/django/template/loader_tags.py" in render 123. return compiled_parent._render(context) File "/home/env/project/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render 62. return self.nodelist.render(context) File "/home/env/project/lib/python2.7/site-packages/django/template/base.py" in render 823. bit = self.render_node(node, context) File "/home/env/project/lib/python2.7/site-packages/django/template/debug.py" in render_node 74. return node.render(context) File "/home/env/project/lib/python2.7/site-packages/django/template/defaulttags.py" in render 411. url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app) File "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" in reverse 476. return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) File "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" in _reverse_with_prefix 363. possibilities = self.reverse_dict.getlist(lookup_view) File "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" in reverse_dict 276. self._populate() File "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" in _populate 265. lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args)) File "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" in callback 216. self._callback = get_callable(self._callback_str) File "/home/env/project/lib/python2.7/site-packages/django/utils/functional.py" in wrapper 27. result = func(*args) File "/home/env/project/lib/python2.7/site-packages/django/core/urlresolvers.py" in get_callable 92. lookup_view = getattr(import_module(mod_name), func_name) File "/home/env/project/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) Exception Type: ImportError at / Exception Value: No module named views -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.