This commit is contained in:
Bernhard Posselt 2016-06-26 20:54:19 +02:00
Родитель 6c9bf317c7
Коммит 647be046e5
2 изменённых файлов: 5 добавлений и 4 удалений

4
.gitignore поставляемый
Просмотреть файл

@ -18,5 +18,5 @@ nextcloudappstore/local_settings.py
*.sqlite3 *.sqlite3
*.wp[ru] *.wp[ru]
nextcloudappstore/settings/production.py nextcloudappstore/settings/production.py
bin bin/
lib lib/

Просмотреть файл

@ -192,11 +192,12 @@ After all settings are adjusted, create the database schema by running the follo
Creating an Admin User Creating an Admin User
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
To create the initial admin user, run the following command:: To create the initial admin user and verify his email, run the following command::
python manage.py createsuperuser --username admin --email admin@admin.com python manage.py createsuperuser --username admin --email admin@admin.com
echo "from django.contrib.auth.models import User; from allauth.account.models import EmailAddress; EmailAddress.objects.create(user=User.objects.get(username='admin'), email='admin@example.com', verified=True, primary=True)" | python manage.py shell --settings nextcloudappstore.settings.production
The command will ask for the password. The first command will ask for the password.
Loading Initial Data Loading Initial Data
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~