Friday, September 9, 2011

Re: newbie question on activating the automatic admin

yes, admin is in INSTALLED_APPS. BTW, the basic site works fine if I
turn
off all admin. admin is not strictly necessary, it is just a nicety.

One strange thing though: I have had to set PYTHONPATH and
explicitly set it to ~/mblog:~/mblog/apps:~/mblog/apps/myblog,
even though __init__.py files exist at all levels! Could
something as basic as Python module search be broken?
I am using latest Python 2.7 on Ubuntu 11.04

Thanks
Nara

On Sep 9, 5:35 pm, Casey Greene <csgre...@princeton.edu> wrote:
> Is admin in INSTALLED_APPS?
>
> https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-INSTA...
>
> Casey
>
> On 09/09/2011 07:04 PM, nara wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am a newbie, and I am trying a very basic blog site to get familiar
> > with the latest development release. I followed the directions in the
> > tutorial (part 2) to try and get the automatic admin going. However,
> > here is what I get on the url localhost:8000/admin/
>
> > DoesNotExist at /admin/
>
> > Site matching query does not exist.
>
> > Request Method:    GET
> > Request URL:      http://localhost:8000/admin/
> > Django Version:    1.4 pre-alpha SVN-16741
> > Exception Type:    DoesNotExist
> > Exception Value:
>
> > Site matching query does not exist.
>
> > Further, syncdb, even on a brand new database, does not create tables
> > for the admin, just for django and my blog model.
>
> > Ideas, suggestions?
>
> > Thanks
> > Nara

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate