Re: [Django] #12330: Tutorials Page 2 missing 'from django.contrib import admin' in urls.py

2009-12-06 Thread Django
#12330: Tutorials Page 2 missing 'from django.contrib import admin' in urls.py
+---
  Reporter:  dummydata  | Owner:  nobody
Status:  closed | Milestone:
 Component:  Uncategorized  |   Version:  1.1   
Resolution:  invalid|  Keywords:  tutorial admin
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by dummydata):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 nevermind... stupid user should RTFM.  sorry for the noise

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




[Django] #12330: Tutorials Page 2 missing 'from django.contrib import admin' in urls.py

2009-12-06 Thread Django
#12330: Tutorials Page 2 missing 'from django.contrib import admin' in urls.py
+---
 Reporter:  dummydata   |   Owner:  nobody
   Status:  new |   Milestone:
Component:  Uncategorized   | Version:  1.1   
 Keywords:  tutorial admin  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 In the tutorial section that details enabling the admin console, the
 instructions as they are result in an HTTP 500 error (see full error
 below) when attempting access the admin URL.

 Adding from django.contrib import admin to mysite/urls.py
 and restarting the test web server solved the issue.  The import statement
 should be added or clarified in the tutorial.
 [[BR]]
 [[BR]]

 -- ERROR --

 Environment:[[BR]]
 [[BR]]
 Request Method: GET[[BR]]
 Request URL: http://localhost:8000/admin/[[BR]]
 Django Version: 1.1.1[[BR]]
 Python Version: 2.6.4[[BR]]
 Installed Applications:[[BR]]
 ['django.contrib.auth',[[BR]]
  'django.contrib.contenttypes',[[BR]]
  'django.contrib.sessions',[[BR]]
  'django.contrib.sites',[[BR]]
  'django.contrib.admin',[[BR]]
  'inventory.collection'][[BR]]
 [[BR]]
 Installed Middleware:[[BR]]
 ('django.middleware.common.CommonMiddleware',[[BR]]
  'django.contrib.sessions.middleware.SessionMiddleware',[[BR]]
  'django.contrib.auth.middleware.AuthenticationMiddleware')[[BR]]
 [[BR]]
 [[BR]]
 Traceback:[[BR]]
 File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/django/core/handlers/base.py" in get_response[[BR]]
   83. request.path_info)[[BR]]
 File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/django/core/urlresolvers.py" in resolve[[BR]]
   216. for pattern in self.url_patterns:[[BR]]
 File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/django/core/urlresolvers.py" in _get_url_patterns[[BR]]
   245. patterns = getattr(self.urlconf_module, "urlpatterns",
 self.urlconf_module)[[BR]]
 File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/django/core/urlresolvers.py" in _get_urlconf_module[[BR]]
   240. self._urlconf_module =
 import_module(self.urlconf_name)[[BR]]
 File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/django/utils/importlib.py" in import_module[[BR]]
   35. __import__(name)[[BR]]
 File "/Users/dru/projects/inventory/../inventory/urls.py" in
 [[BR]]
   17. (r'^admin/', include(admin.site.urls)),[[BR]]
 [[BR]]
 '''Exception Type: NameError at /admin/'''[[BR]]
 '''Exception Value: name 'admin' is not defined'''[[BR]]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.