Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AdAna
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Marcos Mendez Quintero
AdAna
Commits
b55731de
Commit
b55731de
authored
1 year ago
by
Agustín Céspedes
Browse files
Options
Downloads
Patches
Plain Diff
added dashboard urls, added status view
parent
991cfd43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!2
PROD1.0
,
!1
PROD 0.1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AdAnalyzer/urls.py
+1
-0
1 addition, 0 deletions
AdAnalyzer/urls.py
dashboard/urls.py
+6
-0
6 additions, 0 deletions
dashboard/urls.py
dashboard/views.py
+7
-2
7 additions, 2 deletions
dashboard/views.py
with
14 additions
and
2 deletions
AdAnalyzer/urls.py
+
1
−
0
View file @
b55731de
...
...
@@ -20,4 +20,5 @@ from django.urls import path, include
urlpatterns
=
[
path
(
''
,
include
(
'
pages.urls
'
)),
path
(
"
admin/
"
,
admin
.
site
.
urls
),
path
(
"
dashboard/
"
,
include
(
'
dashboard.urls
'
)),
]
This diff is collapsed.
Click to expand it.
dashboard/urls.py
0 → 100644
+
6
−
0
View file @
b55731de
from
django.urls
import
path
from
.
import
views
urlpatterns
=
[
path
(
'
status/
'
,
views
.
status
,
name
=
'
status
'
),
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboard/views.py
+
7
−
2
View file @
b55731de
from
django.shortcuts
import
render
,
redirect
from
.models
import
Empresa
from
.models
import
Company
from
django.contrib.auth.models
import
User
from
django.http
import
JsonResponse
"""
def asignar_usuarios(request, empresa_id):
empresa = Empresa.objects.get(id=empresa_id)
if request.method ==
'
POST
'
:
...
...
@@ -20,7 +22,10 @@ def asignar_usuarios(request, empresa_id):
else:
usuarios = User.objects.all()
return render(request,
'
asignar_usuarios.html
'
, {
'
empresa
'
: empresa,
'
usuarios
'
: usuarios})
"""
def
inicio
(
request
):
return
render
(
request
,
'
inicio.html
'
)
def
status
(
request
):
return
JsonResponse
({
"
status
"
:
"
alive
"
})
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