Ticket #29418: urls.py

File urls.py, 2.0 KB (added by BeshoyFarag, 6 years ago)

url.py

Line 
1"""beshoy_pythonwebpge URL Configuration
2
3The `urlpatterns` list routes URLs to views. For more information please see:
4 https://docs.djangoproject.com/en/1.11/topics/http/urls/
5Examples:
6Function views
7 1. Add an import: from my_app import views
8 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
9Class-based views
10 1. Add an import: from other_app.views import Home
11 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
12Including another URLconf
13 1. Import the include() function: from django.conf.urls import url, include
14 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
15
16
17 beshoyfarag
18
19"""
20from django.conf.urls import url,include
21
22from. import views
23from blog import views as blog_views
24from django.conf.urls import url
25from django.contrib import admin
26from django.contrib.auth import views as auth_views
27from chatroom import views as chatroom_views
28from django.urls import path
29from .feeds import RssSiteNewsFeed, AtomSiteNewsFeed
30
31
32
33urlpatterns = [
34
35 url(r'^$',auth_views.login , {'template_name':'beshoy website/home.html'}) ,
36 url(r'^about', auth_views.login , {'template_name':'beshoy website/about.html'}) ,
37 url(r'^beshoyfarag',auth_views.login , {'template_name':'beshoy website/home.html'}) ,
38 url(r'^myschool',auth_views.login , {'template_name':'beshoy website/myschool.html'}) ,
39 url(r'^mylif', auth_views.login , {'template_name':'beshoy website/mylif.html'}) ,
40 url(r'^home' ,auth_views.login , {'template_name':'beshoy website/todo.html'}) ,
41 url(r'^login/$',auth_views.login , {'template_name':'beshoy website/djangologin.html'}) ,
42 url(r'^signup', views.signup, name='signup'),
43 url(r'^blog.html$', blog_views.blog, name='blog'),
44 url(r'^chatroom/', chatroom_views.chatroom, name='chatroom'),
45 url(r'^blog/rss/$', RssSiteNewsFeed(), name='rssfeeds'),
46 url(r'^blog/atom/$', AtomSiteNewsFeed(), name='atomfeeds'),
47
48
49]
Back to Top