Answer the question
In order to leave comments, you need to log in
Why can't create superuser in Django?
I am using python 3.5 and django 1.9.4. wrote in terminal:
python manage.py migrate
python manage.py createsuperuser
Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.
python manage.py syncdb --noinput
python manage.py migrate
python manage.py createsuperuser
python manage.py syncdb --noinput
Unknown command: 'syncdb'
Type 'manage.py help' for usage.
Answer the question
In order to leave comments, you need to log in
Superuser creation skipped due to not running in a TTY .
You can run `manage.py createsuperuser` in your project to create one manually.
This is because :last-child
is the last element of the parent container. Quite the last one. There shouldn't be any elements after it. You won't be able to use and :last-of-type
, because last-of-type implies the last element by name, not by class (and if after the last div.blog-item there is at least one div at the same level of the hierarchy, this div.blog-item will stop be last-of-type).
In general, I would do separators between elements like this:
.blog-item + .blog-item {
/* В ситуации с 5-ю элементами с классом .blog-item, которые строго
* следуют друг за другом, этот селектор применится
* к элементам со второго по пятый. Первый будет проигнорирован.
*/
}
Если религия позволяет, сделайте с помощью JQuery
$('.blog-data .blog-item:last')
.css('border-bottom', 'none');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question