Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix the url order, to avoid the clash between usernames and the action url. #12

Merged
merged 2 commits into from

2 participants

@mattions

With the previous order create and edit were recognised as username and a 404 page was given as response. This fix #9

mattions added some commits
@mattions mattions Excluding from the repo the compiled python files. 997b087
@mattions mattions Fix the url order, to avoid the clash between usernames and the actio…
…n url.

With the previous order create and edit were recognised as username and a 404 page was given as response. This fix #9
384a02b
@paltman paltman merged commit 677b3a2 into eldarion:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 14, 2012
  1. @mattions
  2. @mattions

    Fix the url order, to avoid the clash between usernames and the actio…

    mattions authored
    …n url.
    
    With the previous order create and edit were recognised as username and a 404 page was given as response. This fix #9
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 5 deletions.
  1. +1 −0  .gitignore
  2. +6 −5 idios/urls.py
View
1  .gitignore
@@ -1,2 +1,3 @@
docs/_build/*
idios*.egg-info/
+*.pyc
View
11 idios/urls.py
@@ -14,14 +14,15 @@
url(r"^$", ProfileListView.as_view(), name="profile_list"),
url(r"^all/$", ProfileListView.as_view(all_profiles=True), name="profile_list_all"),
- url(r"^(?P<profile_slug>[\w\._-]+)/$", ProfileListView.as_view(), name="profile_list"),
-
- profile_detail_default,
- url(r"^(?P<profile_slug>[\w\._-]+)/profile/(?P<pk>\d+)/$", ProfileDetailView.as_view(), name="profile_detail"),
-
+
url(r"^edit/$", ProfileUpdateView.as_view(), name="profile_edit"),
url(r"^(?P<profile_slug>[\w\._-]+)/edit/$", ProfileUpdateView.as_view(), name="profile_edit"),
url(r"^create/$", ProfileCreateView.as_view(), name="profile_create"),
url(r"^(?P<profile_slug>[\w\._-]+)/create/$", ProfileCreateView.as_view(), name="profile_create"),
+
+ profile_detail_default,
+ url(r"^(?P<profile_slug>[\w\._-]+)/profile/(?P<pk>\d+)/$", ProfileDetailView.as_view(), name="profile_detail"),
+
+ url(r"^(?P<profile_slug>[\w\._-]+)/$", ProfileListView.as_view(), name="profile_list"),
)
Something went wrong with that request. Please try again.