17👍
If you’ve installed 1.6, you should use the 1.6 tutorial, not the one for the development version.
8👍
First Step, Install South:
pip install south
Second Step, Add South to INSTALLED APPS in settings
INSTALLED_APPS = (
…,
‘south’ )
- Django: model has two ManyToMany relations through intermediate model
- Django: how to trigger creation of ContentTypes for new models?
- Unable to encode/decode pprint output
4👍
Migrate will be a native command in 1.7 (which is the version you read the tutorial pages from).
For older versions, you’ll have to install the third party app”South”.
4👍
All-
This is likely caused largely by following the 1.7 (DEV version!) tutorial when we all get the last stable version (1.6!) installed by pip.
It would not appear migrate is even a part of 1.7 in general! Will:
python manage.py syncdb
Solve your problems?
So pls either follow the tutorial for the last stable version of django: https://docs.djangoproject.com/en/1.6/intro/tutorial01/
Or follow the instructions to install the dev version of Django.
Dear Django team,
You guys are awesome. The JS developer is very impressed. But PLEASE resolve the discrepancy above. Maybe default to 1.6 docs and put in red letters: Dev version here?
Thank you.
- Best practice when using folium on django
- Django Admin Drop down selections
- How to add anchor to django url in template
- Learning the Django framework
- How do I exclude South migrations from Pylint?
- Django: JSON Notifications using Redis PubSub, Node.js & Socket.io
- No module named backends.default.urls
0👍
If you are using Django older versions before 1.7 then you should sync database by
python manage.py syncdb
while in new versions after 1.7 syncdb is replaced by migration. So for syncdb in new django version is replaced by :-
python manage.py makemigrations
python manage.py migrate
for more type:-
python manage.py help
- Listing installed python site-packages?
- Django – reverse lookups with ManyToManyField
- How to make static files works using django docker nginx and postgresql since its not serving them
- Django migrations conflict multiple leaf nodes in the migration graph
- How to prevent "Changed successfully" message when overriding save_model method