It took away my public_posts page and replaced it for my home page. On Sunday, April 21, 2019 at 10:48:09 AM UTC-4, Victor H. Velasquez Rizo wrote: > > *Hello Silver.* > > *- On your URLCONFIG add * > path('', include('public_posts.urls')), *<=== Add* > > -* On your public_posts/urls.py add* > app_name = 'public_posts' > urlpatterns = [ > path('', views.pub_post_list, name='pub_posts'), > path('', views.post_new, name='new_post'), > path('new-post/', TemplateView.as_view(template_name='new_post.html'), > name='new_post'), *<=== Change* > path('', TemplateView.as_view(template_name='pub_posts.html'), name= > 'pub_posts'), > ] > > - On your HTML add > <h4><a href="{% url 'public_posts:new_post' %}">New Post</a></h4> *<=== > Change* > > try and let me know if that works. > > >
-- 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/922a05fe-f593-4595-bab1-f376cf4035e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.