Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL pattern generated incorectly #12

Open
buddikamanoj opened this issue Nov 13, 2017 · 1 comment
Open

URL pattern generated incorectly #12

buddikamanoj opened this issue Nov 13, 2017 · 1 comment

Comments

@buddikamanoj
Copy link

Genarated URLS.py

urls for Map

# url(r'^Home/map/$', views.MapListView.as_view(), name='Home_map_list'),
# url(r'^Home/map/create/$', views.MapCreateView.as_view(), name='Home_map_create'),
# url(r'^Home/map/detail/(?P<pk>\S+)/$', views.MapDetailView.as_view(), name='Home_map_detail'),
# url(r'^Home/map/update/(?P<pk>\S+)/$', views.MapUpdateView.as_view(), name='Home_map_update'),

Correct URL pattern
url(r'^$', views.MapListView.as_view(), name='Home_map_list'),
url(r'^create/$', views.MapCreateView.as_view(), name='Home_map_create'),
url(r'^detail/(?P\S+)/$', views.MapDetailView.as_view(), name='Home_map_detail'),
url(r'^update/(?P\S+)/$', views.MapUpdateView.as_view(), name='Home_map_update'),

@michaelbrooks
Copy link
Owner

Is this issue for this repo? This code doesn't look related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants