chore: Move WikiENS to app

This commit is contained in:
Tom Hubrecht 2024-10-22 08:52:15 +02:00
parent 25a1b880e5
commit e4a837ffad
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
16 changed files with 24 additions and 26 deletions

1
WikiENS/.gitignore vendored
View file

@ -1 +0,0 @@
settings.py

View file

@ -1,23 +0,0 @@
from django.conf.urls import url, include
from django.contrib import admin
from allauth_ens.views import capture_login, capture_logout
from wiki.urls import get_pattern as get_wiki_pattern
from django_nyt.urls import get_pattern as get_nyt_pattern
allauth_urls = [
# Catch login/logout views of admin site.
url(r'^_admin/login/$', capture_login),
url(r'^_admin/logout/$', capture_logout),
# Allauth urls.
url(r'^_profil/', include('allauth.urls')),
]
urlpatterns = allauth_urls + [
url(r'^_admin/', admin.site.urls),
url(r'^notifications/', get_nyt_pattern()),
url(r'^_groups/', include("wiki_groups.urls")),
url(r'', get_wiki_pattern()),
]
# TODO add MEDIA_ROOT

0
app/settings/__init__.py Normal file
View file

22
app/urls.py Normal file
View file

@ -0,0 +1,22 @@
from allauth_ens.views import capture_login, capture_logout
from django.conf.urls import include, url
from django.contrib import admin
from django_nyt.urls import get_pattern as get_nyt_pattern
from wiki.urls import get_pattern as get_wiki_pattern
allauth_urls = [
# Catch login/logout views of admin site.
url(r"^_admin/login/$", capture_login),
url(r"^_admin/logout/$", capture_logout),
# Allauth urls.
url(r"^_profil/", include("allauth.urls")),
]
urlpatterns = allauth_urls + [
url(r"^_admin/", admin.site.urls),
url(r"^notifications/", get_nyt_pattern()),
url(r"^_groups/", include("wiki_groups.urls")),
url(r"", get_wiki_pattern()),
]
# TODO add MEDIA_ROOT

View file

@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "WikiENS.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
application = get_wsgi_application()

View file

@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "WikiENS.settings.local")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
try:
from django.core.management import execute_from_command_line
except ImportError: