Exemple #1
0
from django.conf.urls import patterns, include, url
from django.contrib import admin

from principal.views import IndexView, LikeView

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'likes.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', IndexView.as_view()),
    url(r'^like/$', LikeView.as_view()),
    
    url(r'^dando-like$', 'principal.views.dandolike'),
    url(r'^admin/', include(admin.site.urls)),
)
Exemple #2
0
"""loginSocial 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 django.conf.urls import include, url
from principal.views import IndexView

urlpatterns = [
    path('', include('social_django.urls', namespace='social')),
    path('admin/', admin.site.urls),
    url(r'^$', IndexView.as_view()),
]
Exemple #3
0
#from patterns import patterns
from django.conf.urls import  include, url
from principal.views import MenuView, AlumnosView, DocentesView, MateriasView, IndexView

urlpatterns = [#patterns('',

 	url(r'^$' , 'django.contrib.auth.views.login', 
 		{IndexView.as_view()}, name = 'login' ),


 	url(r'^cerrar/$' , 'django.contrib.auth.views.logout_then_login',
         name= 'logout' ),


 	url(r'^accounts/profile/', MenuView.as_view(), name="menu"),


 	url(r'^Alumnos/', AlumnosView.as_view(), name = "alum"),
    url(r'^Docentes/', DocentesView.as_view(), name = "doc"),
    url(r'^Materias/', MateriasView.as_view(), name = "mat"),

]#)
Exemple #4
0
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin

from guitjob import settings
from principal.views import IndexView


admin.autodiscover()

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

    url(r'^admin/', include(admin.site.urls)),
    url(r'^cuentas/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}),
    url(r'^cuentas/', include('allauth.urls')),
    url(r'^perfiles/', include('perfiles.urls')),
    url(r'^proyectos/', include('proyectos.urls')),
    url(r'^$', IndexView.as_view() ,name="index"),
    
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Exemple #5
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from principal.views import IndexView, AboutView, BlogView, ContactsView, ProductsView,ServicesView
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^about/$', AboutView.as_view(), name='about'),
    url(r'^blog/$', BlogView.as_view(), name='blog'),
    url(r'^contacts/$', ContactsView.as_view(), name='contacts'),
    url(r'^products/$', ProductsView.as_view(), name='products'),
    url(r'^services/$', ServicesView.as_view(), name='services'),

)
Exemple #6
0
from django.conf.urls import patterns, include, url
from principal.views import HomeView, IndexView
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    '',
    # Examples:
    # url(r'^$', 'taller2.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', HomeView.as_view()),
    url(r'^index/$', IndexView.as_view()),
    url(r'^crear$', 'principal.views.crear'),
    url(r'^log-out/$', 'principal.views.LogOut'),
    url(r'^admin/', include(admin.site.urls)),
)
from django.conf.urls import patterns, include, url
from principal.views import HomeView, IndexView
from django.contrib import admin
admin.autodiscover()

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

    url(r'^$', HomeView.as_view()),
    url(r'^index/$', IndexView.as_view()),
    url(r'^crear$', 'principal.views.crear'),
    url(r'^log-out/$', 'principal.views.LogOut'),
    url(r'^admin/', include(admin.site.urls)),
)
Exemple #8
0
"""megatronics 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 path, include

from principal.views import IndexView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('social.apps.django_app.urls', namespace='social')),

    path('', IndexView.as_view()),

]