Require login if not in authorized IP range
This commit is contained in:
parent
d59fb154b6
commit
6f67b855ac
4 changed files with 56 additions and 2 deletions
|
|
@ -17,13 +17,15 @@ from django.contrib import admin
|
|||
from django.urls import include, path
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
from .views import IndexView
|
||||
|
||||
# photologue_custom overrides some photologue patterns
|
||||
urlpatterns = [
|
||||
path('', IndexView.as_view(), name='index'),
|
||||
path('photologue/', include('photologue_custom.urls')),
|
||||
path('photologue/', include('photologue.urls', namespace='photologue')),
|
||||
path('photologue_custom/', include('photologue_custom.urls')),
|
||||
path('accounts/', include('django.contrib.auth.urls')),
|
||||
path('i18n/', include('django.conf.urls.i18n')),
|
||||
path('admin/', admin.site.urls),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue