Comments (12)
I think the documentation about "Running the demo" should mention pip install -e .
.
Also, I think pyquery
is missing from the example's requirements.
Then, there is 1 failing test and 2 warnings :
(djng) ~/projects/django-angular/examples:master ★ ./manage.py test 12:21:28
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.........................../home/adrien/projects/django-angular/djng/sekizai_processors.py:27: UserWarning: This postprocessor is deprecated. Read on how to resolve AngularJS dependencies using `{% with_data "ng-config" ... %}`
warnings.warn("This postprocessor is deprecated. Read on how to resolve AngularJS dependencies using `{% with_data \"ng-config\" ... %}`")
./home/adrien/projects/django-angular/djng/sekizai_processors.py:20: UserWarning: This postprocessor is deprecated. Read on how to resolve AngularJS dependencies using `{% with_data "ng-requires" ... %}`
warnings.warn("This postprocessor is deprecated. Read on how to resolve AngularJS dependencies using `{% with_data \"ng-requires\" ... %}`")
..............................E...........
======================================================================
ERROR: test_radio_field (server.tests.test_validation_forms.NgFormValidationMixinTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/adrien/projects/django-angular/examples/server/tests/test_validation_forms.py", line 100, in test_radio_field
self.assertEquals(label.text.strip(), "Female")
AttributeError: 'NoneType' object has no attribute 'text'
----------------------------------------------------------------------
Ran 70 tests in 0.993s
FAILED (errors=1)
Destroying test database for alias 'default'..
from django-angular.
We could also add the step:
npm install
in "Running the demo"
from django-angular.
Thanks @adrienbrunet
I'll check why we have a deviation here. On Travis everything seems to work.
from django-angular.
./manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.........................
- This field is required.
- Enter a valid email address.
Ran 70 tests in 1.314s
FAILED (errors=1)
Destroying test database for alias 'default'...
from django-angular.
OK. Changed the docs to invoke py.test
or tox
.
So, @maltitco from your point of view everything is OK for releasing version 2.0?
from django-angular.
@jrief I found first issue
And still testing...
from django-angular.
second issue with Ajax button nothing happen.
@jrief more bugs I did not find, you will only have to add the information wrote @adrienbrunet to the documentation.
from django-angular.
The first issue is solved.
I presume that the second one, is not a real issue. Could you please retry locally and check if you see an error message above. Remember that the combination "John Doe" is rejected.
If that's the case, I agree however that it's not the best user experience. Then I have to rethink how to improve it.
@maltitco Thanks anyway and please retry.
from django-angular.
@maltitco I have found a solution for the second problem, provided it is the problem I assumed.
Check the branch releases/2.0.x
from django-angular.
@jrief in /model_scope/ form Submit via Ajax don't work:
She same is in combined_validation in console TypeError: the JSON object must be str, not 'bytes'
- File upload
- you can do drag and drop other file than pdf.
- after deleting files are not deleted from the folder
- send button does nothing
from django-angular.
@maltitco About File upload
- D&D files other than PDF: This is an issue of https://angular-file-upload.appspot.com/ – unless I misunderstood their docs, I can't really prevent this.
- these files are uploaded into a temporary folder, which must be cleaned from time to time anyway.
- What do you mean with that? For me the Submit button works perfectly.
from django-angular.
On my local:
model_scope Submit via Ajax:
File "/Users/malt/test/django-angular-46d159564f34da7f6c8b0c46e1f0176008864cfd/examples/server/views/model_scope.py", line 22, in ajax
request_data = json.loads(request.body)
File "/Users/malt/.pyenv/versions/3.5.4/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
[2017-11-16 12:46:45,878 basehttp] ERROR: "PUT /model_scope/ HTTP/1.1" 500 13806
When it comes to uploading files it was missing npm install ng-file-upload.
from django-angular.
Related Issues (20)
- Issue in Client-Side Form Validation HOT 3
- ChoiceFieldRenderer not available in Django 2.x HOT 2
- Django 2.x - No module named 'django.core.urlresolvers' HOT 5
- 'unicode' object has no attribute 'url' HOT 3
- Ajax Validation unique fields. HOT 2
- Ajax Validation ImageField. Possibly bug? HOT 1
- Client side error, rmi-function is not a function HOT 1
- Automatically generated form names broken in Python 3 HOT 4
- Trouble integrating into django-cookiecutter project HOT 3
- How to create nested formsets
- angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module djangular-demo due to: HOT 2
- How to create new django-project?
- Dockerfile references a non existent image HOT 1
- AngularJS client form validation ignores model RegexValidator HOT 2
- Override Minimum Length Error Message CharField Forms
- from dJango.http import HttpResponse ModuleNotFoundError: No module named 'dJango'
- Django 3.0 Error: ImportError raised when trying to load 'djng.templatetags.djng_tags': cannot import name 'six' HOT 4
- module 'django.forms.forms' has no attribute 'BoundField' HOT 10
- Tag 2.3.1 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-angular.