Search code examples
pythondjangodjango-lfs

Django LFS 0.10 No default admin user


i have installed LFS 0.10 as it said here but when I go to http://localhost:8000/login I can't login with admin/admin. And auth_user is empty as well.

Does any one know how to fix this?

Thanks.


Solution

  • Creating a superuser is covered in the Django tutorial.

    python manage.py createsuperuser
    

    Looking at LFS installation docs, it appears that you can access the django-admin utility with bin/django, therefore, you can use:

    bin/django createsuperuser