poking the dragon

This commit is contained in:
Elijah Lucian 2021-07-15 14:49:57 -06:00
parent bf561613aa
commit f0f4494553
4 changed files with 10 additions and 7 deletions

View File

@ -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"]

View File

View 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()

View File

@ -1,2 +1,5 @@
python manage.py migrate
python manage.py createsuperuser --email admin@example.com --username admin
python manage.py makemigrations
python manage.py migrate
python manage.py seed