chore: Move WikiENS to app
This commit is contained in:
parent
25a1b880e5
commit
e4a837ffad
16 changed files with 24 additions and 26 deletions
1
WikiENS/.gitignore
vendored
1
WikiENS/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
settings.py
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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
0
app/settings/__init__.py
Normal file
22
app/urls.py
Normal file
22
app/urls.py
Normal 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
|
|
@ -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()
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue