gitar

Fixed an old bug; repositoryName should be repository_name to comply with PEP8.

Author
Vngngdn
Date
Sept. 8, 2016, 9:27 p.m.
Hash
7e5bcc2ab73c5a8b6e0fb387922703eb9e02fa0b
Parent
3bbb4c6211f3de0981f2513cc34a21deefcafaf5
Modified file
urls.py

urls.py

2 additions and 2 deletions.

View changes Hide changes
1
1
    Copyright © 2016 Maarten "Vngngdn" Vangeneugden
2
2
3
3
    This program is free software: you can redistribute it and/or modify
4
4
    it under the terms of the GNU Affero General Public License as
5
5
    published by the Free Software Foundation, either version 3 of the
6
6
    License, or (at your option) any later version.
7
7
8
8
    This program is distributed in the hope that it will be useful,
9
9
    but WITHOUT ANY WARRANTY; without even the implied warranty of
10
10
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
11
    GNU Affero General Public License for more details.
12
12
13
13
    You should have received a copy of the GNU Affero General Public License
14
14
    along with this program. If not, see https://www.gnu.org/licenses/agpl.html.
15
15
"""
16
16
17
17
from django.conf.urls import url
18
18
19
19
from . import views # Imports the views from the same directory (which is views.py).
20
20
21
21
urlpatterns = [
22
22
        url(r'^$', views.index, name='gitar-index'),
23
23
        url(r'^(?P<repositoryName>\w+)$', views.repositories, name='gitar-repository'),
24
-
        url(r'^(?P<repositoryName>\w+)/(?P<path>\w+)$', views.path_explorer, name='gitar-path-explorer'),
25
-
+
24
        url(r'^(?P<repository_name>\w+)/(?P<path>\w+)$', views.path_explorer, name='gitar-path-explorer'),
+
25
26
26
        ]
27
27