sametmax / django-quicky Goto Github PK
View Code? Open in Web Editor NEWA collection of toys to skip the forplay with Django and go straight to the point: url and view decorators.
A collection of toys to skip the forplay with Django and go straight to the point: url and view decorators.
How exactly is this supposed to be used in urls.py?
======================================================================
ERROR: test_gain_access_token (mcr.apps.social_auth.tests.test_grant.TestFacebookAuth)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/antonagestam/.virtualenvs/mcr-api/mcr/apps/social_auth/tests/test_grant.py", line 117, in test_gain_access_token
response = self.hit(self.endpoint, data)
File "/Users/antonagestam/.virtualenvs/mcr-api/mcr/apps/social_auth/tests/test_grant.py", line 81, in hit
return self._hit_mocked(*args, **kwargs)
File "/Users/antonagestam/.virtualenvs/mcr-api/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/Users/antonagestam/.virtualenvs/mcr-api/mcr/apps/social_auth/tests/test_grant.py", line 105, in _hit_mocked
return super(TestFacebookAuth, self)._hit(endpoint, data=data)
File "/Users/antonagestam/.virtualenvs/mcr-api/mcr/apps/social_auth/tests/test_grant.py", line 74, in _hit
return TestClient().post(*args, **kwargs)
File "/Users/antonagestam/.virtualenvs/mcr-api/src/django/django/test/client.py", line 479, in post
secure=secure, **extra)
File "/Users/antonagestam/.virtualenvs/mcr-api/src/django/django/test/client.py", line 294, in post
secure=secure, **extra)
File "/Users/antonagestam/.virtualenvs/mcr-api/src/django/django/test/client.py", line 355, in generic
return self.request(**r)
File "/Users/antonagestam/.virtualenvs/mcr-api/src/django/django/test/client.py", line 437, in request
six.reraise(*exc_info)
File "/Users/antonagestam/.virtualenvs/mcr-api/src/django/django/core/handlers/base.py", line 89, in get_response
response = middleware_method(request)
File "/Users/antonagestam/.virtualenvs/mcr-api/lib/python2.7/site-packages/django_quicky/middleware.py", line 61, in process_request
prefix = protocol + '://' + request.META['HTTP_HOST']
KeyError: 'HTTP_HOST'
And the extra context should accept callable
in the existing build 0.4.5 there is still the syntax error :
File "..../lib/python2.6/site-packages/django_quicky/namegen/namegen.py", line 6
self._names = {i : name.strip() for i, name in enumerate(names)}
^
SyntaxError: invalid syntax
and when I open the namegen.py it does not look like to the source on your repo ... packaging problem ?
Returning a form should be intercepted, and it should automatically return JSON with weither the form is valid or not, and errors.
If the form is unbound, it should raise an error
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.