Few things you can do:
On Saturday, February 13, 2016 at 11:42:23 PM UTC-6, News Latest wrote:
-- - Check to make sure your app is in INSTALLED_APPS
- Delete the migrations folder and run 'manage.py makemigrations' & 'manage.py migrate' again
- depending on the name of the app (let's say student) you can try running 'manage.py makemigrations student' & 'manage.py migrate'
Chris
On Saturday, February 13, 2016 at 11:42:23 PM UTC-6, News Latest wrote:
i have made a model names STUDENT and when i run migrataion no migration applied but when from admin i tried to browse student i got following errorOperationalError at /admin/app/student/
no such table: app_student
Request Method: GET Request URL: http://127.0.0.1:8000/admin/ app/student/ Django Version: 1.9.2 Exception Type: OperationalError Exception Value: no such table: app_studentException Location: C:\Users\nauman malik\Google Drive\feedbacknew\feedbacknew\ env\lib\site-packages\django\ db\backends\sqlite3\base.py in execute, line 323 Python Executable: C:\Users\nauman malik\Google Drive\feedbacknew\feedbacknew\ env\Scripts\python.exe Python Version: 2.7.10 Python Path: ['C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\feedbacknew', 'C:\\Windows\\SYSTEM32\\ python27.zip', 'C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\ feedbacknew\\env\\DLLs', 'C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\ feedbacknew\\env\\lib', 'C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\ feedbacknew\\env\\lib\\plat- win', 'C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\ feedbacknew\\env\\lib\\lib-tk' , 'C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\ feedbacknew\\env\\Scripts', 'C:\\Python27\\Lib', 'C:\\Python27\\DLLs', 'C:\\Python27\\Lib\\lib-tk', 'C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\ feedbacknew\\env', 'C:\\Users\\nauman malik\\Google Drive\\feedbacknew\\ feedbacknew\\env\\lib\\site- packages']
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a344e7e4-8ca4-4211-90ae-7b7a04922d41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment