Skip to content
Snippets Groups Projects
Commit 9f6b3659 authored by Saif Ali's avatar Saif Ali
Browse files

whole accounts updated

parent 521a607f
No related branches found
No related tags found
No related merge requests found
Pipeline #3201 canceled
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
from django.contrib import admin
# Register your models here.
#nothing new needed here
......@@ -3,4 +3,3 @@ from django.apps import AppConfig
class AccountsConfig(AppConfig):
name = 'accounts'
#inorder to start an app.
\ No newline at end of file
No preview for this file type
from django.db import models
# Create your models here.
#databases models.
from django.test import TestCase
# Create your tests here. for security.
# Create your tests here.
......@@ -7,5 +7,4 @@ urlpatterns = [
url(r'^signup/$', views.signup_view, name="signup"),
url(r'^login/$', views.login_view, name="login"),
url(r'^logout/$', views.logout_view, name="logout"),
]
#created by Saif Ali.
\ No newline at end of file
]
\ No newline at end of file
......@@ -18,7 +18,7 @@ def login_view(request):
if request.method == 'POST':
form = AuthenticationForm(data=request.POST)
if form.is_valid():
# lets the users log in
# log the user in
user = form.get_user()
login(request, user)
if 'next' in request.POST:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment