Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
remove website urls and update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlauinger committed Oct 5, 2018
1 parent 2f3147c commit b535e40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyophase/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
'sslserver',
'pyTUID',
'ophasebase',
'website',
'dashboard',
'staff',
'students',
Expand All @@ -68,7 +67,7 @@

ROOT_URLCONF = 'pyophase.urls'

LOGIN_REDIRECT_URL = 'website:homepage'
LOGIN_REDIRECT_URL = 'index'

TEMPLATES = [
{
Expand Down
5 changes: 3 additions & 2 deletions pyophase/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
from django.conf.urls import include, url
from django.contrib import admin
from django.urls import reverse_lazy
from django.views.generic import RedirectView
from django.views.static import serve


admin.autodiscover()

urlpatterns = [
url(r'^', include('website.urls', namespace='website')),
url(r'^$', RedirectView.as_view(url=reverse_lazy('dashboard:index'), permanent=False), name='index'),
url(r'sso/', include('pyTUID.urls')),
url(r'^mitmachen/', include('staff.urls', namespace='staff')),
url(r'^teilnehmer/', include('students.urls', namespace='students')),
Expand All @@ -19,7 +20,7 @@
url(r'^clothing/', include('clothing.urls', namespace='clothing')),
url(r'^admin/', admin.site.urls),
url(r'^accounts/login/$', django.contrib.auth.views.login, {'template_name': 'admin/login.html'}, name='login'),
url(r'^accounts/logout/$', django.contrib.auth.views.logout, {'next_page': reverse_lazy('website:homepage')}, name='logout'),
url(r'^accounts/logout/$', django.contrib.auth.views.logout, {'next_page': reverse_lazy('index')}, name='logout'),
url(r'^i18n/', include('django.conf.urls.i18n')),
]

Expand Down

0 comments on commit b535e40

Please sign in to comment.