From 7687acb366afe913df40aab0f6dbfb30cdb67304 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 11 Sep 2020 19:15:39 +0200 Subject: [PATCH] Changed scope (?) of remaining local imports. --- lostplaces/lostplaces/settings.py | 2 +- lostplaces/lostplaces_app/admin.py | 4 ++-- lostplaces/lostplaces_app/urls.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lostplaces/lostplaces/settings.py b/lostplaces/lostplaces/settings.py index f02ff25..127b8c1 100644 --- a/lostplaces/lostplaces/settings.py +++ b/lostplaces/lostplaces/settings.py @@ -143,6 +143,6 @@ LOGOUT_REDIRECT_URL = reverse_lazy('lostplaces_home') # Load and override settings from local_settings.py and don't fail on errors. try: - from .local_settings import * + from lostplaces_app.local_settings import * except ImportError: pass diff --git a/lostplaces/lostplaces_app/admin.py b/lostplaces/lostplaces_app/admin.py index 5d53ab7..d2945df 100644 --- a/lostplaces/lostplaces_app/admin.py +++ b/lostplaces/lostplaces_app/admin.py @@ -6,9 +6,9 @@ from django.contrib import admin from django.contrib.auth import get_user_model from django.contrib.auth.admin import UserAdmin -from .models import * +from lostplaces_app.models import * -from .forms import ExplorerCreationForm, ExplorerChangeForm +from lostplaces_app.forms import ExplorerCreationForm, ExplorerChangeForm # Register your models here. diff --git a/lostplaces/lostplaces_app/urls.py b/lostplaces/lostplaces_app/urls.py index fabf191..2e7262d 100644 --- a/lostplaces/lostplaces_app/urls.py +++ b/lostplaces/lostplaces_app/urls.py @@ -1,5 +1,5 @@ from django.urls import path -from .views import ( +from lostplaces_app.views import ( HomeView, PlaceDetailView, PlaceListView,