I read the documentation of Django i followed till page 17 then I have got 
an error 
i do exactly the same as the tutorials in docs
please help me





Unhandled exception in thread started by <function 
check_errors.<locals>.wrapper at 0x7fb70bdb3510>
Traceback (most recent call last):
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/utils/autoreload.py",
 
line 226, in wrapper
    fn(*args, **kwargs)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/management/commands/runserver.py",
 
line 116, in inner_run
    self.check(display_num_errors=True)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/management/base.py",
 
line 426, in check
    include_deployment_checks=include_deployment_checks,
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/checks/registry.py",
 
line 75, in run_checks
    new_errors = check(app_configs=app_configs)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/checks/urls.py",
 
line 13, in check_url_config
    return check_resolver(resolver)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/checks/urls.py",
 
line 23, in check_resolver
    for pattern in resolver.url_patterns:
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/utils/functional.py",
 
line 33, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/urlresolvers.py",
 
line 417, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", 
self.urlconf_module)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/utils/functional.py",
 
line 33, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/core/urlresolvers.py",
 
line 410, in urlconf_module
    return import_module(self.urlconf_name)
  File "/home/kashif/Desktop/mysite/lib/python3.4/importlib/__init__.py", 
line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in 
_find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in 
_call_with_frames_removed
  File "/home/kashif/Desktop/mysite/mysite/mysite/urls.py", line 20, in 
<module>
    url(r'^polls/', include('polls.urls')),
  File 
"/home/kashif/Desktop/mysite/lib/python3.4/site-packages/django/conf/urls/__init__.py",
 
line 52, in include
    urlconf_module = import_module(urlconf_module)
  File "/home/kashif/Desktop/mysite/lib/python3.4/importlib/__init__.py", 
line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in 
_find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in 
_call_with_frames_removed
  File "/home/kashif/Desktop/mysite/mysite/polls/urls.py", line 5, in 
<module>
    url(r'^$', views.index, name ='index'),
AttributeError: 'module' object has no attribute 'index'

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7482b442-9953-4e9f-aea8-52da6af92eb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to