Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cybersec1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Pekka Harjamäki
Cybersec1
Commits
5483276c
Commit
5483276c
authored
3 years ago
by
Pekka Harjamäki
Browse files
Options
Downloads
Patches
Plain Diff
Fixed formating of md file
parent
1a976a8b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
readme.md
+7
-7
7 additions, 7 deletions
readme.md
website/views.py
+0
-1
0 additions, 1 deletion
website/views.py
with
7 additions
and
8 deletions
readme.md
+
7
−
7
View file @
5483276c
# Accounts for site:
# Accounts for site:
URL: http://localhost:8000/admin
URL: http://localhost:8000/admin
<br/>
Username: admin
Username: admin
<br/>
Password: admin
Password: admin
<br/>
Username: bob
Username: bob
<br/>
Password: squarepants
Password: squarepants
<br/>
Username: alice
Username: alice
<br/>
Password: redqueen
Password: redqueen
<br/>
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
website/views.py
+
0
−
1
View file @
5483276c
...
@@ -21,7 +21,6 @@ def searchMessagesView(request):
...
@@ -21,7 +21,6 @@ def searchMessagesView(request):
sql
=
'
SELECT * from website_message where target_id=%d AND content like
\'
%%%s%%
\'
'
%
(
sql
=
'
SELECT * from website_message where target_id=%d AND content like
\'
%%%s%%
\'
'
%
(
request
.
user
.
id
,
request
.
POST
.
get
(
'
query
'
)
request
.
user
.
id
,
request
.
POST
.
get
(
'
query
'
)
)
)
print
(
sql
)
msgs
=
Message
.
objects
.
raw
(
sql
)
msgs
=
Message
.
objects
.
raw
(
sql
)
messages
=
[]
messages
=
[]
for
msg
in
msgs
:
for
msg
in
msgs
:
...
...
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