pselle / django-rest-angular2-example Goto Github PK
View Code? Open in Web Editor NEWA simple example of a Django REST app + Angular2
License: MIT License
A simple example of a Django REST app + Angular2
License: MIT License
Thanks for the help.
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'angular/platform-browser-dynamic' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'angular2-djangocon-2016'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/ronald/PycharmProjects/xample/angular2
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ronald/PycharmProjects/xample/angular2/npm-debug.log
npm ERR! not ok code 0
Please update with csrf integration when backend and frontend running on different ports how to get the cookie
Hi,
Is that possible, you create some basic unit tests for angular2?
I specifically opened your project to see how to do the csrf bits properly from angular2 to django. Alas there are no such bits here. Would you please add some when you get a chance? It would be helpful to many.
File "C:\Users\Admin\Downloads\django-rest-angular2-example\exampleapp\exampleapp\urls.py", line 16, in
from django.conf.urls import url, include
ImportError: cannot import name 'url' from 'django.conf.urls' (C:\Python310\lib\site-packages\django\conf\urls_init_.py)
Not seeing any explaination on how to do this project with Production of course with developement no problem but as for production not seeing any solution i currently am trying to get this to work with Production but have run into a problem with getting it to work .
Wanted to see if anyone else has had the same issue I am using pythonanywhere.com and seems to work with the api but when i am trying to use the Angular side not geting anything to show.
Could you please update it to work with the production side. thanks
This will also help it be more easily deployed, ex. to S3, for those that want to do this.
https://angular.io/docs/ts/latest/guide/webpack.html#!#configure-webpack
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.