on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

117 views
Skip to first unread message

Michael Lind Hjulskov

unread,
Jun 25, 2014, 10:19:08 AM6/25/14
to django...@googlegroups.com
Hi there :)

I'm stuck with this problem 
when I run python manage.py migrate myappname i get the following error:
AttributeError: 'module' object has no attribute 'Migration'

I remember I had this problem before, and I remember that I solved it by deleting all pyc files  - I tried that - still error

any clues?

Thank You

Michael Lind Hjulskov

unread,
Jun 25, 2014, 10:34:32 AM6/25/14
to django...@googlegroups.com
Hi

Here's a bit more info about the error
this is the line where it fails in south

Hope to get help

Thanks

Erik Cederstrand

unread,
Jun 25, 2014, 2:34:22 PM6/25/14
to Django Users
Try getting a backtrace:

./manage.py migrate myappname --traceback


Erik

Michael Lind Hjulskov

unread,
Jun 25, 2014, 3:33:22 PM6/25/14
to django...@googlegroups.com
Hi Erik

Thank You

I tried ./manage.py migrate myappname --traceback
Still the same error message and no more info available than before.

PS I see You are from DK - I'm from Aalborg, You?

Michael



--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/d6TT9Z6nDLI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4657E66A-9476-49A5-8EB1-BD2BEBA86049%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

Erik Cederstrand

unread,
Jun 25, 2014, 3:42:20 PM6/25/14
to Django Users
Den 25/06/2014 kl. 21.30 skrev Michael Lind Hjulskov <mic...@hjulskov.dk>:

> Hi Erik
>
> Thank You
>
> I tried ./manage.py migrate myappname --traceback
> Still the same error message and no more info available than before.

Check your migrations folder and make sure you only have South migration files in there. Also, update to the latest South version, if you haven't already.

> PS I see You are from DK - I'm from Aalborg, You?

Roskilde.

Erik

Michael Lind Hjulskov

unread,
Jun 25, 2014, 4:06:28 PM6/25/14
to django-users
Den 25/06/2014 kl. 21.30 skrev Michael Lind Hjulskov <mic...@hjulskov.dk>:

> Hi Erik
>
> Thank You
>
> I tried ./manage.py migrate myappname --traceback
> Still the same error message and no more info available than before.

Check your migrations folder and make sure you only have South migration files in there. Also, update to the latest South version, if you haven't already.
Just checked on the server
There are only south files, and one __init__.py file i each migration folder
I have South 0.8.4 installed, which is the latest I can find
 
> PS I see You are from DK - I'm from Aalborg, You?

Roskilde.
OKay I'm looking for a Danish django developer to help me sometimes when i'm in finding myself in a dead end. 

Erik

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/d6TT9Z6nDLI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

Michael Lind Hjulskov

unread,
Jun 25, 2014, 4:09:34 PM6/25/14
to django-users
hmm 
could it be:
I run my local development env with a sqlite3 as database
when I launch to deployment, I use mysql as db

But doesnt South produce the same result when i run schemamigration, nomatter what db I'm using ?
Hope You undderstand what I mean



Med venlig hilsen
Michael Hjulskov

Mobil +45 22116322

Michael Lind Hjulskov

unread,
Jun 25, 2014, 4:38:31 PM6/25/14
to django-users
Hi Erik

I solved it.. You vere right I should check again the files in migration folder
It was my IDE (Pycharm) which for some reason sometimes fail on uploading files. So there was missing a few files, in a migrations folder
Sorry I didnt know that - Pycharm is still new for me. I'm use to Filezilla which would prompt such error more clearly

Let me know if I can help You some day
I work with ecommerce and my number is 22116322

Thank You very much

Michael
Reply all
Reply to author
Forward
0 new messages