Coder Social home page Coder Social logo

visgean / urljects Goto Github PK

View Code? Open in Web Editor NEW
55.0 7.0 7.0 102 KB

Deprecated! (Django routing without urls.py files, inspired by Flask.)

Home Page: https://urljects.readthedocs.org

License: BSD 3-Clause "New" or "Revised" License

Makefile 8.87% Python 91.13%
django extensions urls router

urljects's Issues

i18n urls handling

Currently patterns translated using ugetext_lazy will cause exceptions.

implement url polymorfism

e.g.: multiple urls per class / function. It makes sense to implement this only for class based views.

urljects.views_include method

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...

Cannot use U / ''

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.