visgean / urljects Goto Github PK
View Code? Open in Web Editor NEWDeprecated! (Django routing without urls.py files, inspired by Flask.)
Home Page: https://urljects.readthedocs.org
License: BSD 3-Clause "New" or "Revised" License
Deprecated! (Django routing without urls.py files, inspired by Flask.)
Home Page: https://urljects.readthedocs.org
License: BSD 3-Clause "New" or "Revised" License
Currently patterns translated using ugetext_lazy will cause exceptions.
there should be only one magical object and self.ends should be detected in url()
thin wrapper around https://github.com/django/django/blob/master/django/conf/urls/__init__.py#L96 that resolves View.as_view...
e.g.: multiple urls per class / function. It makes sense to implement this only for class based views.
From https://urljects.readthedocs.org/en/latest/usage.html:
Under URLjects there are three main ways of urls. You should stick to one and avoid mixing them.
Something like this:
from urljects import url, view_include, I
url(I / 'eshop', view_include(eshop.views)),
This would enable to define urls in decorators and classes...
It's currently impossible to use the U / ''
syntax:
>>> from urljects import U
>>> U / ''
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/miki/exp/pankow/lib/python3.4/site-packages/urljects/patterns.py", line 93, in __repr__
return self.get_value() or ''
File "/home/miki/exp/pankow/lib/python3.4/site-packages/urljects/patterns.py", line 68, in get_value
if value[0] != beginning:
IndexError: string index out of range
I was wondering, is this really necessary? An alternative would be to allow just U
.
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.