Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tech-Science Blog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Muhammad Butt
Tech-Science Blog
Commits
4acf1817
Commit
4acf1817
authored
5 years ago
by
Saif Ali
Browse files
Options
Downloads
Patches
Plain Diff
Login and SignUp
parent
f0359093
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3177
failed
5 years ago
Stage: build
Stage: test
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
accounts/apps.py
+1
-1
1 addition, 1 deletion
accounts/apps.py
accounts/models.py
+1
-1
1 addition, 1 deletion
accounts/models.py
accounts/tests.py
+1
-1
1 addition, 1 deletion
accounts/tests.py
accounts/urls.py
+1
-1
1 addition, 1 deletion
accounts/urls.py
accounts/views.py
+4
-0
4 additions, 0 deletions
accounts/views.py
with
8 additions
and
4 deletions
accounts/apps.py
+
1
−
1
View file @
4acf1817
...
...
@@ -3,4 +3,4 @@ from django.apps import AppConfig
class
AccountsConfig
(
AppConfig
):
name
=
'
accounts
'
#inorder to start an app
\ No newline at end of file
#inorder to start an app.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
accounts/models.py
+
1
−
1
View file @
4acf1817
from
django.db
import
models
# Create your models here.
#databases models
#databases models
.
This diff is collapsed.
Click to expand it.
accounts/tests.py
+
1
−
1
View file @
4acf1817
from
django.test
import
TestCase
# Create your tests here. for security
# Create your tests here. for security
.
This diff is collapsed.
Click to expand it.
accounts/urls.py
+
1
−
1
View file @
4acf1817
...
...
@@ -8,4 +8,4 @@ urlpatterns = [
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
#created by Saif Ali.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
accounts/views.py
+
4
−
0
View file @
4acf1817
...
...
@@ -29,3 +29,7 @@ def login_view(request):
form
=
AuthenticationForm
()
return
render
(
request
,
'
accounts/login.html
'
,
{
'
form
'
:
form
})
def
logout_view
(
request
):
if
request
.
method
==
'
POST
'
:
logout
(
request
)
return
redirect
(
'
articles:list
'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment