add a default admin
This commit is contained in:
parent
492e67666b
commit
180736411c
|
@ -45,7 +45,12 @@ Vagrant.configure("2") do |config|
|
||||||
cp /vagrant/apache/000-default.conf /etc/apache2/sites-available/
|
cp /vagrant/apache/000-default.conf /etc/apache2/sites-available/
|
||||||
#restart the webserver
|
#restart the webserver
|
||||||
systemctl restart apache2.service
|
systemctl restart apache2.service
|
||||||
|
python3 /vagrant/django/didgeridoo/manage.py makemigrations webshop
|
||||||
python3 /vagrant/django/didgeridoo/manage.py migrate
|
python3 /vagrant/django/didgeridoo/manage.py migrate
|
||||||
|
echo "from django.contrib.auth.models import User; \
|
||||||
|
User.objects.filter(email='admin@example.com').delete(); \
|
||||||
|
User.objects.create_superuser('admin', 'admin@example.com', 'password')" |
|
||||||
|
python3 /vagrant/django/didgeridoo/manage.py shell
|
||||||
SHELL
|
SHELL
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue