Extension should define urls in urls.py file
Bug #1569244 reported by
Sylwester Brzeczkowski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Low
|
Fuel Sustaining |
Bug Description
To reduce the mess in main extension file, we should move urls definitions (patterns + class) to urls.py
To do this we should introduce new method in BaseExtension class which will look for url patterns in 'urls.py' file and set the 'url' class variable.
The example of the mess: https:/
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: area-python |
Changed in fuel: | |
assignee: | Fuel Python (Deprecated) (fuel-python) → Fuel Sustaining (fuel-sustaining-team) |
To post a comment you must log in.
>> will look for url patterns in 'urls.py' file and set the 'url' class variable.
I would not implement this kind of magic and would leave it up to the developer, to import module and explicitly assign it to extension class urls parameter.
But I would be interested to see what other engineers think about it.