ubuntu-accomplishments-contributors team mailing list archive
-
ubuntu-accomplishments-contributors team
-
Mailing list archive
-
Message #00245
Re: List of urls in the web application
Janos, checkot these two lines in urls.py:
url(r'^$', include('gallery.urls')),
url(r'^gallery/', include('gallery.urls')),
They are importing the whole gallery urls in both / and /gallery
Maybe it should be something like:
url(r'^$', gallery.views.Opportunity.as_view()),
url(r'^gallery/', include('gallery.urls')),
I'm not sure if there's some kind of redirection at this level.
2012/6/15 Janos Gyerik <info@xxxxxxxxxxx>
> > We have duplicated urls in the / and /gallery namespaces
>
> Erm, not really. / is "aliasing" /gallery/. The list of urls to implement:
>
> So the list of urls:
>
> - All opportunities view
> - / -->
> - /gallery
> - /gallery/opportunities/
> - Opportunity detail (in progress)
> - /gallery/opportunities/<collection_id>/<accomplishment_id>
> - All User's trophies
> - /gallery/trophies/<username>/
> - /gallery/trophies/<username>/all/
> - Latests User's trophies
> - /gallery/trophies/<username>/latest/
> - User's trophies by collection
> - /gallery/trophies/<username>/collection/<collection_id>/
> - Private user methods (requires logged user)
> - /user/profile
> - /user/addshare
>
> In Trello I probably omitted the "/gallery/" prefix everywhere. That's
> just pure laziness. All the gallery.views should be accessed via
> /gallery/something/
> The "alias" of / to /gallery/ is just for convenience.
>
> > I'm confused about the terms opportunity vs accomplishment
>
> You're right. The Opportunities tab should work exactly like the desktop
> app does. I don't remember so I have to check again. In any case, I did not
> really plan yet how to implement locked / unlocked accomplishments. I'm not
> sure if this page can show all accomplishments and just change the icon
> depending on the locked / unlocked state. So ideas here are definitely
> welcome.
>
> Cheers,
> Janos
>
>
> On Fri, Jun 15, 2012 at 5:14 PM, Gabriel <gepatino@xxxxxxxxx> wrote:
>
>> I think there are a couple of things to define:
>>
>> - We have duplicated urls in the / and /gallery namespaces
>> - I'm confused about the terms opportunity vs accomplishment
>> - are opportunities related to a user? (ie, we only show the
>> accomplishments the user is able to earn, locked/unlocked)
>> - if not, shouldn't they be called accomplishments?
>>
>>
>> The list of urls:
>>
>> - All opportunities view
>> - /
>> - /gallery
>> - /opportunities/
>> - /gallery/opportunities/
>> - Opportunity detail (in progress)
>> - /opportunities/<collection_id>/<accomplishment_id>
>> - /gallery/opportunities/<collection_id>/<accomplishment_id>
>> - All User's trophies
>> - /trophies/<username>/
>> - /trophies/<username>/all/
>> - /gallery/trophies/<username>/
>> - /gallery/trophies/<username>/all/
>> - Latests User's trophies
>> - /trophies/<username>/latest/
>> - /gallery/trophies/<username>/latest/
>> - User's trophies by collection
>> - /trophies/<username>/collection/<collection_id>/
>> - /gallery/trophies/<username>/collection/<collection_id>/
>> - Private user methods (requires logged user)
>> - /user/profile
>> - /user/addshare
>>
>>
>>
>>
>> --
>> Gabriel E. Patiño
>> http://about.me/gepatino
>>
>>
>> --
>> Mailing list: https://launchpad.net/~ubuntu-accomplishments-contributors
>> Post to : ubuntu-accomplishments-contributors@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ubuntu-accomplishments-contributors
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Janos Gyerik
> http://titan2x.com/
>
>
--
Gabriel E. Patiño
http://about.me/gepatino
Follow ups
References