Please show me the content of personal/urls.py? Need to check content there.
On Tue, Dec 11, 2018 at 10:25 PM Tosin Ayoola <tosinayoo...@gmail.com> wrote: > getting this error when i click on a new link i just added please can > anyone help out below is my codes, views, url > > > ##url > > from django.urls import path > from . import views > > urlpatterns = [ > path('', views.index, name = 'index'), > path('dailytask', views.dailyactivities, name = 'dailyactivities'), > > ] > > ## views > > from django.shortcuts import render, redirect > from . import models > from . forms import DailyTaskForm > def index(request): > return render(request, 'index.html') > > def dailyactivities(request): > tasks = DailyTaskForm(request.method == 'POST' or None) > if request.method == 'POST' and tasks.is_valid()\ > and tasks.cleaned_data(): > tasks.save() > return render(request, 'index') > > return redirect(request, 'dailychoresform.html') > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAHLKn70uUYa4j5Bd-6fv8UeuitLx0W4JefAi7Hid84%2BP1SzMLg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAHLKn70uUYa4j5Bd-6fv8UeuitLx0W4JefAi7Hid84%2BP1SzMLg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMNWVFqvV44Cjc294KMs-XKsGGgykEkwa8okPjpTX%3DC3u9GYzA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.