diff --git a/nextServer/settings.py b/nextServer/settings.py index fec0225..6331281 100644 --- a/nextServer/settings.py +++ b/nextServer/settings.py @@ -53,9 +53,6 @@ 'apps.post', 'accounts', 'knox', - 'django.contrib.sites', - 'sorl.thumbnail', - 'mailinglist', ] if DEBUG: INSTALLED_APPS += ['drf_yasg'] @@ -72,8 +69,6 @@ ROOT_URLCONF = 'nextServer.urls' -SITE_ID = 1# Adjust this ID based on your site's ID in the database - TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', @@ -91,13 +86,10 @@ ] WSGI_APPLICATION = 'nextServer.wsgi.application' -NEWSLETTER_THUMBNAIL = 'sorl-thumbnail' + # Database # https://docs.djangoproject.com/en/4.0/ref/settings/#databases -MAILINGLIST_BASE_URL = "https://www.gisphere.info" # NO TRAILING SLASH PLEASE -MAILINGLIST_DEFAULT_SENDER_EMAIL = "no-reply@gisphere.info" - DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', @@ -164,15 +156,6 @@ ], } -# email SMTP setting -EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' -EMAIL_HOST = 'smtp-mail.outlook.com' # or your Outlook SMTP server address -EMAIL_PORT = 587 # Outlook SMTP port -EMAIL_USE_TLS = True # Use TLS encryption -EMAIL_HOST_USER = 'no-reply@gisphere.info' # Your Outlook email address -EMAIL_HOST_PASSWORD = 'Tum54104' # Your Outlook email password or app password -DEFAULT_FROM_EMAIL = 'no-reply@gisphere.info' - # LOGGING_DIR = BASE_DIR.joinpath("logs") # debug_log_dir = LOGGING_DIR / "debug" # info_log_dir = LOGGING_DIR / "info" diff --git a/nextServer/urls.py b/nextServer/urls.py index a59d0fd..9e4848e 100644 --- a/nextServer/urls.py +++ b/nextServer/urls.py @@ -35,7 +35,6 @@ path('api/', include("apps.post.urls")), path('api/', include("apps.school.urls")), path('', include('accounts.urls')), - path("mailinglist/", include("mailinglist.urls", namespace="mailinglist")), ] if settings.DEBUG: urlpatterns += [path('', include('app.apis.swagger.urls')), diff --git a/requirements.txt b/requirements.txt index 6bb1d1f..01e1c66 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,5 +9,4 @@ PyMySQL==1.0.2 pytz==2022.1 sqlparse==0.4.2 django-rest-knox==4.2.0 -drf_yasg==1.21.4 -django-mailinglist==0.1.5 \ No newline at end of file +drf_yasg==1.21.4 \ No newline at end of file