-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fb99d1
commit 59b2327
Showing
23 changed files
with
957 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.model !text !filter !merge !diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
from django.contrib import admin | ||
from django.urls import path, include | ||
from django.urls import path,include | ||
from home import views | ||
|
||
urlpatterns = [ | ||
path("", views.index, name="home"), | ||
path("faqs/", views.faqs, name="faqs"), | ||
path("popup_detect/", views.popup_detect, name="popup_detect"), | ||
path("report-dp/", views.reportDp, name="report-dp"), | ||
path("about/", views.about, name="about"), | ||
path("terms-conditions/", views.termsConditions, name="terms-conditions"), | ||
path("know-dp/", views.knowDp, name="knowDp"), | ||
|
||
] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from django.contrib import admin | ||
from .models import WebsiteTransparencyScore, DarkPatternsData | ||
from .models import WebsiteTransparencyScore, DarkPatternsData,DpRequest | ||
|
||
# Register your models here. | ||
admin.site.register(WebsiteTransparencyScore) | ||
admin.site.register(DarkPatternsData) | ||
|
||
admin.site.register(DpRequest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 5.0.1 on 2024-02-08 18:10 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mlApi', '0002_darkpatternsdata'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='dpRequest', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('url', models.URLField()), | ||
('create_at', models.DateTimeField(auto_now_add=True)), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
api/mlApi/migrations/0004_rename_create_at_dprequest_created_at.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.0.1 on 2024-02-09 06:14 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mlApi', '0003_dprequest'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='dprequest', | ||
old_name='create_at', | ||
new_name='created_at', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from rest_framework import serializers | ||
from .models import DpRequest | ||
|
||
class DpRequestSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = DpRequest | ||
fields = '__all__' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
from django.contrib import admin | ||
<<<<<<< HEAD | ||
from django.urls import path, include | ||
======= | ||
from django.urls import path,include | ||
>>>>>>> 7fb99d1719b011518f106d67414c183667809f90 | ||
from . import views | ||
# from mlApi.views import csrf_view | ||
|
||
urlpatterns = [ | ||
path("tp-score/", views.tpScore, name="tpScore"), | ||
<<<<<<< HEAD | ||
# path("dp-data/", views.dpData, name="dpData"), | ||
|
||
# Implmentaion for the DRF views | ||
path('dp-request/', views.MessageCreateView.as_view(), name='dp-request'), | ||
path('dp-request-list/', views.MessageListView.as_view(), name='dp-request-list'), | ||
|
||
|
||
======= | ||
path("dp-data/", views.dpData, name="dpData"), | ||
# path('api/csrf/', csrf_view, name='csrf_endpoint'), | ||
path('csrf/', views.csrf_token_view, name='csrf_token_view'), | ||
>>>>>>> 7fb99d1719b011518f106d67414c183667809f90 | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.