rename 'floplanner' to 'financeproject' and change other occurences of 'flo'
This commit is contained in:
@@ -5,8 +5,8 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: postgres:12.2-alpine
|
image: postgres:12.2-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: "floplanner_db"
|
POSTGRES_DB: "financeplanner_db"
|
||||||
POSTGRES_USER: "floplanner_user"
|
POSTGRES_USER: "financeplanner_user"
|
||||||
POSTGRES_PASSWORD: "hhktinWzk1SRg7K6eW0e45hUNLn8ZU"
|
POSTGRES_PASSWORD: "hhktinWzk1SRg7K6eW0e45hUNLn8ZU"
|
||||||
expose:
|
expose:
|
||||||
- "5432"
|
- "5432"
|
||||||
@@ -20,8 +20,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
DB_HOST: "db"
|
DB_HOST: "db"
|
||||||
DB_PORT: "5432"
|
DB_PORT: "5432"
|
||||||
DB_NAME: "floplanner_db"
|
DB_NAME: "financeplanner_db"
|
||||||
DB_USER: "floplanner_user"
|
DB_USER: "financeplanner_user"
|
||||||
DB_PASSWORD: "hhktinWzk1SRg7K6eW0e45hUNLn8ZU"
|
DB_PASSWORD: "hhktinWzk1SRg7K6eW0e45hUNLn8ZU"
|
||||||
ports:
|
ports:
|
||||||
- "80:8000"
|
- "80:8000"
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
from django.contrib.auth.management.commands import createsuperuser
|
from django.contrib.auth.management.commands import createsuperuser
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
|
|
||||||
USERNAME = "flo"
|
USERNAME = "admin"
|
||||||
|
|
||||||
|
|
||||||
class Command(createsuperuser.Command):
|
class Command(createsuperuser.Command):
|
||||||
help = "Used to create the superuser 'flo' with password '123'"
|
help = "Used to create the superuser 'admin' with password '123'"
|
||||||
|
|
||||||
@transaction.atomic()
|
@transaction.atomic()
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
options.update({
|
options.update({
|
||||||
self.UserModel.USERNAME_FIELD: USERNAME,
|
self.UserModel.USERNAME_FIELD: USERNAME,
|
||||||
"email": "flo@test.com",
|
"email": "admin@test.com",
|
||||||
"interactive": False,
|
"interactive": False,
|
||||||
})
|
})
|
||||||
super().handle(*args, **options)
|
super().handle(*args, **options)
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ MIDDLEWARE = [
|
|||||||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = "floplanner.urls"
|
ROOT_URLCONF = "financeproject.urls"
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
@@ -80,7 +80,7 @@ TEMPLATES = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
WSGI_APPLICATION = "floplanner.wsgi.application"
|
WSGI_APPLICATION = "financeproject.wsgi.application"
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
"default": {
|
"default": {
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
WSGI config for floplanner project.
|
WSGI config for financeplanner project.
|
||||||
|
|
||||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||||
|
|
||||||
@@ -11,6 +11,6 @@ import os
|
|||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'floplanner.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'financeproject.settings')
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
@@ -5,7 +5,7 @@ import sys
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'floplanner.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'financeproject.settings')
|
||||||
try:
|
try:
|
||||||
from django.core.management import execute_from_command_line
|
from django.core.management import execute_from_command_line
|
||||||
except ImportError as exc:
|
except ImportError as exc:
|
||||||
|
|||||||
Reference in New Issue
Block a user