Forums

Getting started with South in Django

Hi,

Okay I had just typed out 4 paragraphs of how I want to use South and the different things I tried to do to use it on my app but the textarea got wiped out after I clicked the button and my wifi stuttered.

So, I'm just going to ask: What does it take for me to run commands like: python manage.py convert_to_south myapp or python manage.py schemamigration myapp --initial ? I've already included 'south' in my INSTALLED_APPS section of the correct settings.py file.

It's probably something really basic as I couldn't find any previous questions being asked regarding this. Thanks!

Hi guanxun -- I think you just need to run manage.py syncdb to get south to set up its own migration-monitoring tables, and everything should work from then on -- let me know if that doesn't fix it.

Thanks for getting back to me!

I have tried running manage.py syncdb prior to executing the command schemamigration app_name --initial, but the bash console is giving me Unknown Command: 'schemamigration'

The full command I used was python manage.py schemamigration appname --initial.

I also tried --auto but the result was the same. I have no idea why this is...

(I'm using the tutorial at http://south.readthedocs.org/en/latest/tutorial/part1.html)

it's still not working for me and I really can't make any sort of headway into discovering a solution. Found this other question regarding South on PA https://www.pythonanywhere.com/forums/topic/814/ but it's not helping much either.

Does it matter if I didn't set the app up on PA as a Django project?

python manage.py help doesn't return any South commands in the available subcommands list.

That really sounds like south isn't in the INSTALLED_APPS of your settings.py -- but you've already checked that. Hmm.

Would you mind if I took a look at your code? Just let me know which directory the Django project is in -- send me a message using the "Send feedback" link at the top of the page if you don't want to post anything publicly.

Sure, would love the help! Sounds like I'm about to get embarrassed over a missing comma or something. Will contact you after this. Meanwhile, I've also gone ahead and posted the same question on Stackoverflow, with a little more detail and formatting.

http://stackoverflow.com/questions/18045642/how-do-i-get-south-to-work-on-pythonanywhere