-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
-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!"
>
>
> >-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
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:
>>
&
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
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
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/
>
>
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
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']*
&
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
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, ]
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
(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
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
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,
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
> >
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
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
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
.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
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
21 matches
Mail list logo