Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mymusiclist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Brian Guadalupe
mymusiclist
Commits
065e1184
Commit
065e1184
authored
Nov 08, 2017
by
Brian Guadalupe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix all references to models
parent
494dd4dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
settings.py
mymusiclist/settings.py
+5
-1
urls.py
mymusiclist/urls.py
+9
-11
No files found.
mymusiclist/settings.py
View file @
065e1184
...
...
@@ -33,7 +33,11 @@ ALLOWED_HOSTS = []
INSTALLED_APPS
=
[
'core'
,
'core.musicbrainzhook'
,
'search'
,
'playlist'
,
'tag'
,
'user'
,
'search.musicbrainzhook'
,
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
...
...
mymusiclist/urls.py
View file @
065e1184
...
...
@@ -16,23 +16,21 @@ Including another URLconf
from
django.conf.urls
import
url
from
django.urls
import
reverse_lazy
from
django.contrib
import
admin
from
django.contrib.auth
import
views
as
auth_views
from
core
import
views
as
core_views
from
user
import
views
as
user_views
from
search
import
views
as
search_views
urlpatterns
=
[
url
(
r'^login/$'
,
auth_views
.
login
,
{
'template_name'
:
'login.html'
},
name
=
'login'
),
url
(
r'^logout/$'
,
auth_views
.
logout
,
{
'template_name'
:
'logged_out.html'
},
name
=
'logout'
),
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r'^signup/$'
,
core_views
.
signup
,
name
=
'signup'
),
# url(r'^search_by_(?P<type>[A-Za-z0-9-+_.@]+)/?search=(?P<term>[A-Za-z0-9-+_.@]+)/$',core_views.search, name='search'),
url
(
r'^search/$'
,
core_views
.
search
,
name
=
'search'
),
url
(
r'^album/(?P<identifier>[0-9]+)/$'
,
core_views
.
album_profile
,
name
=
'album_profile'
),
url
(
r'^artist/(?P<identifier>[0-9]+)/$'
,
core_views
.
artist_profile
,
name
=
'artist_profile'
),
# url(r'^search/(?P<term>[A-Za-z0-9-+_.@]+)/$',core_views.search, name='search'),
url
(
r'^profile/(?P<slug>[A-Za-z0-9-+_.@]+)/$'
,
core_views
.
user_profile_page
,
name
=
'viewprofile'
),
url
(
r'^profile/(?P<slug>[A-Za-z0-9-+_.@]+)/edit/$'
,
core_views
.
EditProfile
.
as_view
(
success_url
=
reverse_lazy
(
'home'
)),
name
=
'editprofile'
),
# url(r'^profile/(?P<slug>[A-Za-z0-9-+_.@]+)/edit/$', core_views.EditProfile.as_view(success_url=reverse_lazy('profile', kwargs={'update':'true'})), name='editprofile'),
url
(
r'^signup/$'
,
user_views
.
signup
,
name
=
'signup'
),
url
(
r'^search/$'
,
search_views
.
search
,
name
=
'search'
),
url
(
r'^album/(?P<identifier>[0-9]+)/$'
,
search_views
.
album_profile
,
name
=
'album_profile'
),
url
(
r'^artist/(?P<identifier>[0-9]+)/$'
,
search_views
.
artist_profile
,
name
=
'artist_profile'
),
url
(
r'^profile/(?P<slug>[A-Za-z0-9-+_.@]+)/$'
,
user_views
.
user_profile_page
,
name
=
'viewprofile'
),
url
(
r'^profile/(?P<slug>[A-Za-z0-9-+_.@]+)/edit/$'
,
user_views
.
EditProfile
.
as_view
(
success_url
=
reverse_lazy
(
'home'
)),
name
=
'editprofile'
),
url
(
r'^$'
,
core_views
.
home
,
name
=
'home'
)
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment