[extensions-web/wip/api/v1: 2/6] Formatted code
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/wip/api/v1: 2/6] Formatted code
- Date: Sun, 20 Dec 2020 15:16:39 +0000 (UTC)
commit c149e4de969d22841db8e160167569bbc7a39359
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sun Nov 22 12:03:34 2020 +0400
Formatted code
sweettooth/auth/urls.py | 7 ++++---
sweettooth/settings.py | 9 ++++++---
sweettooth/urls.py | 1 +
3 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/sweettooth/auth/urls.py b/sweettooth/auth/urls.py
index 1ae8dcd3..eb70077a 100644
--- a/sweettooth/auth/urls.py
+++ b/sweettooth/auth/urls.py
@@ -1,10 +1,11 @@
-from django.views.generic.base import TemplateView
from django.conf.urls import url, include
-from django_registration.backends.activation.views import RegistrationView
from django.contrib.auth import views as auth_views
from django.contrib.auth.views import LoginView, LogoutView
-from django.urls import reverse_lazy
+from django.views.generic.base import TemplateView
+
+from django_registration.backends.activation.views import RegistrationView
+
from sweettooth.auth import views, forms
urlpatterns = [
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 99c6acc8..6fff1077 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -6,8 +6,8 @@ https://docs.djangoproject.com/en/stable/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
-import dj_database_url
import os
+import dj_database_url
SITE_ROOT = os.path.dirname(os.path.abspath(__file__))
@@ -126,7 +126,10 @@ USE_L10N = True
USE_TZ = False
ADMINS = (
- (os.getenv('EGO_ADMINISTRATOR_NAME') or 'Administrator', os.getenv('EGO_ADMINISTRATOR_EMAIL') or
'admin@localhost.local'),
+ (
+ os.getenv('EGO_ADMINISTRATOR_NAME') or 'Administrator',
+ os.getenv('EGO_ADMINISTRATOR_EMAIL') or 'admin@localhost.local'
+ ),
)
MANAGERS = ADMINS
@@ -210,5 +213,5 @@ if not DEBUG and not NO_SECURE_SETTINGS:
if DEBUG and not NO_STATICFILES_SETTINGS:
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
STATIC_ROOT = None
-elif not 'STATIC_ROOT' in locals():
+elif 'STATIC_ROOT' not in locals():
STATIC_ROOT = os.getenv('EGO_STATIC_ROOT')
diff --git a/sweettooth/urls.py b/sweettooth/urls.py
index a53aab60..69eeb771 100644
--- a/sweettooth/urls.py
+++ b/sweettooth/urls.py
@@ -18,6 +18,7 @@ urlpatterns = [
# 'login' and 'register'
url(r'^accounts/', include('sweettooth.auth.urls')),
+
url(r'^', include('sweettooth.extensions.urls'), name='index'),
url(r'^review/', include('sweettooth.review.urls')),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]