Skip to content

Commit

Permalink
deploy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeier committed Aug 15, 2019
1 parent 852de5d commit 1b0714f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .elasticbeanstalk/babyl-django-env.env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ awseb-e-vmtywzxjmn-stack-AWSEBSecurityGroup-OVVDBWWHIEGY
NumProcesses: '1'
NumThreads: '15'
StaticFiles: /static/=static/
WSGIPath: babylproject/wsgi.py
WSGIPath: babylproject/babylproject/wsgi.py
aws:elasticbeanstalk:container:python:staticfiles:
/static/: static/
aws:elasticbeanstalk:control:
Expand Down
Empty file.
10 changes: 10 additions & 0 deletions blogs/management/commands/createsu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os

from django.core.management.base import BaseCommand
from django.contrib.auth.models import User

class Command(BaseCommand):

def handle(self, *args, **options):
if not User.objects.filter(username="admin").exists():
User.objects.create_superuser("admin", "[email protected]", "admin")

0 comments on commit 1b0714f

Please sign in to comment.