Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
COM3014-Team3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Morris, Sophie E (UG - Comp Sci & Elec Eng)
COM3014-Team3
Commits
4f049749
Commit
4f049749
authored
1 year ago
by
Morris, Sophie E (UG - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
fixed an error on submitting contact
parent
f9939b12
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/contact/__pycache__/views.cpython-312.pyc
+0
-0
0 additions, 0 deletions
main/contact/__pycache__/views.cpython-312.pyc
main/contact/views.py
+1
-1
1 addition, 1 deletion
main/contact/views.py
with
1 addition
and
1 deletion
main/contact/__pycache__/views.cpython-312.pyc
+
0
−
0
View file @
4f049749
No preview for this file type
This diff is collapsed.
Click to expand it.
main/contact/views.py
+
1
−
1
View file @
4f049749
...
@@ -6,7 +6,7 @@ def contact(request):
...
@@ -6,7 +6,7 @@ def contact(request):
form
=
ContactForm
(
request
.
POST
)
form
=
ContactForm
(
request
.
POST
)
if
form
.
is_valid
():
if
form
.
is_valid
():
form
.
save
()
form
.
save
()
return
redirect
(
'
success
'
)
return
redirect
(
'
http://127.0.0.1:8001/register/welcome
'
)
else
:
else
:
form
=
ContactForm
()
form
=
ContactForm
()
return
render
(
request
,
'
contact/contactpage.html
'
,
{
'
form
'
:
form
})
return
render
(
request
,
'
contact/contactpage.html
'
,
{
'
form
'
:
form
})
\ 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