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 makemigrations
|
||||||
python manage.py migrate
|
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 django.db import models
|
||||||
|
|
||||||
from account.models import Account
|
from portfolio.account.models import Account
|
||||||
from portfolio.utils import OneToManyModel
|
from portfolio.utils import OneToManyModel
|
||||||
|
|
||||||
class Album(OneToManyModel):
|
class Album(OneToManyModel):
|
||||||
Binary file not shown.
|
|
@ -1,6 +1,6 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
from account.models import Account, Guest
|
from portfolio.account.models import Account, Guest
|
||||||
|
|
||||||
|
|
||||||
class AbstractComment(models.Model):
|
class AbstractComment(models.Model):
|
||||||
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
from album.models import Track
|
from portfolio.album.models import Track
|
||||||
from account.models import Account
|
from portfolio.account.models import Account
|
||||||
|
|
||||||
|
|
||||||
class Playlist(models.Model):
|
class Playlist(models.Model):
|
||||||
Binary file not shown.
|
|
@ -3,9 +3,9 @@ from django.utils.translation import ugettext_lazy
|
||||||
from rest_enumfield import EnumField
|
from rest_enumfield import EnumField
|
||||||
import enum
|
import enum
|
||||||
|
|
||||||
from account.models import Account
|
from portfolio.account.models import Account
|
||||||
from comment.models import UserComment, GuestComment
|
from portfolio.comment.models import UserComment, GuestComment
|
||||||
from album.models import Album, Track
|
from portfolio.album.models import Album, Track
|
||||||
|
|
||||||
from portfolio.utils import OneToManyModel
|
from portfolio.utils import OneToManyModel
|
||||||
|
|
||||||
|
|
@ -42,11 +42,11 @@ INSTALLED_APPS = [
|
||||||
'drf_yasg',
|
'drf_yasg',
|
||||||
'rest_framework.authtoken',
|
'rest_framework.authtoken',
|
||||||
'portfolio',
|
'portfolio',
|
||||||
'account',
|
'portfolio.account',
|
||||||
'album',
|
'portfolio.album',
|
||||||
'comment',
|
'portfolio.comment',
|
||||||
'playlist',
|
'portfolio.playlist',
|
||||||
'rating'
|
'portfolio.rating'
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,10 @@ from rest_framework import routers, permissions
|
||||||
from rest_framework.authtoken import views as authViews
|
from rest_framework.authtoken import views as authViews
|
||||||
|
|
||||||
from portfolio import settings
|
from portfolio import settings
|
||||||
from account.views import GuestViewSet, AccountViewSet, AccountAuth
|
from portfolio.account.views import GuestViewSet, AccountViewSet, AccountAuth
|
||||||
from album.views import AlbumViewSet, TrackViewSet, TrackRowViewSet
|
from portfolio.album.views import AlbumViewSet, TrackViewSet, TrackRowViewSet
|
||||||
from rating.views import TrackRatingViewSet, AlbumRatingViewSet, CommentRatingViewSet
|
from portfolio.rating.views import TrackRatingViewSet, AlbumRatingViewSet, CommentRatingViewSet
|
||||||
from comment.views import UserCommentViewSet, GuestCommentViewSet
|
from portfolio.comment.views import UserCommentViewSet, GuestCommentViewSet
|
||||||
|
|
||||||
schema_view = get_schema_view(
|
schema_view = get_schema_view(
|
||||||
openapi.Info(
|
openapi.Info(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue