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):
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``.
@ -11,6 +11,6 @@ import os
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()

View File

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

View File

@ -7,7 +7,7 @@ import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('ubookmark', '0002_bookmarkmodel'),
('ipv6ula', '0002_bookmarkmodel'),
]
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.
@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'ubookmark'
'ipv6ula'
]
MIDDLEWARE = [
@ -51,7 +51,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'ubookmark.urls'
ROOT_URLCONF = 'ipv6ula.urls'
TEMPLATES = [
{
@ -69,12 +69,12 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'ubookmark.wsgi.application'
WSGI_APPLICATION = 'ipv6ula.wsgi.application'
# Defaults vs your settings
try:
from ubookmark.local_settings import *
from ipv6ula.local_settings import *
except (ModuleNotFoundError, ImportError):
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 = ""
@ -104,6 +104,7 @@ except (ModuleNotFoundError, ImportError):
AUTH_LDAP_USER_SEARCH = ""
SITE_NAME = "an unconfigured site"
SITE_DESCRIPTION = "no description"
# Password validation
@ -151,7 +152,7 @@ AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend"
]
AUTH_USER_MODEL = 'ubookmark.User'
AUTH_USER_MODEL = 'ipv6ula.User'
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 '/css/sticky-footer-navbar.css' %}">
<title>{{ site_name }} powered by ubookmark</title>
<title>{{ site_name }} powered by ipv6ula</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
@ -77,7 +77,7 @@
<footer class="footer">
<div class="container">
<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>
</div>
</footer>

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{% extends 'ubookmark/base.html' %}
{% extends 'ipv6ula/base.html' %}
{% load crispy_forms_tags %}
{% 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:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
@ -16,7 +16,7 @@ Including another URLconf
from django.contrib import admin
from django.urls import path
from ubookmark import views
from ipv6ula import views
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),

View File

@ -8,7 +8,7 @@ from django.shortcuts import redirect
from django.conf import settings
from ubookmark.models import *
from ipv6ula.models import *
class IndexView(ListView):
model = BookmarkModel
@ -41,7 +41,7 @@ class SubmitView(LoginRequiredMixin, CreateView):
return super(SubmitView, self).form_valid(form)
class LoginView(auth_views.LoginView):
template_name = 'ubookmark/login.html'
template_name = 'ipv6ula/login.html'
extra_context = {}
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``.
@ -11,6 +11,6 @@ import os
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()

View File

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