ShaneTracey7 / tweeter

0 stars 0 forks source link

add angular front-end to django back-end #31

Closed ShaneTracey7 closed 5 months ago

ShaneTracey7 commented 6 months ago

references: https://medium.com/swlh/django-angular-4-a-powerful-web-application-60b6fb39ef34

https://www.django-rest-framework.org

https://www.youtube.com/watch?v=CUeR1j2ToGk

https://www.twilio.com/en-us/blog/build-progressive-web-application-django-angular-part-1-backend-api

https://www.youtube.com/watch?v=cJveiktaOSQ (for just django rest api)

https://www.tutussfunny.com/python-django-angular-full-stack-project/?expand_article=1 (newest tutorial attempt)

ShaneTracey7 commented 5 months ago

python and django versions are supported for rest framework

ShaneTracey7 commented 5 months ago

ran makemigrations and migrate (didn't solve it)

ShaneTracey7 commented 5 months ago

copy and pasted python exec file that was installed globally, into the spot in virtual env where the alias was. Solved the import issue with rest-framework

ShaneTracey7 commented 5 months ago

figured out why content urls are giving server error (500), wasn't included in main URLs file

ShaneTracey7 commented 5 months ago

I need to populate SQLite database to see if that's the reason for server (500) error

update: didn't solve it

ShaneTracey7 commented 5 months ago

worked on it all day tuesday, no real progress

ShaneTracey7 commented 5 months ago

made minimal changes, used postman app to track my HTTP requests ('get', 'post', 'put', 'delete' )then ran django and angular server's at the same time by using '&' after ng server or python3 manage.py runserver to force command to the background of terminal, so i could run the other one.