Rename "public" app to "frontend" again
This commit is contained in:
parent
7cd3a5d005
commit
b586fb89b5
25 changed files with 16 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from django.contrib.gis.db.models.functions import Distance
|
|||
from django.conf import settings
|
||||
from django.utils import timezone
|
||||
|
||||
from public.mixins import InConstructionMixin
|
||||
from frontend.mixins import InConstructionMixin
|
||||
from partners.mixins import PartnerProfileRequiredMixin
|
||||
from clients.mixins import ClientBaseMixin
|
||||
from localauth.helpers import name_to_coords
|
||||
|
|
|
@ -7,7 +7,7 @@ from .models import ClientProfile
|
|||
from .mixins import ClientBaseMixin
|
||||
|
||||
from localauth.mixins import LoginRequiredMixin, RedirectToNextMixin
|
||||
from public.mixins import InConstructionMixin
|
||||
from frontend.mixins import InConstructionMixin
|
||||
from auction.models import Inquiry
|
||||
|
||||
class ClientRegistrationView(LoginRequiredMixin, RedirectToNextMixin, CreateView):
|
||||
|
|
5
frontend/apps.py
Normal file
5
frontend/apps.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class FrontendConfig(AppConfig):
|
||||
name = 'frontend'
|
|
@ -2,7 +2,7 @@ from django import template
|
|||
|
||||
from random import SystemRandom
|
||||
|
||||
from public.models import Testimonial
|
||||
from frontend.models import Testimonial
|
||||
|
||||
register = template.Library()
|
||||
|
|
@ -6,7 +6,7 @@ app_name = "frontend"
|
|||
|
||||
urlpatterns = [
|
||||
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('impressum/', ImpressumView.as_view(), name="impressum"),
|
||||
path('privacy/', PrivacyNoticeView.as_view(), name="privacy"),
|
|
@ -9,7 +9,7 @@ from .mixins import PartnerProfileRequiredMixin
|
|||
from .forms import VerificationForm
|
||||
|
||||
from auction.models import Inquiry, Offer
|
||||
from public.mixins import InConstructionMixin
|
||||
from frontend.mixins import InConstructionMixin
|
||||
from localauth.mixins import LoginRequiredMixin, SuperUserRequiredMixin
|
||||
from gallery.models import Image
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PublicConfig(AppConfig):
|
||||
name = 'public'
|
|
@ -17,7 +17,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.gis',
|
||||
'phonenumber_field',
|
||||
'localauth',
|
||||
'public',
|
||||
'frontend',
|
||||
'partners',
|
||||
'payment',
|
||||
'clients',
|
||||
|
@ -38,7 +38,7 @@ MIDDLEWARE = [
|
|||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
'public.middleware.DemoMiddleware',
|
||||
'frontend.middleware.DemoMiddleware',
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'urlaubsauktion.urls'
|
||||
|
@ -54,7 +54,7 @@ TEMPLATES = [
|
|||
'django.template.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'public.context_processors.demo',
|
||||
'frontend.context_processors.demo',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
|
@ -15,13 +15,13 @@ Including another URLconf
|
|||
"""
|
||||
from .admin import joker_admin
|
||||
|
||||
from public.views import Error404View
|
||||
from frontend.views import Error404View
|
||||
|
||||
from django.urls import path, include
|
||||
|
||||
urlpatterns = [
|
||||
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('auction/', include('auction.urls'), name="auction"),
|
||||
path('payment/', include('payment.urls'), name="payment"),
|
||||
|
|
Loading…
Reference in a new issue