Je viens de commencer avec un projet Django à l'aide de Django-Allauth, j'ai configuré les paramètres de base, sans utiliser de fournisseur de 3ème partie. J'ai configuré les URLs.py de mon projet et des URLs.py de mon application.
Mais sur http: // Localhost: 8000 , je reçois 'home.html' mais comment puis-je supprimer la navigation d'Allauth P>
p> Vous trouverez ci-dessous l'URLS.PY de mon projet: P>
{% extends 'base.html' %} {% block content %} <h1>Hello World</h1> {% for post in post_list %} <h1>{{post.post_title}}</h1> <p>{{post.post_body|safe}}</p> {% endfor %} {% endblock %}
3 Réponses :
VOTRE URLS URLSBLES GLOBALES.PYRY - RELATEUREMENTSPECOMMENTAIRE DE VOTRE APP URLS.PYRY: XXXXE .py, exécutez votre application à nouveau p> p>
path("post/add/", views.CreatePostView.as_view(), name = "create_new_post"), add trailing slash to your url
Le fichier base.html code> peut contenir la navigation. apporter des modifications là pour supprimer ou simplement le supprimer
Téléchargez vos points de vue
S'il vous plaît montrer votre fichier home.html
Le problème URLS.PY est résolu et je peux aller à 'home.html', mais comment puis-je supprimer la navigation de Django-Allauth