The error message (last line) is quite clear: ImportError: No module named 'django.conf.urls.defaults'
This module has been removed in 1.6 as noted in the deprecation timeline: https://docs.djangoproject.com/en/dev/internals/deprecation/#id3 On Thursday, November 14, 2013 12:57:48 PM UTC-5, Robert Jonathan Šimon wrote: > > When i upgraded Django from 1.5.1 to 1.6, sudenly Apache gives me this > bunch of errors. So i tried manage.py runserver adn it worked fine. When i > delete 1.6 and instal 1.5.5 it is all fine and all is working. > > [Thu Nov 14 17:34:23.601025 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] mod_wsgi (pid=9756): Exception occurred processing > WSGI script 'C:/Program Files/Apache Software > Foundation/Apache2.4/htdocs/mysite/mysite/wsgi.py'., referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.601025 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] Traceback (most recent call last):\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.601025 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File > "C:\\Python33\\lib\\site-packages\\django\\core\\urlresolvers.py", line > 339, in urlconf_module\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602002 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] return self._urlconf_module\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602002 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] AttributeError: 'RegexURLResolver' object has no > attribute '_urlconf_module'\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602002 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] \r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602002 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] During handling of the above exception, another > exception occurred:\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602002 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] \r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602002 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] Traceback (most recent call last):\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602002 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File > "C:\\Python33\\lib\\site-packages\\django\\core\\handlers\\wsgi.py", line > 187, in __call__\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602979 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] self.load_middleware()\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.602979 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File > "C:\\Python33\\lib\\site-packages\\django\\core\\handlers\\base.py", line > 49, in load_middleware\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] mw_instance = mw_class()\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File > "C:\\Python33\\lib\\site-packages\\django\\middleware\\locale.py", line 24, > in __init__\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] for url_pattern in > get_resolver(None).url_patterns:\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File > "C:\\Python33\\lib\\site-packages\\django\\core\\urlresolvers.py", line > 346, in url_patterns\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] patterns = getattr(self.urlconf_module, > "urlpatterns", self.urlconf_module)\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File > "C:\\Python33\\lib\\site-packages\\django\\core\\urlresolvers.py", line > 341, in urlconf_module\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] self._urlconf_module = > import_module(self.urlconf_name)\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.603955 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "C:\\Python33\\Lib\\importlib\\__init__.py", > line 90, in import_module\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] return _bootstrap._gcd_import(name[level:], > package, level)\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 1586, > in _gcd_import\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 1567, > in _find_and_load\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 1534, > in _find_and_load_unlocked\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 586, in > _check_name_wrapper\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 1024, > in load_module\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 1005, > in load_module\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 562, in > module_for_loader_wrapper\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 870, in > _load_module\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "<frozen importlib._bootstrap>", line 313, in > _call_with_frames_removed\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] File "C:\\Program Files\\Apache Software > Foundation\\Apache2.4\\htdocs\\mysite\\mysite\\urls.py", line 1, in > <module>\r, referer: http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.604932 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] from django.conf.urls.defaults import *\r, > referer: http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > [Thu Nov 14 17:34:23.605908 2013] [:error] [pid 9756:tid 1044] [client > 90.178.52.216:27044] ImportError: No module named > 'django.conf.urls.defaults'\r, referer: > http://176.107.123.114:9000/hlavni_stranka/prihlasen/ > A really dont know, where is the problem. Can anyone help me? > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2f0017bf-0a15-42f1-b57c-e885a9939c98%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

