1 | """beshoy_pythonwebpge URL Configuration
|
---|
2 |
|
---|
3 | The `urlpatterns` list routes URLs to views. For more information please see:
|
---|
4 | https://docs.djangoproject.com/en/1.11/topics/http/urls/
|
---|
5 | Examples:
|
---|
6 | Function views
|
---|
7 | 1. Add an import: from my_app import views
|
---|
8 | 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
|
---|
9 | Class-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')
|
---|
12 | Including 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 | """
|
---|
20 | from django.conf.urls import url,include
|
---|
21 |
|
---|
22 | from. import views
|
---|
23 | from blog import views as blog_views
|
---|
24 | from django.conf.urls import url
|
---|
25 | from django.contrib import admin
|
---|
26 | from django.contrib.auth import views as auth_views
|
---|
27 | from chatroom import views as chatroom_views
|
---|
28 | from django.urls import path
|
---|
29 | from .feeds import RssSiteNewsFeed, AtomSiteNewsFeed
|
---|
30 |
|
---|
31 |
|
---|
32 |
|
---|
33 | urlpatterns = [
|
---|
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 | ]
|
---|