Ejemplo n.º 1
0
    url(r'^blog/comments/', include('zinnia.urls.comments')),
    url(r'^blog/', include('zinnia.urls.entries')),
    url(r'^blog/', include('zinnia.urls.archives')),
    url(r'^blog/', include('zinnia.urls.shortlink')),
    url(r'^blog/', include('zinnia.urls.quick_entry'))
]


urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$','compareconstitutions.views.index'),
    url(r'^proceso/$','compareconstitutions.views.proceso'),
    url(r'^compareconstitutions$','compareconstitutions.views.compareconstitutions'),
    url(r'^busqueda_ajax/$','compareconstitutions.views.get_new_data'),
    url(r'^projects/$','compareconstitutions.views.projects'),
    url(r'^map/$','compareconstitutions.views.map'),
    url(r'^directory/$','compareconstitutions.views.directory'),
    url(r'^aboutus/$','compareconstitutions.views.aboutus'),
    url(r'^weblog/', include('zinnia.urls', namespace='zinnia')),
    url(r'^comments/', include('django_comments.urls')),
    #url(r'^', include(blog_urls, namespace='zinnia')),
    ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)


"""urlpatterns += patterns(
    'django.contrib.sitemaps.views',
    url(r'^sitemap.xml$', 'index',
        {'sitemaps': sitemaps}),
    url(r'^sitemap-(?P<section>.+)\.xml$', 'sitemap',
        {'sitemaps': sitemaps}),)
"""
Ejemplo n.º 2
0
from django.conf import settings
from django.conf.urls import include, patterns, static, url

from django.contrib import admin

admin.autodiscover()


urlpatterns = patterns(
    "",
    # Examples:
    # url(r'^$', '{{ project_name }}.views.home', name='home'),
    # url(r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
    url(r"^admin/doc/", include("django.contrib.admindocs.urls")),
    url(r"^admin/passwords/", include("{{ project_name }}.utils.password_urls")),
    url(r"^admin/", include(admin.site.urls)),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT, show_indexes=True)
Ejemplo n.º 3
0
"""Virtual URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/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, include
from django.contrib import admin
from django.conf.urls.static import *

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^accounts/', include('userena.urls')),
    url(r'^', include('Archive.urls')),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)



Ejemplo n.º 4
0
    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, include
from django.contrib import admin
from picture_sharing import views
from django.conf.urls import static
from final_project import settings
from django.contrib.auth import views as auth_views

urlpatterns = [
    url(r'^login/$', auth_views.login),
    url(r'^logout/$', auth_views.logout, {'next_page': '/'}),
    url('^', include('django.contrib.auth.urls')),
    url(r'^$', views.index),
    url(r'^popular', views.popular),
    url(r'^add', views.add),
    url(r'^private$', views.private),
    url(r'^delete/(\w+)', views.delete),
    url(r'^like', views.like),
    url(r'^admin', admin.site.urls),
    url(r'^(?P<key>\w+)$', views.show_image, name='image'),
]

if settings.DEBUG:
    from django.conf.urls.static import static
    urlpatterns += static(settings.MEDIA_URL,
                          document_root=settings.MEDIA_ROOT)
Ejemplo n.º 5
0
"""portfolio URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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 . import views
from django.conf.urls.static import *
from django.conf import settings
from django.urls import *

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', views.home),
    path('blog/', include('blog.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Ejemplo n.º 6
0
from koalixcrm.accounting.restinterface import AccountAsJSON, ProductCategoryAsJSON
from koalixcrm.crm.views.restinterface import TaskAsJSON, ContractAsJSON, TaskStatusAsJSON, CurrencyAsJSON, TaxAsJSON, \
    UnitAsJSON, ProductAsJSON, ProjectAsJSON

router = routers.DefaultRouter()
router.register(r'accounts', AccountAsJSON)
router.register(r'contracts', ContractAsJSON)
router.register(r'currencies', CurrencyAsJSON)
router.register(r'products', ProductAsJSON)
router.register(r'productCategories', ProductCategoryAsJSON)
router.register(r'project', ProjectAsJSON)
router.register(r'tasks', TaskAsJSON)
router.register(r'taskstatus', TaskStatusAsJSON)
router.register(r'taxes', TaxAsJSON)
router.register(r'units', UnitAsJSON)
router.register(r'units', UnitAsJSON)

admin.autodiscover()

urlpatterns = [
    url(r'^$', lambda _: redirect('admin:index'), name='index'),
    url(r'^', include(router.urls)),
    url(r'^admin/filebrowser/', include(site.urls)),
    url(r'^grappelli/', include('grappelli.urls')),  # grappelli URLS
    url(r'^koalixcrm/crm/reporting/', include(
        'koalixcrm.crm.reporting.urls')),  # koalixcrm crm reporting URLS
    url(r'^admin/', admin.site.urls),
    url(r'^api-auth/', include('rest_framework.urls')),
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Ejemplo n.º 7
0
The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/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 django.contrib import admin
from django.conf.urls import include
from django.conf.urls import static
from shop import views

from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^shop/', include('shop.urls')),
    url(r'^base/', include('shop.urls')),
    url(r'^about', views.about, name="about"),
    url(r'', include('shop.urls'))
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)\
 + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Ejemplo n.º 8
0
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 xml.dom.minidom import _in_document

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

urlpatterns = [
    path('', include('auth_module.urls')),
    path('admin/', admin.site.urls),
    path('event/', include('events.urls')),
    path('@<username>/', include(('userprofile.urls', 'userprofile'), namespace='userprofile')),
    path('job/',include('jobpost.urls')),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)\
              + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL,
                          document_root=settings.MEDIA_ROOT)
Ejemplo n.º 9
0
"""GTDjango URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/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 include, path
from django.conf import settings
from django.conf.urls import url, static
from django.conf.urls.static import static

urlpatterns = [
    path('main/', include('main.urls')),
    path('admin/', admin.site.urls)
]

urlpatterns += static(settings.DOWNLOAD_URL,
                      document_root=settings.RESULTS_PATH)
Ejemplo n.º 10
0
from django.conf.urls import patterns, include, url, static
from django.conf.urls.static import static
from dansdb import settings

from django.contrib import admin

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'dansdb.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^', include('products.urls')),
)+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)