These are chat archives for django/django

Nov 2016
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 :)

Nov 29 2016 13:50
@vieira83 what django project do u have in mind?
Kenneth Amanfo Junior
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
Nov 29 2016 14:26
Hello guys how can i implement multitenancy in django with MYSQL
Maksym L
Nov 29 2016 14:30
@sukianto you should better ask in specific room:
Simon Frid
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.
Nov 29 2016 21:47