Re: Problem with migrating a fresh db - jango.db.utils.ProgrammingError: column "structure_depth" specified more than once

2019-08-01 Thread Marius Räsener
not needed? Cheers, Marius Am Dienstag, 30. Juli 2019 23:53:00 UTC+2 schrieb Marius Räsener: > > Hey everybody, > > I hope I can somehow give enough informations but also keep it as little > as possible. > > situation is: > - existing migrations deleted to reset migration

Re: select records from a model in another django app

2019-07-31 Thread Marius Räsener
oad in > object_list %}{{ archiveupload.name <http://archiveupload.name> > }} target="_blank"> {{ archiveupload.title }} ({{ > archiveupload.publication_date | date:"Y"}}) {{ > archiveupload.general_doi }}{% endfor %}{% >

Re: select records from a model in another django app

2019-07-30 Thread Marius Räsener
Hey Perceval, it seems like you have way too many import statements. something like this should be enough: from django.views.generic import ListView from .models import StaffDetail, PeopleDetail, StudentDetail class ArchivesuploadsListView(ListView): queryset = Archivesuploads.objects.all()

Problem with migrating a fresh db - jango.db.utils.ProgrammingError: column "structure_depth" specified more than once

2019-07-30 Thread Marius Räsener
Hey everybody, I hope I can somehow give enough informations but also keep it as little as possible. situation is: - existing migrations deleted to reset migrations (existing migrations seem are broken aswell, for a fresh db) - new migrations with makemigrations - migrate fails with: File "/

Django Channels - core.py error

2018-09-01 Thread Marius Räsener
Hey, my guess is to check redis integration, f.e. like mentioned here at the bottom (outside of consumers): https://channels.readthedocs.io/en/latest/topics/channel_layers.html next guess, since an unintended lock feels rather basic to me is to make sure you‘re still following the virtualenv bes

Re: Recursive one-to-many foreign key on the same table

2018-08-09 Thread Marius Räsener
Hey Philip, while I can't help you with your actual implementation I wanted to link you to this presentation abuot the topic, it's worth time spend I think ... https://www.youtube.com/watch?v=CRxjoklS8v0&index=7&list=PLY_che_OEsX3aZo5RttI6Fj2XZ7nTjhBu recursive models are tricky, especially to

Django-channels request depending Middleware

2018-05-04 Thread Marius Räsener
Hey everybody, We are using a Middleware to inject postgresql schemas into queries based on a subdomain. You can have a look how it‘s done here: https://github.com/systori/systori/blob/dev/systori/apps/company/middleware.py Now, for channels I‘ve noticed that there is no usual request, right? So