Git Product home page Git Product logo

Comments (3)

Alex-Wol01100110 avatar Alex-Wol01100110 commented on July 3, 2024

Can you describe issue more concrete, what exactly doesn't work?

from django-3-by-example.

tolu-c avatar tolu-c commented on July 3, 2024

the urls are working, but it shows the django template instead of the base.html template.
i don't know why I can't upload images

from django-3-by-example.

Alex-Wol01100110 avatar Alex-Wol01100110 commented on July 3, 2024

Here is my urls.py of account app

from django.urls import path
from django.contrib.auth import views as auth_views
from . import views

urlpatterns = [
# post views
# previous login view
# path('login/', views.user_login, name='login'),
path('login/', auth_views.LoginView.as_view(), name='login'),
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
path('', views.dashboard, name='dashboard'),
# Change password urls
path('password_change/', auth_views.PasswordChangeView.as_view(),
name='password_change'),
path('password_change/done/',
auth_views.PasswordChangeDoneView.as_view(),
name='password_change_done'),
# Reset password urls
path('password_reset/',
auth_views.PasswordResetView.as_view(),
name='password_reset'),
path('password_reset/done/',
auth_views.PasswordResetDoneView.as_view(),
name='password_reset_done'),
path('reset///',
auth_views.PasswordResetConfirmView.as_view(),
name='password_reset_confirm'),
path('reset/done/',
auth_views.PasswordResetCompleteView.as_view(),
name='password_reset_complete'),

path('register/', views.register, name='register'),

path('edit/', views.edit, name='edit'),

path('users/follow/', views.user_follow, name='user_follow'),
path('users/', views.user_list, name='user_list'),
path('users/<username>/', views.user_detail, name='user_detail'),

]

if your base.html doesn't work, maybe it's because of location, it should be account\templates\base.html
if your other templates can't see base.html maybe you forget to insert {% extends "base.html" %} at the start of each of your templates
maybe you need to change location of your password reset templates to templates\registration\ (it's default location, if you change it, then you will need change views too, for now it's not worth it, just stick to the manual)

from django-3-by-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.