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