Преглед на файлове

added a new app named analytics for analysis staff

Mohidul Islam преди 5 години
родител
ревизия
bdf2ea13b0
променени са 11 файла, в които са добавени 178 реда и са изтрити 53 реда
  1. 1 0
      .gitignore
  2. 0 0
      analytics/__init__.py
  3. 3 0
      analytics/admin.py
  4. 5 0
      analytics/apps.py
  5. 0 0
      analytics/migrations/__init__.py
  6. 3 0
      analytics/models.py
  7. 3 0
      analytics/tests.py
  8. 3 0
      analytics/views.py
  9. 2 1
      gauth/views.py
  10. 1 0
      review_automation/settings.py
  11. 157 52
      review_data_set.csv

+ 1 - 0
.gitignore

@@ -4,6 +4,7 @@ __pycache__/
 *$py.class
 .vscode
 .idea
+review_data_set.csv
 # C extensions
 *.so
 client_secrets.json

+ 0 - 0
analytics/__init__.py


+ 3 - 0
analytics/admin.py

@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.

+ 5 - 0
analytics/apps.py

@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class AnalyticsConfig(AppConfig):
+    name = 'analytics'

+ 0 - 0
analytics/migrations/__init__.py


+ 3 - 0
analytics/models.py

@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.

+ 3 - 0
analytics/tests.py

@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.

+ 3 - 0
analytics/views.py

@@ -0,0 +1,3 @@
+from django.shortcuts import render
+
+# Create your views here.

+ 2 - 1
gauth/views.py

@@ -29,7 +29,8 @@ def get_token(request):
 def google_auth(request):
     user = User.objects.filter(username='admin@ercare').first()
     if not user:
-        return HttpResponse('<h1>You have to have a user account with username "admin@ercare". Please create a superuser using manage.py createsuperuser</h2>')
+        return HttpResponse('<h1>You have to have a user account with username "admin@ercare".'
+                            ' Please create a superuser using manage.py createsuperuser</h2>')
     return redirect('authorize')
 
 

+ 1 - 0
review_automation/settings.py

@@ -27,6 +27,7 @@ INSTALLED_APPS = [
     'review.apps.ReviewConfig',
     'dashboard.apps.DashboardConfig',
     'nlu_job.apps.NluJobConfig',
+    'analytics.apps.AnalyticsConfig',
 
     'crispy_forms',
     'django_crontab',

Файловите разлики са ограничени, защото са твърде много
+ 157 - 52
review_data_set.csv


Някои файлове не бяха показани, защото твърде много файлове са промени