I fixed it, none of the suggestions worked.
--
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, se
**FIXED**
--
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@googlegrou
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*
That just swapped my home page for public_posts and took away the link '
New Post'
--
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...@goog
Forgot to add that one of the pub_posts is now public_posts, still doesn't
work but thanks for pointing out the fact that it is probably pretty stupid
to have more than one thing with the same name, probably saved me a good
amount of future headaches.
--
You received this message because you a
Didnt't work, changed to: (pub_posts
urlpatterns = [
path('', views.pub_post_list, name='pub_posts'),
path('', views.post_new, name='post_new'),
path('', TemplateView.as_view(template_name='new_post.html'), name=
'new_post'),
path('', TemplateView.as_view(template_name='pub_posts.ht
*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/'
Hi!
You have two entrys with same name
path('', views.post_new, name='new_post'),
path('', TemplateView.as_view(template_name='new_post.html'), name=
'new_post'),
Try to change one
Regards
El dg., 21 d’abr. 2019, 16:18, va escriure:
> Hello, i'm attempting to redirect to a 'new post' pag
Hello, i'm attempting to redirect to a 'new post' page when someone clicks
'New Post'. Problem is, it redirects back to the public_posts page. the url
in my HTML is {% url 'new_post' %} but when i inspect the element in my
browser, it says the href=/public_posts/ and no matter what I do, I can'
9 matches
Mail list logo