| |
@@ -4,11 +4,17 @@
|
| |
from django.conf import settings
|
| |
from django.conf.urls import include, url
|
| |
from django.contrib import admin
|
| |
+ from django.conf.urls.static import static
|
| |
|
| |
urlpatterns = [
|
| |
url(r'^oidc/', include('mozilla_django_oidc.urls')),
|
| |
url(r'^', include('happinesspackets.messaging.urls', namespace="messaging")),
|
| |
]
|
| |
+ if settings.DEBUG:
|
| |
+ import debug_toolbar
|
| |
+ urlpatterns += [
|
| |
+ url(r'^__debug__/', include(debug_toolbar.urls)),
|
| |
+ ]
|
| |
|
| |
if settings.ADMIN_ENABLED or settings.DEBUG:
|
| |
urlpatterns.append(url(r'^drunken-octo-lama/', include(admin.site.urls)))
|
| |
Removed one of the duplicate of send me happiness buttons. this change would prettify the user interface giving the user the needed experience to use the webapp. While the two had urls, one of them was lacking logic behind which the url can return the request needed hence the removal.
@jflory7 as you have also said ,I have sent this change also to the upstream project, mxsasha/happinesspackets. with screenshot of the images. To be a considerate downstream project, If upstream accepts it, we can apply the patch downstream to our project.
@jflory7 @jonatoni kindly review it. am still working on other issues related to the emails being not sent. Kindly if you have questions about this PR. You can contact me through my email feisalibrahim19@gmail.com