Django 1.9 without extra app - solve django migration problem
Django recommended way:
|_ myapp -|_ settings.py
|_ wsgi.py
|_ manage.py
|_ app1 -|_models.py
|_ app1 -|_views.py
The way I like it (for small apps):
|_ myapp -|_ settings.py
|_ wsgi.py
|_models.py
|_ views.py
|_ manage.py
Problem: Django migration does not work
Error Message: no such table: myapp_tablename
Solution: when doing the migration, use the command
python manage.py makemigrations myapp
Comments
Post a Comment