These are chat archives for django/django

29th
Nov 2016
sukianto
@sukianto
Nov 29 2016 05:56

Hi, all :) can someone help me with relationship tables?
I see this:

class TrackSerializer(serializers.ModelSerializer):
    class Meta:
        model = Track
        fields = ('order', 'title', 'duration')

class AlbumSerializer(serializers.ModelSerializer):
    tracks = TrackSerializer(many=True, read_only=True)

    class Meta:
        model = Album
        fields = ('album_name', 'artist', 'tracks')

This is select tracks on album
What I want to do is select the album on tracks, how I can do this? (edited)
it is like, displaying the videos with user profile_photo

If someone know please mention me :)

MOHAMMED JEMILU
@jemilu2
Nov 29 2016 13:50
@vieira83 what django project do u have in mind?
Kenneth Amanfo Junior
@amanfojnr
Nov 29 2016 14:20
does anyone have a deployment tutorial online that i can check it out, something i can understand and also which free hosting services would be better to learn with?
Peter Edache
@freewayz
Nov 29 2016 14:26
Hello guys how can i implement multitenancy in django with MYSQL
Maksym L
@maksymx
Nov 29 2016 14:30
@sukianto you should better ask in specific room: https://gitter.im/tomchristie/django-rest-framework
Simon Frid
@fridiculous
Nov 29 2016 20:02
does anyone who use pytest with django, do you have a good way to override the settings? the @override_settings decorator doesn't seem to respond.
Kentaro0919
@kentaro0919
Nov 29 2016 21:47