poking the dragon
This commit is contained in:
parent
bf561613aa
commit
f0f4494553
|
@ -29,8 +29,8 @@ services:
|
|||
build:
|
||||
context: ./server
|
||||
volumes:
|
||||
- ./server/server/settings.py:/usr/src/server/server/settings.py
|
||||
- ./server/server/db:/usr/src/server/server/db
|
||||
- ./server:/usr/src/server
|
||||
|
||||
ports:
|
||||
- 8000:8000
|
||||
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
|
0
server/server/api/management/__init__.py
Normal file
0
server/server/api/management/__init__.py
Normal file
|
@ -1,4 +1,4 @@
|
|||
from server.server.api.models import Transaction, Account, User, Stack
|
||||
from server.api.models import Transaction, Account, User, Stack
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
|
@ -11,13 +11,13 @@ class Command(BaseCommand):
|
|||
User.objects.all().delete()
|
||||
elijah = User(username="elijah",
|
||||
email="elijah@westwinds.io",
|
||||
password="toffee15")
|
||||
password="toffee15").save()
|
||||
ievgen = User(username="ievgen",
|
||||
email="ievgen@westwinds.io",
|
||||
password="toffee15")
|
||||
password="toffee15").save()
|
||||
tanner = User(username="tanner",
|
||||
email="tanner@westwinds.io",
|
||||
password="toffee15")
|
||||
password="toffee15").save()
|
||||
|
||||
Account.objects.all().delete()
|
||||
home = Account()
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
python manage.py migrate
|
||||
python manage.py createsuperuser --email admin@example.com --username admin
|
||||
python manage.py createsuperuser --email admin@example.com --username admin
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
python manage.py seed
|
Loading…
Reference in New Issue
Block a user