Hmm, I reset the database, restarted, invoked syncdb again, now it
works :)



On Jan 29, 9:20 pm, "voltron" <[EMAIL PROTECTED]> wrote:
> Yes I did add the admin app, all models validated properly and I can
> start the internal Django server
>
> On Jan 29, 5:04 am, "Ramdas S" <[EMAIL PROTECTED]> wrote:
>
> > You have obviously not done something right with settings.py.
>
> > Have you included 'dajngo.contrib.admin' in the installed apps section of
> > settings.py. Please check
>
> > Ramdas
> > On 1/29/07, voltron <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have created my test app with several models, I called syncdb
> > > several times to correct some errors in my models, but not once was I
> > > asked to create a superuser.
>
> > > No tracebacks, models ok, I run the interanal Django server, I try to
> > > log in from the admin page, but  I have no username or password!! I
> > > try using the createuser command to create a password, I received
> > > this:
>
> > > c:\Python24\Lib\site-packages\django\contrib\auth>python
> > > create_superuser.py
> > > Traceback (most recent call last):
> > >   File "create_superuser.py", line 8, in ?
> > >     from django.core import validators
> > >   File "C:\Python24\lib\site-packages\django\core\validators.py", line
> > > 13, in ?
> > >     from django.utils.translation import gettext, gettext_lazy,
> > > ngettext
> > >   File "C:\Python24\lib\site-packages\django\utils\translation
> > > \__init__.py", lin
> > > e 3, in ?
> > >     if settings.USE_I18N:
> > >   File "C:\Python24\lib\site-packages\django\conf\__init__.py", line
> > > 27, in __ge
> > > tattr__
> > >     self._import_settings()
> > >   File "C:\Python24\lib\site-packages\django\conf\__init__.py", line
> > > 52, in _imp
> > > ort_settings
> > >     raise EnvironmentError, "Environment variable %s is undefined." %
> > > ENVIRONMEN
> > > T_VARIABLE
> > > EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is
> > > undefined.
>
> > > c:\Python24\Lib\site-packages\django\contrib\auth>
>
> > > Can someone tell me how else I can set the admin user to access the
> > > admin page?
>
> > > Thanks!
>
> > > I am running Django 96.pre from the subversion repository on windows
> > > 2000 Professional with python 2.4, postgresql 8.2


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to