Skip to content

Commit

Permalink
* I guess add app_name to all the included urls.py files. This seems …
Browse files Browse the repository at this point in the history
…like a hoop the we all get to jump through for no gain.
  • Loading branch information
bgroff committed Jan 24, 2018
1 parent 5bcaf64 commit da9e680
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions django_kala/api/basecamp_classic/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from .people import urls as people_urls
from .projects import urls as project_urls

app_name='basecamp_classic'

urlpatterns = [
url(
r'^',
Expand Down
1 change: 1 addition & 0 deletions django_kala/auth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from django.contrib.auth.views import login, logout_then_login
from .views import *

app_name='users'

urlpatterns = [
url(regex=r'^$',
Expand Down
8 changes: 4 additions & 4 deletions django_kala/django_kala/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@

url(
r'^',
include('api.basecamp_classic.urls', namespace='basecamp_classic'),
include('api.basecamp_classic.urls'),
),

url(
r'^organizations/',
include('organizations.urls', namespace='organizations'),
include('organizations.urls'),
),

url(
r'^accounts/',
include('auth.urls', namespace='users'),
include('auth.urls'),
),

url(
r'^projects/',
include('projects.urls', namespace='projects'),
include('projects.urls'),
),

url(
Expand Down
2 changes: 2 additions & 0 deletions django_kala/organizations/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from django.conf.urls import url
from .views import OrganizationsView, NewOrganizationView, DetailsView, ManageAccessView

app_name='organizations'

urlpatterns = [
url(
regex=r'^$',
Expand Down
2 changes: 2 additions & 0 deletions django_kala/projects/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from django.conf.urls import url
from .views import *

app_name='projects'

urlpatterns = [
url(
regex=r'^$',
Expand Down

0 comments on commit da9e680

Please sign in to comment.