add some default data into the database
This commit is contained in:
parent
4e6471716d
commit
fef4946823
|
@ -45,8 +45,10 @@ 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
|
||||||
|
rm /vagrant/django/didgeridoo/webshop/migrations/*.py
|
||||||
python3 /vagrant/django/didgeridoo/manage.py makemigrations webshop
|
python3 /vagrant/django/didgeridoo/manage.py makemigrations webshop
|
||||||
python3 /vagrant/django/didgeridoo/manage.py migrate
|
python3 /vagrant/django/didgeridoo/manage.py migrate
|
||||||
|
mysql < /vagrant/sql/02_insert_data.sql
|
||||||
echo "from django.contrib.auth.models import User; \
|
echo "from django.contrib.auth.models import User; \
|
||||||
User.objects.filter(email='admin@example.com').delete(); \
|
User.objects.filter(email='admin@example.com').delete(); \
|
||||||
User.objects.create_superuser('admin', 'admin@example.com', 'password')" |
|
User.objects.create_superuser('admin', 'admin@example.com', 'password')" |
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue