-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,12 @@ migrate() { | |
|
||
createsuperuser() { | ||
if [ -z "$DJANGO_SUPERUSER_EMAIL" ]; then | ||
echo "DJANGO_SUPERUSER_EMAIL is not set. Will not create a superuser." | ||
else | ||
python manage.py createsuperuser --noinput | ||
# SUPER TOP SECRET (okay, not really) | ||
export DJANGO_SUPERUSER_USERNAME="[email protected]" | ||
export DJANGO_SUPERUSER_EMAIL="[email protected]" | ||
export DJANGO_SUPERUSER_PASSWORD="dev123!" | ||
fi | ||
python manage.py createsuperuser --noinput | ||
} | ||
|
||
start() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from django.contrib import admin | ||
from django.contrib.auth.admin import GroupAdmin, UserAdmin | ||
from django.contrib.auth.models import Group, User | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
|
||
class AdminSite(admin.AdminSite): | ||
"""Custom admin site.""" | ||
|
||
site_title = _("VoterBowl admin") | ||
site_header = _("VoterBowl admin") | ||
index_title = _("VoterBowl admin") | ||
|
||
|
||
admin_site = AdminSite() | ||
admin_site.enable_nav_sidebar = False | ||
admin_site.register(User, UserAdmin) | ||
admin_site.register(Group, GroupAdmin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
VoterBowl, coming soon. | ||
<div> | ||
<style> | ||
me { | ||
me { | ||
background: blue; | ||
color: white; | ||
} | ||
|