Rename "public" app to "frontend" again

This commit is contained in:
Kumi 2021-05-30 16:10:08 +02:00
parent 7cd3a5d005
commit b586fb89b5
25 changed files with 16 additions and 16 deletions

View file

@ -1,6 +1,6 @@
from django.urls import path from django.urls import path
from public.views import HomeView from frontend.views import HomeView
from .views import InquiryCreateView, InquiryProcessView, InquiryPaymentView, OfferSelectionView, OfferSelectionTableView, BiddingListView, OfferCreationView from .views import InquiryCreateView, InquiryProcessView, InquiryPaymentView, OfferSelectionView, OfferSelectionTableView, BiddingListView, OfferCreationView

View file

@ -7,7 +7,7 @@ from django.contrib.gis.db.models.functions import Distance
from django.conf import settings from django.conf import settings
from django.utils import timezone from django.utils import timezone
from public.mixins import InConstructionMixin from frontend.mixins import InConstructionMixin
from partners.mixins import PartnerProfileRequiredMixin from partners.mixins import PartnerProfileRequiredMixin
from clients.mixins import ClientBaseMixin from clients.mixins import ClientBaseMixin
from localauth.helpers import name_to_coords from localauth.helpers import name_to_coords

View file

@ -7,7 +7,7 @@ from .models import ClientProfile
from .mixins import ClientBaseMixin from .mixins import ClientBaseMixin
from localauth.mixins import LoginRequiredMixin, RedirectToNextMixin from localauth.mixins import LoginRequiredMixin, RedirectToNextMixin
from public.mixins import InConstructionMixin from frontend.mixins import InConstructionMixin
from auction.models import Inquiry from auction.models import Inquiry
class ClientRegistrationView(LoginRequiredMixin, RedirectToNextMixin, CreateView): class ClientRegistrationView(LoginRequiredMixin, RedirectToNextMixin, CreateView):

5
frontend/apps.py Normal file
View file

@ -0,0 +1,5 @@
from django.apps import AppConfig
class FrontendConfig(AppConfig):
name = 'frontend'

View file

@ -2,7 +2,7 @@ from django import template
from random import SystemRandom from random import SystemRandom
from public.models import Testimonial from frontend.models import Testimonial
register = template.Library() register = template.Library()

View file

@ -6,7 +6,7 @@ app_name = "frontend"
urlpatterns = [ urlpatterns = [
path('', HomeView.as_view(), name="home"), path('', HomeView.as_view(), name="home"),
path('api/places/', include("public.places.urls"), name="places"), path('api/places/', include("frontend.places.urls"), name="places"),
path('demo/template/', DemoTemplateView.as_view()), path('demo/template/', DemoTemplateView.as_view()),
path('impressum/', ImpressumView.as_view(), name="impressum"), path('impressum/', ImpressumView.as_view(), name="impressum"),
path('privacy/', PrivacyNoticeView.as_view(), name="privacy"), path('privacy/', PrivacyNoticeView.as_view(), name="privacy"),

View file

@ -9,7 +9,7 @@ from .mixins import PartnerProfileRequiredMixin
from .forms import VerificationForm from .forms import VerificationForm
from auction.models import Inquiry, Offer from auction.models import Inquiry, Offer
from public.mixins import InConstructionMixin from frontend.mixins import InConstructionMixin
from localauth.mixins import LoginRequiredMixin, SuperUserRequiredMixin from localauth.mixins import LoginRequiredMixin, SuperUserRequiredMixin
from gallery.models import Image from gallery.models import Image

View file

@ -1,5 +0,0 @@
from django.apps import AppConfig
class PublicConfig(AppConfig):
name = 'public'

View file

@ -17,7 +17,7 @@ INSTALLED_APPS = [
'django.contrib.gis', 'django.contrib.gis',
'phonenumber_field', 'phonenumber_field',
'localauth', 'localauth',
'public', 'frontend',
'partners', 'partners',
'payment', 'payment',
'clients', 'clients',
@ -38,7 +38,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'public.middleware.DemoMiddleware', 'frontend.middleware.DemoMiddleware',
] ]
ROOT_URLCONF = 'urlaubsauktion.urls' ROOT_URLCONF = 'urlaubsauktion.urls'
@ -54,7 +54,7 @@ TEMPLATES = [
'django.template.context_processors.request', 'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'public.context_processors.demo', 'frontend.context_processors.demo',
], ],
}, },
}, },

View file

@ -15,13 +15,13 @@ Including another URLconf
""" """
from .admin import joker_admin from .admin import joker_admin
from public.views import Error404View from frontend.views import Error404View
from django.urls import path, include from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('admin_area/', joker_admin.urls), path('admin_area/', joker_admin.urls),
path('', include('public.urls'), name="frontend"), path('', include('frontend.urls'), name="frontend"),
path('auth/', include('localauth.urls'), name="localauth"), path('auth/', include('localauth.urls'), name="localauth"),
path('auction/', include('auction.urls'), name="auction"), path('auction/', include('auction.urls'), name="auction"),
path('payment/', include('payment.urls'), name="payment"), path('payment/', include('payment.urls'), name="payment"),