Comments (3)
I resolved the problem and got everything running successfully by first removing the generated database file $ rm example.sqlite
Then I tackled the source of the problem, which is clearly the migration phase. I removed the existing migrations in the api app.
$ rm -rf example/api/migrations
The last two commands assume that you are on the root of the cloned project.
After this the "Setup Database" step will run successfully and the project can be started.
from django-api-rest-and-angular.
I updated the migrations, let me know if this problem persists and I'll reopen.
from django-api-rest-and-angular.
I am getting the following errors when I run the make create_database; make make_fixtures command.
Please help..
(venv)rabiaiftikhar@rabiaiftikhar:~/Code/django-api-rest-and-angular$ make create_database; make make_fixtures
./manage.py syncdb --noinput
Traceback (most recent call last):
File "./manage.py", line 8, in
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
make: *** [create_database] Error 1
./manage.py create_users
Traceback (most recent call last):
File "./manage.py", line 8, in
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
make: *** [make_fixtures] Error 1
from django-api-rest-and-angular.
Related Issues (20)
- Problem executing step 5: make create_database HOT 3
- AssertionError: `HyperlinkedIdentityField` requires the request in the serializer context. HOT 5
- AssertionError: `HyperlinkedIdentityField` requires the request in the serializer context, again HOT 3
- Initial migration failing HOT 1
- TemplateDoesNotExist for site-packages HOT 1
- Update installation instruction for libjpeg8-dev HOT 1
- error in rest_framework.PostList when requesting basic ajax example HOT 2
- Clean install none of the examples working HOT 3
- Need some more help HOT 1
- "POST /api/posts HTTP/1.1" 403 58 HOT 1
- errorin setup all environment
- errorin setup all environment HOT 3
- django HOT 2
- cant run HOT 1
- It works!
- All static/ are not found HOT 1
- Photo upload HOT 1
- TemplateDoesNotExist at /admin HOT 2
- incompatible django_rest_framework version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-api-rest-and-angular.