kasulani / drf_tutorial Goto Github PK
View Code? Open in Web Editor NEWThis is a simple API for a music service that i developed for my tutorial on DRF
This is a simple API for a music service that i developed for my tutorial on DRF
Thanks for the nice tutorial and the demo repo.
The mkdir for nginx failed and the add /static failed as well.
the mkdir issue was resolved by following this link ( -p to be added before the path )
https://stackoverflow.com/questions/30741995/cannot-execute-run-mkdir-in-a-dockerfile
the Dockerfile of nginx fails to add static, as its in the parent directory. To make it work, i copied the static folder from the parent folder into the nginx directory. The nginx dockerfile doesnt has permission to read the files of the parent dir.
I have posting the issues, in case anyone faces it as well.
By the way, I tried fixing the bad 400 request, by adding * and localhost address to the settings.py and rebuilding again. it still did not work.
Hi Kasulani,
First of all thanks for your tutorial, it realy helps me understanding some facets of DRF !
I followed all the steps you describe on the readme file to run your application but I can't register.
I get the following error :
AssertionError at /api/v1/auth/register/
'RegisterUsers' should either include a
serializer_class
attribute, or override theget_serializer_class()
method.Request Method: | GET
Request URL: | http://localhost:8000/api/v1/auth/register/
Django Version: | 2.0.3
Please add instructions to run the app using docker
After downloading the project and followed all steps described in readme, I try to acces from browser to
http://127.0.0.1:8000/api/v1/songs/
http://127.0.0.1:8000/api/v1/songs/2/
http://127.0.0.1:8000/api/v1/auth/login/
http://127.0.0.1:8000/api/v1/auth/register/
and I get Bad Request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.