Commit fef3cd68 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

flake8, tests

parent c98e40b8
Pipeline #103 passed with stage
in 13 seconds
from django.contrib import admin
from django.contrib.admin import site
# Register your models here.
from .models import License, Package, Project, Repo
for model in License, Package, Project, Repo:
site.register(model)
......@@ -3,6 +3,7 @@ from django.utils.safestring import mark_safe
register = template.Library()
@register.filter
def domain(url):
if url:
......
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
......@@ -11,7 +11,7 @@ if __name__ == "__main__":
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try:
import django
import django # noqa
except ImportError:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment