Browse Source

Renamed further remnants of app to food_planner

master
Jim Martens 1 year ago
parent
commit
37b88f321e
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      food_planner/urls.py
  2. +1
    -1
      food_planner/views.py
  3. +3
    -3
      project/settings.py

+ 1
- 1
food_planner/urls.py View File

@ -3,7 +3,7 @@ from django.urls import path
from . import views
app_name = 'app'
app_name = 'food_planner'
urlpatterns = [
path('', views.index, name='index'),
path('legal-notice/', views.legal, name='legal'),


+ 1
- 1
food_planner/views.py View File

@ -31,7 +31,7 @@ def index(request) -> HttpResponse:
@transaction.atomic
def register(request) -> HttpResponse:
if request.user.is_authenticated:
return redirect('app:index')
return redirect('food_planner:index')
user_form = UserCreationForm(data=request.POST or None)
profile_form = ProfileForm(data=request.POST or None, files=request.FILES or None)


+ 3
- 3
project/settings.py View File

@ -109,10 +109,10 @@ AUTH_PASSWORD_VALIDATORS = [
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
AUTH_PROFILE_MODULE = 'app.Profile'
AUTH_PROFILE_MODULE = 'food_planner.Profile'
LOGIN_REDIRECT_URL = 'app:index'
LOGOUT_REDIRECT_URL = 'app:index'
LOGIN_REDIRECT_URL = 'food_planner:index'
LOGOUT_REDIRECT_URL = 'food_planner:index'
LOGIN_URL = 'login'


Loading…
Cancel
Save