bethlakshmi / GBE2

Great Burlesque Expo (www.burlesque-expo.com) system in django
2 stars 2 forks source link

reverse not redirecting to /scheduler urls #148

Closed jonkiparsky closed 10 years ago

jonkiparsky commented 10 years ago

Trying to link to /scheduler/details/(d+) and I'm getting /details/(d+) instead. See scheduler/views.py, in get_events_display_info():

'detail': reverse('detail_view', urlconf='scheduler.urls', args = [entry['eventitem'].eventitem_id])

This sends me to, for example http://localhost:8000/details/2 instead of http://localhost:8000/scheduler/details/2 @BenignCremator, @bethlakshmi - any ideas?

bethlakshmi commented 10 years ago

I had exactly this problem in testing some ticketing stuff recently - I ended up finding that how the name space is referenced in "expo/urls.py" doesn't translate to the namespaced url in "expo//urls.py" - my answer sadly was to move the /ticketing reference to the ticketing/urls.py as part of this commit:

https://github.com/bethlakshmi/GBE2/commit/f7d5b86a1228224689088dfd78fdfc9bb48a5b66

it's ugly but it worked.

jonkiparsky commented 10 years ago

How very sad that makes me. Okay, I'll try that.

On Thu, Oct 23, 2014 at 8:55 PM, bethlakshmi notifications@github.com wrote:

I had exactly this problem in testing some ticketing stuff recently - I ended up finding that how the name space is referenced in "expo/urls.py" doesn't translate to the namespaced url in "expo//urls.py" - my answer sadly was to move the /ticketing reference to the ticketing/urls.py as part of this commit:

f7d5b86 https://github.com/bethlakshmi/GBE2/commit/f7d5b86a1228224689088dfd78fdfc9bb48a5b66

— Reply to this email directly or view it on GitHub https://github.com/bethlakshmi/GBE2/issues/148#issuecomment-60331443.

bethlakshmi commented 10 years ago

I hear ya. I was sad for like 3 hours. Then I was happy to go to bed. :(

I still think I'm missing something, but I ended up with what worked.

On Thu, Oct 23, 2014 at 9:26 PM, Jon Kiparsky notifications@github.com wrote:

Closed #148 https://github.com/bethlakshmi/GBE2/issues/148 via 313fa73 https://github.com/bethlakshmi/GBE2/commit/313fa736144c5f1fa26b6768228144469b9639a5 .

— Reply to this email directly or view it on GitHub https://github.com/bethlakshmi/GBE2/issues/148#event-183071722.