rename ubookmark to ipv6ula

Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
Nico Schottelius 2020-12-04 18:08:27 +01:00
parent 4f3de2da63
commit 2b87fc6cbd
21 changed files with 26 additions and 25 deletions

View File

@ -1 +1 @@
Checkout the [ubookmark homepage](https://ungleich.ch/u/projects/ubookmark/). Checkout the [ipv6ula homepage](https://ungleich.ch/u/projects/ipv6ula/).

View File

@ -2,4 +2,4 @@ from django.apps import AppConfig
class UbookmarkConfig(AppConfig): class UbookmarkConfig(AppConfig):
name = 'ubookmark' name = 'ipv6ula'

View File

@ -1,5 +1,5 @@
""" """
ASGI config for ubookmark project. ASGI config for ipv6ula project.
It exposes the ASGI callable as a module-level variable named ``application``. It exposes the ASGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ubookmark.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ipv6ula.settings')
application = get_asgi_application() application = get_asgi_application()

View File

@ -8,7 +8,7 @@ import django.db.models.deletion
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('ubookmark', '0001_initial'), ('ipv6ula', '0001_initial'),
] ]
operations = [ operations = [

View File

@ -7,7 +7,7 @@ import django.utils.timezone
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('ubookmark', '0002_bookmarkmodel'), ('ipv6ula', '0002_bookmarkmodel'),
] ]
operations = [ operations = [

View File

@ -1,5 +1,5 @@
""" """
Django settings for ubookmark project. Django settings for ipv6ula project.
Generated by 'django-admin startproject' using Django 3.0.5. Generated by 'django-admin startproject' using Django 3.0.5.
@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'crispy_forms', 'crispy_forms',
'ubookmark' 'ipv6ula'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@ -51,7 +51,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'ubookmark.urls' ROOT_URLCONF = 'ipv6ula.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -69,12 +69,12 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'ubookmark.wsgi.application' WSGI_APPLICATION = 'ipv6ula.wsgi.application'
# Defaults vs your settings # Defaults vs your settings
try: try:
from ubookmark.local_settings import * from ipv6ula.local_settings import *
except (ModuleNotFoundError, ImportError): except (ModuleNotFoundError, ImportError):
LOGGING = {} LOGGING = {}
@ -90,7 +90,7 @@ except (ModuleNotFoundError, ImportError):
} }
################################################################################ ################################################################################
# LDAP: you probably want to set those, if you are using ubookmark # LDAP: you probably want to set those, if you are using ipv6ula
AUTH_LDAP_SERVER_URI = "" AUTH_LDAP_SERVER_URI = ""
@ -104,6 +104,7 @@ except (ModuleNotFoundError, ImportError):
AUTH_LDAP_USER_SEARCH = "" AUTH_LDAP_USER_SEARCH = ""
SITE_NAME = "an unconfigured site" SITE_NAME = "an unconfigured site"
SITE_DESCRIPTION = "no description"
# Password validation # Password validation
@ -151,7 +152,7 @@ AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend" "django.contrib.auth.backends.ModelBackend"
] ]
AUTH_USER_MODEL = 'ubookmark.User' AUTH_USER_MODEL = 'ipv6ula.User'
CRISPY_TEMPLATE_PACK = 'bootstrap4' CRISPY_TEMPLATE_PACK = 'bootstrap4'

View File

@ -10,7 +10,7 @@
<link rel="stylesheet" href="{% static '/bootstrap/css/bootstrap.min.css' %}"> <link rel="stylesheet" href="{% static '/bootstrap/css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static '/css/sticky-footer-navbar.css' %}"> <link rel="stylesheet" href="{% static '/css/sticky-footer-navbar.css' %}">
<title>{{ site_name }} powered by ubookmark</title> <title>{{ site_name }} powered by ipv6ula</title>
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
@ -77,7 +77,7 @@
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
<span class="text-muted">Powered by <span class="text-muted">Powered by
<a href="http://ungleich.ch/u/projects/ubookmark">ubookmark</a>, <a href="http://ungleich.ch/u/projects/ipv6ula">ipv6ula</a>,
a FOSS product created by <a href="https://ungleich.ch">ungleich</a>.</span> a FOSS product created by <a href="https://ungleich.ch">ungleich</a>.</span>
</div> </div>
</footer> </footer>

View File

@ -1,4 +1,4 @@
{% extends 'ubookmark/base.html' %} {% extends 'ipv6ula/base.html' %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block content %} {% block content %}

View File

@ -1,4 +1,4 @@
{% extends 'ubookmark/base.html' %} {% extends 'ipv6ula/base.html' %}
{% block content %} {% block content %}
<div class="container"> <div class="container">

View File

@ -1,4 +1,4 @@
{% extends 'ubookmark/base.html' %} {% extends 'ipv6ula/base.html' %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block content %} {% block content %}

View File

@ -1,4 +1,4 @@
"""ubookmark URL Configuration """ipv6ula URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see: The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/ https://docs.djangoproject.com/en/3.0/topics/http/urls/
@ -16,7 +16,7 @@ Including another URLconf
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path
from ubookmark import views from ipv6ula import views
urlpatterns = [ urlpatterns = [
path('', views.IndexView.as_view(), name='index'), path('', views.IndexView.as_view(), name='index'),

View File

@ -8,7 +8,7 @@ from django.shortcuts import redirect
from django.conf import settings from django.conf import settings
from ubookmark.models import * from ipv6ula.models import *
class IndexView(ListView): class IndexView(ListView):
model = BookmarkModel model = BookmarkModel
@ -41,7 +41,7 @@ class SubmitView(LoginRequiredMixin, CreateView):
return super(SubmitView, self).form_valid(form) return super(SubmitView, self).form_valid(form)
class LoginView(auth_views.LoginView): class LoginView(auth_views.LoginView):
template_name = 'ubookmark/login.html' template_name = 'ipv6ula/login.html'
extra_context = {} extra_context = {}
extra_context['site_name'] = settings.SITE_NAME extra_context['site_name'] = settings.SITE_NAME

View File

@ -1,5 +1,5 @@
""" """
WSGI config for ubookmark project. WSGI config for ipv6ula project.
It exposes the WSGI callable as a module-level variable named ``application``. It exposes the WSGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ubookmark.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ipv6ula.settings')
application = get_wsgi_application() application = get_wsgi_application()

View File

@ -5,7 +5,7 @@ import sys
def main(): def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ubookmark.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ipv6ula.settings')
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError as exc: except ImportError as exc: