Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
be7370a1
Commit
be7370a1
authored
3 years ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade urls and oidc_provider_settings to Django 3.2
parent
b0cdd82e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
steering/oidc_provider_settings.py
+1
-1
1 addition, 1 deletion
steering/oidc_provider_settings.py
steering/urls.py
+14
-14
14 additions, 14 deletions
steering/urls.py
with
15 additions
and
15 deletions
steering/oidc_provider_settings.py
+
1
−
1
View file @
be7370a1
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
from
django.utils.translation
import
u
gettext
as
_
from
django.utils.translation
import
gettext
as
_
from
oidc_provider.lib.claims
import
ScopeClaims
from
oidc_provider.lib.claims
import
ScopeClaims
...
...
This diff is collapsed.
Click to expand it.
steering/urls.py
+
14
−
14
View file @
be7370a1
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#
#
from
django.conf
import
settings
from
django.conf
import
settings
from
django.
conf.
urls
import
url
,
include
from
django.urls
import
include
,
path
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.views.static
import
serve
from
django.views.static
import
serve
from
rest_framework_nested
import
routers
from
rest_framework_nested
import
routers
...
@@ -72,19 +72,19 @@ timeslot_router = routers.NestedSimpleRouter(schedule_router, r'timeslots', look
...
@@ -72,19 +72,19 @@ timeslot_router = routers.NestedSimpleRouter(schedule_router, r'timeslots', look
timeslot_router
.
register
(
r
'
note
'
,
APINoteViewSet
,
basename
=
'
timeslots-note
'
)
timeslot_router
.
register
(
r
'
note
'
,
APINoteViewSet
,
basename
=
'
timeslots-note
'
)
urlpatterns
=
[
urlpatterns
=
[
url
(
r
'
^
openid/
'
,
include
(
'
oidc_provider.urls
'
,
namespace
=
'
oidc_provider
'
)),
path
(
'
openid/
'
,
include
(
'
oidc_provider.urls
'
,
namespace
=
'
oidc_provider
'
)),
url
(
r
'
^
api/v1/
'
,
include
(
router
.
urls
)),
path
(
'
api/v1/
'
,
include
(
router
.
urls
)),
url
(
r
'
^
api/v1/
'
,
include
(
show_router
.
urls
)),
path
(
'
api/v1/
'
,
include
(
show_router
.
urls
)),
url
(
r
'
^
api/v1/
'
,
include
(
show_timeslot_router
.
urls
)),
path
(
'
api/v1/
'
,
include
(
show_timeslot_router
.
urls
)),
url
(
r
'
^
api/v1/
'
,
include
(
schedule_router
.
urls
)),
path
(
'
api/v1/
'
,
include
(
schedule_router
.
urls
)),
url
(
r
'
^
api/v1/
'
,
include
(
timeslot_router
.
urls
)),
path
(
'
api/v1/
'
,
include
(
timeslot_router
.
urls
)),
url
(
r
'
^
api/v1/playout
'
,
json_playout
),
path
(
'
api/v1/playout
'
,
json_playout
),
url
(
r
'
^
api/v1/program/week
'
,
json_playout
),
path
(
'
api/v1/program/week
'
,
json_playout
),
url
(
r
'
^
api/v1/program/
(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2}
)/
$
'
,
json_day_schedule
),
path
(
'
api/v1/program/
<int:year>/<int:month>/<int:day>
)/
'
,
json_day_schedule
),
url
(
r
'
^
admin/
'
,
admin
.
site
.
urls
),
path
(
'
admin/
'
,
admin
.
site
.
urls
),
url
(
r
'
^
program/
'
,
include
(
'
program.urls
'
)),
path
(
'
program/
'
,
include
(
'
program.urls
'
)),
url
(
r
'
^
api/
'
,
include
(
'
frapp.urls
'
)),
path
(
'
api/
'
,
include
(
'
frapp.urls
'
)),
]
]
if
settings
.
DEBUG
:
if
settings
.
DEBUG
:
urlpatterns
.
append
(
url
(
r
'
^
site_media/
(?P
<path>
.*)$
'
,
serve
,
{
'
document_root
'
:
settings
.
MEDIA_ROOT
}))
urlpatterns
.
append
(
path
(
'
site_media/<path>
'
,
serve
,
{
'
document_root
'
:
settings
.
MEDIA_ROOT
}))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment