Re: name 'admin' is not defined
There is a 'django.contrib.admin', under INSTALLED_APPS ( settings.py ) that must be enabled as well! After that I'd suggest to run `python manage.py syncdb` Best regards, Nevio On Tuesday, September 2, 2008 7:56:20 PM UTC+2, Weber Sites wrote: > > Hi > > I'm trying to follow the Tutorial02 and once i uncomment the admin > lines in urls.py i get : > > ImproperlyConfigured at /mysite/ > Error while importing URLconf 'mysite.urls': name 'admin' is not defined > > berber > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/UC0UyRFdtwgJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: name 'admin' is not defined
That is not silly at all! Maybe I am a little bit since your reply helped me just now (blush)... thanks! On Tuesday, September 2, 2008 8:15:13 PM UTC+2, Ronny Haryanto wrote: > > On Wed, Sep 3, 2008 at 12:56 AM, Weber Sites >> wrote: > > I'm trying to follow the Tutorial02 and once i uncomment the admin > > lines in urls.py i get : > > > > ImproperlyConfigured at /mysite/ > > Error while importing URLconf 'mysite.urls': name 'admin' is not defined > > This probably sounds silly, but since you don't give any code snippets > then I can't be sure. Have you uncommented the import line: > > from django.contrib import admin > > in urls.py? > > Ronny > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xH6ZsY6g37kJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: name 'admin' is not defined
Also uncomment the admin.autodiscover() line. (If you are holding a svn version) On Tue, Sep 2, 2008 at 11:15 AM, Ronny Haryanto <[EMAIL PROTECTED]> wrote: > > On Wed, Sep 3, 2008 at 12:56 AM, Weber Sites <[EMAIL PROTECTED]> > wrote: > > I'm trying to follow the Tutorial02 and once i uncomment the admin > > lines in urls.py i get : > > > > ImproperlyConfigured at /mysite/ > > Error while importing URLconf 'mysite.urls': name 'admin' is not defined > > This probably sounds silly, but since you don't give any code snippets > then I can't be sure. Have you uncommented the import line: > >from django.contrib import admin > > in urls.py? > > Ronny > > > > -- http://www.goldwatches.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: name 'admin' is not defined
On Wed, Sep 3, 2008 at 12:56 AM, Weber Sites <[EMAIL PROTECTED]> wrote: > I'm trying to follow the Tutorial02 and once i uncomment the admin > lines in urls.py i get : > > ImproperlyConfigured at /mysite/ > Error while importing URLconf 'mysite.urls': name 'admin' is not defined This probably sounds silly, but since you don't give any code snippets then I can't be sure. Have you uncommented the import line: from django.contrib import admin in urls.py? Ronny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---