generated from 2martens/django-template
Renamed further remnants of app to food_planner
This commit is contained in:
@ -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'),
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user