Re: Challenge teaching Django to beginners: urls.py

2016-09-29 Thread Alexandr Shurigin
Hi all, I already solved the problem for hard urls writing/reading. Please take a look, maybe you are interested in it :) https://github.com/phpdude/django-macros-url It provides simple & clear way to build your strong urls patterns. Example from project page is attached urlpatterns =

Re: Don't understand regex-urls and DetailView...

2015-03-11 Thread Alexandr Shurigin
Use Macros Urls and forget about this type problems :) http://phpdude.github.io/django-macros-url/ --  Alexandr Shurigin Sent with Airmail Включено 11 марта 2015 г. в 23:30:03, Shai Berger (s...@platonix.com) написал: On Wednesday 11 March 2015 22:56:15 inoyon artlover KLANGRAUSCH wrote

Re: Extending the URL Dispatcher (GSoC 2015 proposal)

2015-03-11 Thread Alexandr Shurigin
Hi all. You can take a look of http://phpdude.github.io/django-macros-url/.  --  Alexandr Shurigin Sent with Airmail Включено 11 марта 2015 г. в 16:57:25, Marten Kenbeek (marten.k...@gmail.com) написал: I came across an app named django-url-namespaces[1]. It provides support for declarative

Re: no relationship between session and user model

2014-06-19 Thread Alexandr Shurigin
Take a look for https://pypi.python.org/pypi/django-user-sessions please. Looks like what you need. --  Alexandr Shurigin From: Shurigin Alexandr alexandr.shuri...@gmail.com Reply: Shurigin Alexandr alexandr.shuri...@gmail.com Date: 20 июня 2014 г. at 0:18:03 To: django-developers

Re: no relationship between session and user model

2014-06-19 Thread Alexandr Shurigin
). This is application level feature, not framework. I think you can simple implement your session database backend with this feature (don’t forget on user login/logout change user_id) included and share for community if nobody did it already :) --  Alexandr Shurigin From: Ulupov (Vaal) Vladimir

Re: no relationship between session and user model

2014-06-19 Thread Alexandr Shurigin
of http protocol only, not user level. This relation is not possible out of the box if we want to have highly customizable framework :) Don’t worry, my english is ugly too ;) --  Alexandr Shurigin From: Vaal vaal...@gmail.com Reply: django-developers@googlegroups.com django-developers

Re: implementing a ticket submission system

2014-06-11 Thread Alexandr Shurigin
I think you need to ask this question in django-users group. This group is for core features and bugs discussions. --  Alexandr Shurigin From: Baidyanath Anurag anurag.fa...@gmail.com Reply: django-developers@googlegroups.com django-developers@googlegroups.com Date: 12 июня 2014 г. at 1:09:54

Re: Make url patterns group kwargs more simple

2014-06-03 Thread Alexandr Shurigin
I make mistake, i have context of url settings. Added support for include function. Now it works right way, add dollar sign to end of pattern only if real view was passed. If was passed include tag, then it doesnot add dollar sign. All works cool and pretty clean! You must try it :) -- You

Re: Make url patterns group kwargs more simple

2014-06-02 Thread Alexandr Shurigin
really? this is my fault :) i forget about this. need to fix this in lib:) But if implement same style route classes in core, there we have context - is view or included and make choose about ending $ automatically. --  Alexandr Shurigin From: Augustin Aymeric aymeric.augustin.2

Re: Make url patterns group kwargs more simple

2014-06-02 Thread Alexandr Shurigin
think anyway. Moayad On 2 Jun 2014 12:36, "Alexandr Shurigin" <alexandr.shuri...@gmail.com> wrote: Hi! Thank you for review. Yes i think this would be awesome feature for beginners out of the box. Also if add it into core, need to think a way to write ‘old-style’ clean regex

Re: Make url patterns group kwargs more simple

2014-06-02 Thread Alexandr Shurigin
slug, :user_id, :post_slug, :post_id, etc. This will make urls very clean and very strong to misspells. This feature can be managed by settings value for example named URL_MACRO_ALLOW_SHORT = False by default. --  Alexandr Shurigin From: Mardini Moayad moaya...@gmail.com Reply: django-develo

Re: Make url patterns group kwargs more simple

2014-05-31 Thread Alexandr Shurigin
be in core, what you think? Thanks --  Alexandr Shurigin From: Shurigin Alexandr alexandr.shuri...@gmail.com Reply: Shurigin Alexandr alexandr.shuri...@gmail.com Date: 29 мая 2014 г. at 3:07:17 To: django-developers@googlegroups.com django-developers@googlegroups.com Subject:  Re: Make url patterns

Re: Make url patterns group kwargs more simple

2014-05-28 Thread Alexandr Shurigin
happy Urls doesn’t look simpler, just splitter configuration to parts .. This doesn’t make urls more readable i think. Sometimes this way is good, but not always. --  Alexandr Shurigin From: Tamlyn Marc marc.tam...@gmail.com Reply: django-developers@googlegroups.com django-developers

Re: Make url patterns group kwargs more simple

2014-05-28 Thread Alexandr Shurigin
How many functions for now url api requires? I know about resolve view by path and reverse url to path by namespace, name and params. I forgot something else? --  Alexandr Shurigin From: Kaplan-Moss Jacob ja...@jacobian.org Reply: django-developers@googlegroups.com django-developers

Re: Make url patterns group kwargs more simple

2014-05-28 Thread Alexandr Shurigin
ions i think is little bit hard for some part of django users, because regexp is not simple for some developers. If allow users use url predefined patterns out of the box users will appreciate it  i think. --  Alexandr Shurigin From: Bleier Sean seble...@gmail.com Reply: django-deve

Re: Make url patterns group kwargs more simple

2014-05-28 Thread Alexandr Shurigin
with supporting this feature and will try to publish it anywhere available to community. Maybe people will like it :) For me this feature looks very usable. Sorry for my english. Not native language. --  Alexandr Shurigin From: Berger Shai s...@platonix.com Reply: django-developers

Make url patterns group kwargs more simple

2014-05-28 Thread Alexandr Shurigin
types of masks (id like - [0-9]+, slug like - [a-z0-9]+, year [0-9]{4}, month [0-9]{2}, day [0-9]{2}). But of course user can combine url shortcuts with their custom regexps. --  Alexandr Shurigin -- You received this message because you are subscribed to the Google Groups "Django devel