Beispiel #1
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin

from djradicale.views import DjRadicaleView, WellKnownView


admin.autodiscover()


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^' + settings.DJRADICALE_CONFIG['server']['base_prefix'].lstrip('/'),
        include('djradicale.urls', namespace='djradicale')),

    # .well-known external implementation
    url(r'^\.well-known/(?P<type>(caldav|carddav))$',
        WellKnownView.as_view(), name='djradicale_well-known'),

    # .well-known internal (radicale) implementation
    # url(r'^\.well-known/(?P<type>(caldav|carddav))$',
    #     DjRadicaleView.as_view(), name='djradicale_well-known'),
]
Beispiel #2
0
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin

from djradicale.views import DjRadicaleView, WellKnownView

admin.autodiscover()

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^' + settings.DJRADICALE_CONFIG['server']['base_prefix'].lstrip('/'),
        include(('djradicale.urls', 'djradicale'))),

    # .well-known external implementation
    url(r'^\.well-known/(?P<type>(caldav|carddav))$',
        WellKnownView.as_view(),
        name='djradicale_well-known'),

    # .well-known internal (radicale) implementation
    # url(r'^\.well-known/(?P<type>(caldav|carddav))$',
    #     DjRadicaleView.as_view(), name='djradicale_well-known'),
]
Beispiel #3
0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

from django.conf import settings
from django.urls import include, path
from django.contrib import admin

from djradicale.views import DjRadicaleView, WellKnownView

admin.autodiscover()

urlpatterns = [
    path('admin/', admin.site.urls),
    path(
        '' + settings.DJRADICALE_PREFIX.lstrip('/'),
        include(('djradicale.urls', 'djradicale-caldav'),
                namespace='djradicale')),
    path('.well-known/caldav',
         WellKnownView.as_view(type='caldav'),
         name='well-known-caldav'),
    path('.well-known/carddav',
         WellKnownView.as_view(type='carddav'),
         name='well-known-carddav'),
]