change packages && mv all apps to portfolio package
parent
fbd62622ee
commit
a9c1bf739f
Binary file not shown.
|
|
@ -1,3 +1,4 @@
|
|||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
python manage.py graph_models -a -g -o class_diagram.png
|
||||
python manage.py graph_models -a -g -o class_diagram_by_apps.png
|
||||
python manage.py graph_models -a -o class_diagram.png
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,6 +1,6 @@
|
|||
from django.db import models
|
||||
|
||||
from account.models import Account
|
||||
from portfolio.account.models import Account
|
||||
from portfolio.utils import OneToManyModel
|
||||
|
||||
class Album(OneToManyModel):
|
||||
Binary file not shown.
|
|
@ -1,6 +1,6 @@
|
|||
from django.db import models
|
||||
|
||||
from account.models import Account, Guest
|
||||
from portfolio.account.models import Account, Guest
|
||||
|
||||
|
||||
class AbstractComment(models.Model):
|
||||
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
from django.db import models
|
||||
|
||||
from album.models import Track
|
||||
from account.models import Account
|
||||
from portfolio.album.models import Track
|
||||
from portfolio.account.models import Account
|
||||
|
||||
|
||||
class Playlist(models.Model):
|
||||
Binary file not shown.
|
|
@ -3,9 +3,9 @@ from django.utils.translation import ugettext_lazy
|
|||
from rest_enumfield import EnumField
|
||||
import enum
|
||||
|
||||
from account.models import Account
|
||||
from comment.models import UserComment, GuestComment
|
||||
from album.models import Album, Track
|
||||
from portfolio.account.models import Account
|
||||
from portfolio.comment.models import UserComment, GuestComment
|
||||
from portfolio.album.models import Album, Track
|
||||
|
||||
from portfolio.utils import OneToManyModel
|
||||
|
||||
|
|
@ -42,11 +42,11 @@ INSTALLED_APPS = [
|
|||
'drf_yasg',
|
||||
'rest_framework.authtoken',
|
||||
'portfolio',
|
||||
'account',
|
||||
'album',
|
||||
'comment',
|
||||
'playlist',
|
||||
'rating'
|
||||
'portfolio.account',
|
||||
'portfolio.album',
|
||||
'portfolio.comment',
|
||||
'portfolio.playlist',
|
||||
'portfolio.rating'
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ from rest_framework import routers, permissions
|
|||
from rest_framework.authtoken import views as authViews
|
||||
|
||||
from portfolio import settings
|
||||
from account.views import GuestViewSet, AccountViewSet, AccountAuth
|
||||
from album.views import AlbumViewSet, TrackViewSet, TrackRowViewSet
|
||||
from rating.views import TrackRatingViewSet, AlbumRatingViewSet, CommentRatingViewSet
|
||||
from comment.views import UserCommentViewSet, GuestCommentViewSet
|
||||
from portfolio.account.views import GuestViewSet, AccountViewSet, AccountAuth
|
||||
from portfolio.album.views import AlbumViewSet, TrackViewSet, TrackRowViewSet
|
||||
from portfolio.rating.views import TrackRatingViewSet, AlbumRatingViewSet, CommentRatingViewSet
|
||||
from portfolio.comment.views import UserCommentViewSet, GuestCommentViewSet
|
||||
|
||||
schema_view = get_schema_view(
|
||||
openapi.Info(
|
||||
|
|
|
|||
Loading…
Reference in New Issue