Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Patrick C > >Sent: Thursday, June 12, 2014 12:52 AM > >To: django...@googlegroups.com > >Subject: Re: NameError at /admin/ name 'HoleImage' is not defined

RE: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Ilya Kazakevich
-Original Message- >From: django-users@googlegroups.com >[mailto:django-users@googlegroups.com] On Behalf Of Patrick C >Sent: Thursday, June 12, 2014 12:52 AM >To: django-users@googlegroups.com >Subject: Re: NameError at /admin/ name 'HoleImage' is not defined > >Should

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
re!" > > > >-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Patrick C > >Sent: Thursday, June 12, 2014 12:32 AM > >To: django...@googlegroups.com > >Cc: ilya.ka...@jetbrains.com

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
nd have just tried it but >> still get the error: >> >> NameError at /admin/ >> >> name 'Hole' is not defined >> >> Request Method:GET Request URL:http://127.0.0.1:8000/admin/ Django >> Version:1.6.5Exception Type: NameErrorException Value: >> &

RE: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Ilya Kazakevich
Behalf Of Patrick C >Sent: Thursday, June 12, 2014 12:32 AM >To: django-users@googlegroups.com >Cc: ilya.kazakev...@jetbrains.com >Subject: Re: NameError at /admin/ name 'HoleImage' is not defined > >Hi Ilya, > >Thanks for the swift reply, sorry for the noob question

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
CharField(max_length=250)* >>> >>> >>> and my admin.py is: >>> >>> *from django.contrib import admin* >>> *from holes.models import Hole* >>> >>> *class HoleImageInline(admin.TabularInline):* >>> *model = Hole

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
When you import HoleImage don't remove Hole :) On Jun 11, 2014 3:41 PM, "Patrick C" <patrick.vibef...@gmail.com> wrote: > Hi Jorge, > > Thanks for helping out - I understand that and have just tried it but > still get the error: > > NameError at /admin/ > >

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
Hi Jorge, Thanks for helping out - I understand that and have just tried it but still get the error: NameError at /admin/ name 'Hole' is not defined Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version: 1.6.5Exception Type:NameErrorException Value: name 'Hole

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
om holes.models import Hole* > > *class HoleImageInline(admin.TabularInline):* > *model = HoleImage* > > *class HoleAdmin(admin.ModelAdmin):* > *fields = ['hole_number', 'hole_name', 'hole_description']* > *list_display = ['hole_number', 'hole_name', 'hole_description']* &

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
ango IDE) > http://www.jetbrains.com/pycharm/ > "Develop with pleasure!" > > > >-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Patrick C > >Sent: Thursday, June 12, 2014 12:19 AM

Re: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Jorge Andrés Vergara Ebratt
s HoleImageInline(admin.TabularInline):* > *model = HoleImage* > > *class HoleAdmin(admin.ModelAdmin):* > *fields = ['hole_number', 'hole_name', 'hole_description']* > *list_display = ['hole_number', 'hole_name', 'hole_description']* > *inlines = [ HoleImageInline, ]

RE: NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Ilya Kazakevich
ursday, June 12, 2014 12:19 AM >To: django-users@googlegroups.com >Subject: NameError at /admin/ name 'HoleImage' is not defined > >Hi All, > >New to Django / Python (coming from PHP). > >Trying to make a site for a golf course where there is a hole by hole guide, >each >h

NameError at /admin/ name 'HoleImage' is not defined

2014-06-11 Thread Patrick C
(Hole)* Full admin panel error is: NameError at /admin/ name 'HoleImage' is not defined Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version: 1.6.5Exception Type:NameErrorException Value: name 'HoleImage' is not defined Exception Location:/Users/my_laptop/development

Re: NameError at /admin/

2011-07-20 Thread lokesh
dmin site and i got > this error: > > NameError at /admin/ > name 'news' is not defined > Request Method: GET > Request URL:    http://127.0.0.1:8000/admin/ > Django Version: 1.3 > Exception Type: NameError > Exception Value: > name 'news' is not defined > Exception L

Re: Keep getting NameError at /admin/

2009-02-09 Thread djandrow
You need to remove the # from: # from django.contrib import admin # admin.autodiscover() I had the same thing earlier. Heres some more stuff about setting up the admin if you want to read it: http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02 On Feb 9, 11:24 pm,

Re: Keep getting NameError at /admin/

2009-02-09 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 6:24 PM, claudio.br...@googlemail.com < claudio.br...@googlemail.com> wrote: > > > > On 9 Feb, 19:16, Daniel Roseman wrote: > > On Feb 9, 6:57 pm, "claudio.br...@googlemail.com" > > > > wrote: > > > Hi Alex > >

Re: Keep getting NameError at /admin/

2009-02-09 Thread claudio.br...@googlemail.com
On 9 Feb, 19:16, Daniel Roseman wrote: > On Feb 9, 6:57 pm, "claudio.br...@googlemail.com" > > wrote: > > Hi Alex > > > Yes I have the line from django.contrib import admin" in urls.py > > You're going to need to post the whole

Re: Keep getting NameError at /admin/

2009-02-09 Thread Daniel Roseman
On Feb 9, 6:57 pm, "claudio.br...@googlemail.com" wrote: > Hi Alex > > Yes I have the line from django.contrib import admin" in urls.py > You're going to need to post the whole urls.py. It's a bit hard to understand why you're getting that error if you do have that

Re: Keep getting NameError at /admin/

2009-02-09 Thread claudio.br...@googlemail.com
Hi > > > I am new to django and have just started to play. I have a working > > (small) app but wanted to turn on the admin console for the project. I > > edited the settings.py to include the admin module and now get the > > following errors > > > NameError at /a

Re: Keep getting NameError at /admin/

2009-02-09 Thread Alex Gaynor
.py to include the admin module and now get the > following errors > > NameError at /admin/ > > name 'admin' is not defined > > Request Method: GET > Request URL: http://127.0.0.1:8000/admin/ > Exception Type: NameError > Exception Value: > > name 'admin' is not d

Keep getting NameError at /admin/

2009-02-09 Thread claudio.br...@googlemail.com
Hi I am new to django and have just started to play. I have a working (small) app but wanted to turn on the admin console for the project. I edited the settings.py to include the admin module and now get the following errors NameError at /admin/ name 'admin' is not defined Request Method: GET