Using 0.95 I'm triying to solve a problem.

When the webserver is running, say this:

Traceback (most recent call last):
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\handlers\base.py"
in get_response
  65. callback, callback_args, callback_kwargs = resolver.resolve(path)
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\urlresolvers.py"
in resolve
  75. sub_match = pattern.resolve(new_path)
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\urlresolvers.py"
in resolve
  73. for pattern in self.urlconf_module.urlpatterns:
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\urlresolvers.py"
in _get_urlconf_module
  89. self._urlconf_module = __import__(self.urlconf_name, '', '',
[''])

  SyntaxError at /articulos/
  invalid syntax (urls.py, line 14)

My Urls is:

F:\Proyectos\jhonWeb\urls.py

urlpatterns = patterns('jhonWeb',
    (r'^r/', include('django.conf.urls.shortcut')),
    (r'^articulos/', include('articles.urls')),
)

and

F:\Proyectos\jhonWeb\articles\urls.py

from django.conf.urls.defaults import *
from jhonWeb.articles.models import Articles

info_dict = {
    'queryset': Articles.objects.all(),
}

urlpatterns = patterns('django.views.generic',
    (r'^$', 'jhonWeb.articles.views.index',
    #(r'^$', 'list_detail.object_list',
dict(queryset=Articles.objects.all(), paginate_by=20,
template_name='articles/article_list.html')),
    (r'^(?P<object_id>\d+)/$', 'list_detail.object_detail', info_dict),
    (r'^(?P<object_id>\d+)/results/$', 'list_detail.object_detail',
dict(info_dict, template_name='polls/results.html')),
)

Ok.

I need to guess the error. Fine.

However, I close the webserver from the console (I'm runnig like this:
python manage.py runserver inside a RunWebServer.cmd on
F:\Proyectos\jhonWeb\)

I get this:

Traceback (most recent call last):
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\handlers\base.py"
in get_response
  65. callback, callback_args, callback_kwargs = resolver.resolve(path)
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\urlresolvers.py"
in resolve
  75. sub_match = pattern.resolve(new_path)
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\urlresolvers.py"
in resolve
  75. sub_match = pattern.resolve(new_path)
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\urlresolvers.py"
in resolve
  49. self.func = self.get_callback()
File
"d:\programacion\python\python24\lib\site-packages\django\django\core\urlresolvers.py"
in get_callback
  57. raise ViewDoesNotExist, "Could not import %s. Error was: %s" %
(mod_name, str(e))

  ViewDoesNotExist at /articulos/
  Could not import articles.views.django.views.generic.list_detail.
Error was: No module named django.views.generic.list_detail

The weird thing is: I DON?T HAVE THE WEBSERVER RUNNING. I close it.
Really! However I get a django error page...

I test it from Firefox 1.5 and IE. I clear the cache and still get it...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to