diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-07-22 23:06:15 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-07-22 23:14:10 +0100 |
commit | 070157eacbdcfa34938002ebe7b572319e0f7d24 (patch) | |
tree | abebc3953844afa76b31149e797107549e2c88a1 /profiles/urls.py | |
parent | fbf5daff0ea0f9b6b3bd19940f981dfa7c42763d (diff) | |
download | troggle-070157eacbdcfa34938002ebe7b572319e0f7d24.tar.gz troggle-070157eacbdcfa34938002ebe7b572319e0f7d24.tar.bz2 troggle-070157eacbdcfa34938002ebe7b572319e0f7d24.zip |
TRansX speedup for import + remove fossil profiles
Diffstat (limited to 'profiles/urls.py')
-rw-r--r-- | profiles/urls.py | 96 |
1 files changed, 49 insertions, 47 deletions
diff --git a/profiles/urls.py b/profiles/urls.py index b7967fe..1ef63d3 100644 --- a/profiles/urls.py +++ b/profiles/urls.py @@ -1,47 +1,49 @@ -""" -URLConf for Django user profile management. - -Recommended usage is to use a call to ``include()`` in your project's -root URLConf to include this URLConf for any URL beginning with -'/profiles/'. - -If the default behavior of the profile views is acceptable to you, -simply use a line like this in your root URLConf to set up the default -URLs for profiles:: - - (r'^profiles/', include('profiles.urls')), - -But if you'd like to customize the behavior (e.g., by passing extra -arguments to the various views) or split up the URLs, feel free to set -up your own URL patterns for these views instead. If you do, it's a -good idea to keep the name ``profiles_profile_detail`` for the pattern -which points to the ``profile_detail`` view, since several views use -``reverse()`` with that name to generate a default post-submission -redirect. If you don't use that name, remember to explicitly pass -``success_url`` to those views. - -""" - -from django.conf.urls import * -from django.urls import * - -from profiles import views - - -urlpatterns = [ - url(r'^select/$', - views.select_profile, - name='profiles_select_profile'), - url(r'^create/$', - views.create_profile, - name='profiles_create_profile'), - url(r'^edit/$', - views.edit_profile, - name='profiles_edit_profile'), - url(r'^(?P<username>\w+)/$', - views.profile_detail, - name='profiles_profile_detail'), - url(r'^$', - views.profile_list, - name='profiles_profile_list'), - ] +# # url(r'^profiles/', include('profiles.urls')), # not used ? Delete this entire app then. + +# """ +# URLConf for Django user profile management. + +# Recommended usage is to use a call to ``include()`` in your project's +# root URLConf to include this URLConf for any URL beginning with +# '/profiles/'. + +# If the default behavior of the profile views is acceptable to you, +# simply use a line like this in your root URLConf to set up the default +# URLs for profiles:: + + # (r'^profiles/', include('profiles.urls')), + +# But if you'd like to customize the behavior (e.g., by passing extra +# arguments to the various views) or split up the URLs, feel free to set +# up your own URL patterns for these views instead. If you do, it's a +# good idea to keep the name ``profiles_profile_detail`` for the pattern +# which points to the ``profile_detail`` view, since several views use +# ``reverse()`` with that name to generate a default post-submission +# redirect. If you don't use that name, remember to explicitly pass +# ``success_url`` to those views. + +# """ + +# from django.conf.urls import * +# from django.urls import * + +# from profiles import views + + +# urlpatterns = [ + # url(r'^select/$', + # views.select_profile, + # name='profiles_select_profile'), + # url(r'^create/$', + # views.create_profile, + # name='profiles_create_profile'), + # url(r'^edit/$', + # views.edit_profile, + # name='profiles_edit_profile'), + # url(r'^(?P<username>\w+)/$', + # views.profile_detail, + # name='profiles_profile_detail'), + # url(r'^$', + # views.profile_list, + # name='profiles_profile_list'), + # ] |