im trying out the tutorial and went to part where we create an admin
model and it opens ups at http://localhost:8000/admin/
but i dont know wat the username n pwd is
how do i set  this


python web/django/trunk/django/contrib/auth/create_superuser.py
or
django-admin.py sqlinitialdata rank

when i do this i get the foll error, i m unable to create a superuser
or admin and didnt ask me to create admin


Traceback (most recent call last):
  File "/usr/bin/django-admin.py", line 5, in ?
    pkg_resources.run_script('Django==0.91', ' django-admin.py')
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 407,
in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1043,
in run_script
    execfile(script_filename, namespace, namespace)
  File
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/EGG-INFO/scripts/django-admin.py",
line 5, in ?
    management.execute_from_command_line ()
  File
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py",
line 1158, in execute_from_command_line
    translation.activate('en-us')
  File "/usr/lib/python2.4/site-packages/Django-
0.91-py2.4.egg/django/utils/translation.py", line 192, in activate
    _active[currentThread()] = translation(language)
  File
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/utils/translation.py",
line 111, in translation
    from django.conf import settings
  File
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/conf/__init__.py",
line 65, in ?
    raise EnvironmentError, "Environment variable %s is undefined." %
ENVIRONMENT_VARIABLE
EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is
undefined.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to