diff --git a/.travis.yml b/.travis.yml index 96f7843..e8d90c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ - +dist: xenial language: python python: - "3.6" @@ -7,4 +7,5 @@ install: script: - python manage.py makemigrations questions - python manage.py migrate - - python manage.py test \ No newline at end of file + - python manage.py test + diff --git a/questions/admin.py b/questions/admin.py index 6723db8..4b92045 100644 --- a/questions/admin.py +++ b/questions/admin.py @@ -1,5 +1,10 @@ from django.contrib import admin from .models import * -admin.site.register(Topic) -admin.site.register(Type) \ No newline at end of file + +class SnippetAdmin(admin.ModelAdmin): + change_list_template = 'admin/questions/login.html' + + +admin.site.register(Topic, SnippetAdmin) +admin.site.register(Type, SnippetAdmin) diff --git a/questions/static/questions/logo_light.png b/questions/static/questions/logo_light.png new file mode 100644 index 0000000..a8c7ff8 Binary files /dev/null and b/questions/static/questions/logo_light.png differ diff --git a/questions/templates/admin/login.html b/questions/templates/admin/login.html new file mode 100644 index 0000000..f789e3a --- /dev/null +++ b/questions/templates/admin/login.html @@ -0,0 +1,84 @@ +{% extends "admin/login.html" %} +{% load i18n static %} + +{% load static %} + +{% block footer %} + + +{% endblock %} +{% block script %} + + + +{% endblock %} + + + +{% block branding %} + + +
+ logo +
+{% endblock %} \ No newline at end of file diff --git a/qujini/settings.py b/qujini/settings.py index d53cfb1..76c9c5a 100644 --- a/qujini/settings.py +++ b/qujini/settings.py @@ -31,13 +31,13 @@ # Application definition INSTALLED_APPS = [ + 'questions', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'questions', 'ckeditor', ] diff --git a/requirements.txt b/requirements.txt index f6371ee..1ca65c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ Django==2.2.1 django-ckeditor==5.7.1 pytz==2019.1 -sqlparse==0.3.0 - +sqlparse==0.3.0 \ No newline at end of file