aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/celery_app.py2
-rw-r--r--config/settings/base.py25
-rw-r--r--config/urls.py6
-rw-r--r--config/wsgi.py4
4 files changed, 18 insertions, 19 deletions
diff --git a/config/celery_app.py b/config/celery_app.py
index b4ab45c..7af2082 100644
--- a/config/celery_app.py
+++ b/config/celery_app.py
@@ -5,7 +5,7 @@ from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
-app = Celery("pyblackbird_cc")
+app = Celery("alphabetlearning")
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
diff --git a/config/settings/base.py b/config/settings/base.py
index 0324974..82d11ac 100644
--- a/config/settings/base.py
+++ b/config/settings/base.py
@@ -6,8 +6,7 @@ from pathlib import Path
import environ
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
-# pyblackbird_cc/
-APPS_DIR = BASE_DIR / "pyblackbird_cc"
+APPS_DIR = BASE_DIR / "alphabetlearning"
env = environ.Env()
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False)
@@ -85,9 +84,9 @@ STRIPE_PUBLIC_KEY = env("STRIPE_PUBLIC_KEY")
STRIPE_LIVE_MODE = False
LOCAL_APPS = [
- "pyblackbird_cc.users",
- "pyblackbird_cc.resources",
- "pyblackbird_cc.payments",
+ "alphabetlearning.users",
+ "alphabetlearning.resources",
+ "alphabetlearning.payments",
# Your stuff: custom apps go here
]
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
@@ -96,7 +95,7 @@ INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
# MIGRATIONS
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#migration-modules
-MIGRATION_MODULES = {"sites": "pyblackbird_cc.contrib.sites.migrations"}
+MIGRATION_MODULES = {"sites": "alphabetlearning.contrib.sites.migrations"}
# AUTHENTICATION
# ------------------------------------------------------------------------------
@@ -191,7 +190,7 @@ TEMPLATES = [
"django.template.context_processors.static",
"django.template.context_processors.tz",
"django.contrib.messages.context_processors.messages",
- "pyblackbird_cc.users.context_processors.allauth_settings",
+ "alphabetlearning.users.context_processors.allauth_settings",
],
},
},
@@ -223,7 +222,7 @@ X_FRAME_OPTIONS = "DENY"
# https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
EMAIL_BACKEND = env(
"DJANGO_EMAIL_BACKEND",
- #default="django.core.mail.backends.smtp.EmailBackend",
+ # default="django.core.mail.backends.smtp.EmailBackend",
default="django.core.mail.backends.console.EmailBackend",
)
# https://docs.djangoproject.com/en/dev/ref/settings/#email-timeout
@@ -311,15 +310,15 @@ ACCOUNT_USERNAME_REQUIRED = False
# https://docs.allauth.org/en/latest/account/configuration.html
ACCOUNT_USER_MODEL_USERNAME_FIELD = None
# https://docs.allauth.org/en/latest/account/configuration.html
-#ACCOUNT_EMAIL_VERIFICATION = "mandatory"
+# ACCOUNT_EMAIL_VERIFICATION = "mandatory"
# https://docs.allauth.org/en/latest/account/configuration.html
-ACCOUNT_ADAPTER = "pyblackbird_cc.users.adapters.AccountAdapter"
+ACCOUNT_ADAPTER = "alphabetlearning.users.adapters.AccountAdapter"
# https://docs.allauth.org/en/latest/account/forms.html
-ACCOUNT_FORMS = {"signup": "pyblackbird_cc.users.forms.UserSignupForm"}
+ACCOUNT_FORMS = {"signup": "alphabetlearning.users.forms.UserSignupForm"}
# https://docs.allauth.org/en/latest/socialaccount/configuration.html
-SOCIALACCOUNT_ADAPTER = "pyblackbird_cc.users.adapters.SocialAccountAdapter"
+SOCIALACCOUNT_ADAPTER = "alphabetlearning.users.adapters.SocialAccountAdapter"
# https://docs.allauth.org/en/latest/socialaccount/configuration.html
-SOCIALACCOUNT_FORMS = {"signup": "pyblackbird_cc.users.forms.UserSocialSignupForm"}
+SOCIALACCOUNT_FORMS = {"signup": "alphabetlearning.users.forms.UserSocialSignupForm"}
# STORAGES
# ------------------------------------------------------------------------------
diff --git a/config/urls.py b/config/urls.py
index c5db4dd..c77f187 100644
--- a/config/urls.py
+++ b/config/urls.py
@@ -24,11 +24,11 @@ urlpatterns = [
# Django Admin, use {% url 'admin:index' %}
path(settings.ADMIN_URL, admin.site.urls),
# User management
- path("users/", include("pyblackbird_cc.users.urls", namespace="users")),
+ path("users/", include("alphabetlearning.users.urls", namespace="users")),
path("accounts/", include("allauth.urls")),
# Your stuff: custom urls includes go here
- path("resources/", include("pyblackbird_cc.resources.urls", namespace="resources")),
- path("payments/", include("pyblackbird_cc.payments.urls", namespace="payments")),
+ path("resources/", include("alphabetlearning.resources.urls", namespace="resources")),
+ path("payments/", include("alphabetlearning.payments.urls", namespace="payments")),
# Media files
*static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT),
]
diff --git a/config/wsgi.py b/config/wsgi.py
index 96dd59f..6ed86bb 100644
--- a/config/wsgi.py
+++ b/config/wsgi.py
@@ -22,9 +22,9 @@ from pathlib import Path
from django.core.wsgi import get_wsgi_application
# This allows easy placement of apps within the interior
-# pyblackbird_cc directory.
+# alphabetlearning directory.
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
-sys.path.append(str(BASE_DIR / "pyblackbird_cc"))
+sys.path.append(str(BASE_DIR / "alphabetlearning"))
# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
# if running multiple sites in the same mod_wsgi process. To fix this, use
# mod_wsgi daemon mode with each site in its own daemon process, or use