I used designs from the previous blog project(Bad at UI)


STATS FOR DS

Tree Diagram


STATS FOR DS


PART-15

...
path('password-reset/', auth_views.PasswordResetView.as_view(template_name='users/password_reset.html'),
name='password_reset'),
<h1>Trouble…


Part-14

def home(request):
content={'posts':Post.objects.all()}
return render(request, 'blogapp/home.html',content)

def post(request):
return HttpResponse('<h1>A detailed post..</h1>')
def create(request):
return HttpResponse('<h1>Create a new post</h1>')
def update(request):
return HttpResponse('<h1>Update your post..</h1>')

def delete(request):
return HttpResponse('<h1>Delete a post..</h1>')
from…


Part-13

pic from 123RF for llustration


Part-12

Update user profile
class UserUpdateForm(forms.ModelForm):
class Meta:
model=User
fields=['username','email']
class ProfileUpdateForm(forms.ModelForm):
class Meta:
model=Profile
fields=['pic','bio']


Implement Luhn algorithm to generate valid credit card numbers with python

Credit Cards


part — 11

from django.db import models
from django.db.models import signals
def create_cookie(sender, instance, created, **kwargs):
print "Let's start making cookies now"
class…


Part-10

<a href="{%url 'blog-home'%}" class="nav-item">DjangoReads</a>
<a href="{%url 'about'%}" class="nav-item">About</a>
{%if user.is_authenticated%}
<a href="{%url 'profile'%}" class="nav-item">Profile</a>
<a href="{%url 'logout'%}" class="nav-item">Logout</a>
{%else%}
<a href="{%url 'register'%}" class="nav-item">Register/Login</a>
{%endif%}

Atufa Shireen

Posting Django Tutorials with Beginner to Advanced Projects

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store