• Members 3 posts
    Aug. 9, 2018, 9:08 a.m.

    Hi everyone!

    I'm trying to install this amazing application, but i have some issues here.

    An error, that i've got:

    Related model 'misago_threads.Thread' cannot be resolved

    And when i'm doing migrate command, i'm getting this kind of message:

    The field misago.Thread.first_post was declared with a lazy reference to 'misago_threads.post', but app 'misago_threads' isn't installed.

    And this message is not only one, there is about 20 messages like this with different models and methods, but the last part of message is the same. I mean but app 'misago_*' isn't installed

    Maybe i'm missing something? Well, it's obviously, but i don't know what exactly.

    Thanks for your help!

    And sorry for my english O:)

  • Aug. 9, 2018, 10:59 a.m.

    Hey there!

    Could you describe what actions have did so far? Did you clone the repo or did pip install? Are you trying to run misago on your computer or on application server?

    Are you using virtualenv? What libraries are listed when you run pip list in your console?

  • Members 3 posts
    Aug. 9, 2018, 11:13 a.m.

    Hi, rafalp!

    1. I'm using virtualenv, pip, postgresql and i'm doing this on my local machine.
    2. I change my settings.py file like you describe in topic misago-project.org/t/misago-018/619/
    3. Run migrate command

    And after migrate command comes issues:

    The field misago.Thread.first_post was declared with a lazy reference to 'misago_threads.post', but app 'misago_threads' isn't installed. (and other errors like this)

    And when i'm trying to load page http://127.0.0.1:8000, i'm getting this error:

    Related model 'misago_threads.Thread' cannot be resolved

    Actually what i'm thinkgin about, is that misago application doesn't exist in database because of migrate command issues, and error Related model 'misago_threads.Thread' cannot be resolved trying to say that to me. Maybe i'm wrong.

    Oh, and here list of apps after pip list command:

    beautifulsoup4 4.6.1
    bleach 2.0.0
    certifi 2018.4.16
    chardet 3.0.4
    Django 1.11.15
    django-crispy-forms 1.6.1
    django-debug-toolbar 1.9.1
    django-floppyforms 1.7.0
    django-haystack 2.8.1
    django-htmlmin 0.10.0
    django-jinja 0.24
    django-mptt 0.8.7
    djangorestframework 3.6.4
    fake-factory 9999.9.9
    Faker 0.8.17
    html5lib 0.999999999
    idna 2.7
    ipaddress 1.0.22
    Jinja2 2.10
    Markdown 2.6.11
    MarkupSafe 1.0
    Misago 0.18.2
    misago-social-auth-app-django 2.1.0
    oauthlib 2.1.0
    olefile 0.45.1
    path.py 10.3.1
    Pillow 4.1.1
    pip 18.0
    pkg-resources 0.0.0
    psycopg2 2.7.5
    psycopg2-binary 2.7.5
    PyJWT 1.6.4
    python-dateutil 2.7.3
    python-openid 2.2.5
    pytz 2013b0
    recaptcha-client 1.0.6
    requests 2.19.1
    requests-oauthlib 1.0.0
    setuptools 40.0.0
    six 1.11.0
    social-auth-core 1.7.0
    South 0.8.4
    sqlparse 0.2.4
    text-unidecode 1.2
    Unidecode 0.4.21
    urllib3 1.23
    webencodings 0.5.1
    wheel 0.31.1
    Whoosh 2.5.7

  • Aug. 9, 2018, 1:29 p.m.

    Thanks for this information.

    Why are you changing the settings.py as documented in the Misago 0.18 update guide? Did you create local install before 0.18 has been released? you shouldn't need to do that if you just recently did pip install misago.

    Have you considered cloning the repo from github and using docker? Misago's repository comes with docker setup for easy running your own localhost setups for development and testing purposes. I know people are weary because Docker is very bad at informing people how to use it (instead dropping bunch of technical info on user), but you don't need to know that to run docker apps locally, just docker-compose build, docker-compose up, docker-compose stop and docker-compose down.

  • Members 3 posts
    Aug. 9, 2018, 3:18 p.m.

    Actually, i'm trying to install misago for the first time and doing all steps in your release 0.18 post. And as for docker - build was successfull, and when i'm tried to docker-compose up - i'm getting a conflict about 5432 port.

    It's strange, because, as i see, nobody on that forum doesn't have that issue. Maybe something wrong on my side.

  • Aug. 9, 2018, 4:12 p.m.

    Actually, i'm trying to install misago for the first time and doing all steps in your release 0.18 post.

    Those steps are only for people updating to Misago 0.18 from 0.17. You don't have to do them if you used pip install misago becuase that gives you Misago 0.18 already.

    i'm getting a conflict about 5432 port

    You can either stop your system PostgreSQL or remove this code from your docker-compose.yml:

    ports:
      - '127.0.0.1:5432:5432'