Hi,
Can you please paste the migrations you created that refer to the Channel
model. Make sure that those migrations depend on the redis_pubsub.0001_initial
migration.
/Markus
On February 16, 2016 3:41:27 PM GMT+11:00, ayo...@thewulf.org wrote:
>I'm having an issue with migrating my Django application.
>
>I encounter the following errors when trying to migrate:
>ERRORS:
>accounts.Availability.channel: (fields.E300) Field defines a relation
>with
>model 'Channel', which is either not installed, or is abstract.
>accounts.Correspondence.channel: (fields.E300) Field defines a relation
>with
>model 'Channel', which is either not installed, or is abstract.
>accounts.Todo.channel: (fields.E300) Field defines a relation with
>model
>'Channel', which is either not installed, or is abstract.
>marketplace.Deliverable.channel: (fields.E300) Field defines a relation
>with
>model 'Channel', which is either not installed, or is abstract.
>marketplace.OfflineServiceRequest.channel: (fields.E300) Field defines
>a
>relation with model 'Channel', which is either not installed, or is
>abstract
>.
>marketplace.OperatorReview.channel: (fields.E300) Field defines a
>relation
>with model 'Channel', which is either not installed, or is abstract.
>marketplace.Service.channel: (fields.E300) Field defines a relation
>with
>model 'Channel', which is either not installed, or is abstract.
>marketplace.ServiceDelivery.channel: (fields.E300) Field defines a
>relation
>with model 'Channel', which is either not installed, or is abstract.
>
>
>My installed apps definition:
>DJANGO_APPS = [
>'suit',
>'django.contrib.admin',
>'django.contrib.auth',
>'django.contrib.contenttypes',
>'django.contrib.sessions',
>'django.contrib.messages',
>'django.contrib.staticfiles',
>'django.contrib.sites',
>]
>
>
>LOCAL_APPS = [
>'thriive_api.accounts',
>'thriive_api.utils',
>'thriive_api.marketplace',
>'thriive_api.conversations',
>'thriive_api.transactions'
>
>]
>
>
>THIRDPARTY_APPS = [
>'rest_framework_jwt',
>'rest_framework',
>'charity_check',
>'restframework_stripe',
>'redis_pubsub',
>]
>
>
>INSTALLED_APPS = DJANGO_APPS + THIRDPARTY_APPS + LOCAL_APPS
>
>and I'm referring to the model directly in the FK relation in my model
>definitions:
>from redis_pubsub.models import Channel
>
>class Availability(models.Model):
> channel = models.ForeignKey(Channel)
>
>It seems like the migrations can't find the `redis_pubsub.Channel`
>model,
>which is installed in `THIRDPARTY_APPS` and is not abstract. The
>migration
>files themselves also refer to the correct model path (e.g.
>`redis_pubsub.Channel`), so what gives? Does anyone know what's going
>on
>here?
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/F9CD8805-EC31-407F-9AEC-CD8C42726CEF%40markusholtermann.eu.
For more options, visit https://groups.google.com/d/optout.