Use:
python manage.py migrate --run-syncdb
As stated in this comment by Benyamin Jafari:
--run-syncdb
– Creates tables for apps without migrations.
Also don’t forget to specity app path. For example:
python manage.py makemigrations app
python manage.py migrate app
More Related Contents:
- Django – No such table: main.auth_user__old
- Difference between static STATIC_URL and STATIC_ROOT on Django
- Django TemplateDoesNotExist?
- How to redirect with post data (Django)
- Django model “doesn’t declare an explicit app_label”
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- How can I get the domain name of my site within a Django template?
- ImportError: No module named ‘django.core.urlresolvers’
- Django migration strategy for renaming a model and relationship fields
- How to set the timezone in Django
- Configure Django and Google Cloud Storage?
- Trying to parse `request.body` from POST in Django [duplicate]
- CSS not loading wrong MIME type Django [duplicate]
- Django Admin nested inline
- How to create virtual env with python3
- Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools [duplicate]
- Django – makemigrations – No changes detected
- What’s the best way to store a phone number in Django models?
- How to get the domain name of my site within a Django template?
- Difference between AbstractUser and AbstractBaseUser in Django?
- How to expire Django session in 5minutes?
- Unable to import path from django.urls
- How to get the previous URL from a POST in Django
- How to put comments in Django templates?
- Django-DB-Migrations: cannot ALTER TABLE because it has pending trigger events
- Resize fields in Django Admin
- Django Admin: Using a custom widget for only one model field
- Django viewset has not attribute ‘get_extra_actions’
- How to redirect from a view to another view In Django
- How to properly use the “choices” field option in Django