"""crmapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url from marketing.views import HomePage from django.contrib import admin urlpatterns = [ url(r'^$', HomePage.as_view(), name="home"), # url(r'^admin/', admin.site.urls), ]
admin.autodiscover() from marketing.views import HomePage from accounts.views import AccountList from accounts.urls import account_urls from contacts.views import ContactDelete from contacts.urls import contact_urls from communications.views import CommDelete from communications.urls import comm_urls urlpatterns = patterns( '', # Marketing pages url(r'^$', HomePage.as_view(), name='home'), # Subscriber related URLs url(r'^signup/$', 'crmapp.subscribers.views.subscriber_new', name='sub_new'), # Admin URL url(r'^admin/', include(admin.site.urls)), # Login/Logout URLs url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}), url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/login/'}),
from django.conf.urls import patterns, include, url from django.contrib import admin from marketing.views import HomePage from accounts.views import AccountList from accounts.urls import account_urls from contacts.urls import contact_urls from contacts.views import ContactDelete from communications.urls import comm_urls from communications.views import CommDelete urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^$', HomePage.as_view(), name="home"), url(r'^signup/$', 'brankocrm.subscribers.views.subscriber_new', name='sub_new'), url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}), url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/login/'}), url(r'^account/new/$', 'brankocrm.accounts.views.account_cru', name='account_new'), url(r'^account/list/$', AccountList.as_view(), name='account_list'), url(r'^account/(?P<uuid>[\w-]+)/', include(account_urls)), url(r'^contact/new/$', 'brankocrm.contacts.views.contact_cru', name='contact_new'), url(r'^contact/(?P<uuid>[\w-]+)/', include(contact_urls)), url(r'^contact/(?P<pk>[\w-]+)/delete/$',ContactDelete.as_view(), name='contact_delete'), url(r'^comm/new/$', 'brankocrm.communications.views.comm_cru', name='comm_new'), url(r'^comm/(?P<uuid>[\w-]+)/', include(comm_urls)), url(r'^comm/(?P<pk>[\w-]+)/delete/$', CommDelete.as_view(), name='comm_delete'), )
"""crmapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from marketing.views import HomePage urlpatterns = [ # Marketing Pages path('', HomePage.as_view(), name="home"), path('admin/', admin.site.urls), #path('contact-us/(?P<lang>[\w-]+)/',ContactUs.as_view()), ]
from django.contrib import admin admin.autodiscover() from marketing.views import HomePage from accounts.views import AccountList from accounts.urls import account_urls from contacts.views import ContactDelete from contacts.urls import contact_urls from communications.views import CommDelete from communications.urls import comm_urls urlpatterns = patterns('', # Marketing pages url(r'^$', HomePage.as_view(), name = 'home'), # Subscriber related URLs url(r'^signup/$', 'crmapp.subscribers.views.subscriber_new', name = 'sub_new'), # Admin URL url(r'^admin/', include(admin.site.urls)), # Login/Logout URLs url(r'^login/$', 'django.contrib.auth.views.login', {'template_name' : 'login.html'}), url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page' : '/login/'}), # Account related URLs url(r'^account/new/$', 'crmapp.accounts.views.account_cru', name = 'account_new'), url(r'^account/list/$', AccountList.as_view(), name = 'account_list'), url(r'^account/(?P<uuid>[\w-]+)/', include(account_urls)),
from marketing.views import HomePage from accounts.views import AccountList from accounts.urls import account_urls from contacts.urls import contact_urls from communications.urls import comm_urls from communications.views import CommDelete admin.autodiscover() urlpatterns = patterns( "", url(r"^admin/", include(admin.site.urls)), # Marketing pages url(r"^$", HomePage.as_view(), name="home"), # Subscriber related URLs url(r"^signup/$", "subscribers.views.subscriber_new", name="sub_new"), # Admin URL (r"^admin/", include(admin.site.urls)), # Login/Logout URLs (r"^login/$", "django.contrib.auth.views.login", {"template_name": "login.html"}), (r"^logout/$", "django.contrib.auth.views.logout", {"next_page": "/login/"}), # Account related URLs url(r"^account/new/$", "crmapp.accounts.views.account_cru", name="account_new"), url(r"^account/list/$", AccountList.as_view(), name="account_list"), url(r"^account/(?P<uuid>[\w-]+)/", include(account_urls)), # Contact related URLS url(r"^contact/new/$", "crmapp.contacts.views.contact_cru", name="contact_new"), url(r"^contact/(?P<uuid>[\w-]+)/", include(contact_urls)), # Communication related URLs