1

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.

Anton
  • 1,001
  • 9
  • 23

1 Answers1

2

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
Alasdair
  • 298,606
  • 55
  • 578
  • 516
  • thanks, but I get this one then Traceback (most recent call last): File "manage.py", line 2, in from django.core.management import execute_manager ImportError: No module named django.core.management. Seems like python does not see django installed. – Anton Feb 09 '16 at 10:49
  • Try `bin/django createsuperuser`. – Alasdair Feb 09 '16 at 10:50
  • Man you are the best! Thanks! Works ike a charm. – Anton Feb 09 '16 at 10:58