diff --git a/mentorup/config/urls.py b/mentorup/config/urls.py index 7499f4e..a06953d 100644 --- a/mentorup/config/urls.py +++ b/mentorup/config/urls.py @@ -6,6 +6,16 @@ from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView +# Import postman URL requirements for customization +from django.views.generic.base import RedirectView + +from postman import OPTIONS +from postman.views import (InboxView, SentView, ArchivesView, TrashView, + WriteView, ReplyView, MessageView, ConversationView, + ArchiveView, DeleteView, UndeleteView) + +from users.views import sender_profile_required + # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() @@ -30,7 +40,22 @@ url(r'^avatar/', include('avatar.urls')), # Your stuff: custom urls go here - url(r'^messages/', include('postman.urls')), + # url(r'^messages/', include('postman.urls')), # URL pattern for select2's AJAX Support ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + +urlpatterns += patterns('postman.views', + url(r'^messages/inbox/(?:(?P