Comments (3)
Can you describe issue more concrete, what exactly doesn't work?
from django-3-by-example.
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.
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)
- No Order matches the given query. Chapter 8 HOT 1
- Chapter 5 bookmarklet_launcher.js
- Chapter 8: Importing weasyprint HOT 2
- chapter 5 - automatic paginator not working HOT 1
- Chapter 5 Bookmarks problem with <li {% if section == 'dashboard' %} class="selected"> HOT 2
- chapter myshop
- Chapter 6 migrations Contact
- Chapter 4 Unable to Run 'runserver_plus' HOT 1
- Valid OAuth Redirect URIs (URL Blocked)
- Chapter 13 Django Chat
- the celerys task is deprecated.
- Chapter 1: AttributeError: Manager isnβt accessible via <<models>> instances
- Chapter 1 Ommissions
- Chapter 7: context processor doesn't work
- chapter 2 errors: "no such colum: blog_post.tags" and "cannot query "jazz": Must be "Post" instance". HOT 5
- Chapter 8 - Braintree Token Generation
- Chapter 7: Product Detail page does not dynamically link product data (stays static) HOT 1
- Chapter 6 - signals not working HOT 1
- Chapter 4: unable to send e-mail address to reset password
- Chapter 2 - Problem with URL NotFound due to timezone mismatch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-3-by-example.