add some default data into the database

This commit is contained in:
Andreas Zweili 2017-11-14 21:26:14 +01:00
parent 4e6471716d
commit fef4946823
2 changed files with 4621 additions and 0 deletions

2
Vagrantfile vendored
View File

@ -45,8 +45,10 @@ Vagrant.configure("2") do |config|
cp /vagrant/apache/000-default.conf /etc/apache2/sites-available/
#restart the webserver
systemctl restart apache2.service
rm /vagrant/django/didgeridoo/webshop/migrations/*.py
python3 /vagrant/django/didgeridoo/manage.py makemigrations webshop
python3 /vagrant/django/didgeridoo/manage.py migrate
mysql < /vagrant/sql/02_insert_data.sql
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')" |

4619
sql/02_insert_data.sql Normal file

File diff suppressed because it is too large Load Diff