예제 #1
0
파일: urls.py 프로젝트: 100ika/NUDB
"""nudb URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.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, include
from schema_graph.views import Schema
"""admin.site.site_header = 'MonETS'
admin.site.site_title = 'Dogs'
#admin.site.index_title = 'Nazarbayev University Data Base'"""

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('equipment.urls')),
    path('ckeditor/', include('ckeditor_uploader.urls')),
    path("schema/", Schema.as_view()),
]
예제 #2
0
    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 url
from django.contrib.auth.views import LogoutView
from django.conf import settings
from django.conf.urls.static import static
from schema_graph.views import Schema

from .views import home_page, results_page, top_movies_page, movie_page
from accounts.views import login_page, register_page, account_page, register_genres_page

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', home_page, name="index"),
    url(r'^login/$', login_page, name='login'),
    path('register/', register_page, name='register'),
    path('register_genres/', register_genres_page, name='register_genres'),
    path('logout/', LogoutView.as_view(), name="logout"),
    path('results/', results_page, name="result"),
    path('topmovies/', top_movies_page, name="topmovies"),
    path('account/', account_page, name="account"),
    url(r'^movie/(?P<movie_id>\d+)/$', movie_page, name="movie"),
    url(r"^schema/$", Schema.as_view()),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
예제 #3
0
from schema_graph.views import Schema

try:
    # Django 2+:
    from django.urls import path

    urlpatterns = [path("", Schema.as_view())]
except ImportError:
    # Django < 2:
    from django.conf.urls import url

    urlpatterns = [url(r"^$", Schema.as_view())]
예제 #4
0
from django.contrib import admin
from django.urls import path, include
from planes.views import login_view, logout_view

from schema_graph.views import Schema

urlpatterns = [
    path('admin/', admin.site.urls),
    path('schema/', Schema.as_view()),
    path('login/', login_view, name='login'),
    path('logout/', logout_view, name='logout'),
    path('', include('planes.urls', namespace='planes')),
    path('plane/', include('planes.urls', namespace='planes')),
    path('catalog/', include('catalog.urls', namespace='catalog')),
    path('analytics/', include('analytics.urls', namespace='analytics')),
    path('notifications/',
         include('notifications.urls', namespace='notifications')),
]
예제 #5
0
파일: urls.py 프로젝트: faisal-nimri/dawai
	#Questions
	path('pharmacy/questions', views.questions),
	
	#Help 
	path('help', views.help),

	#Answers
	path('answers', views.answers),

	#Profile
	path('profile', views.profile),

	#Edit F Name
	path('edit/firstname', views.editfname),

	
	#Edit L Name
	path('edit/lastname', views.editlname),

	
	#Edit Password
	path('edit/password', views.editpassword),

	#Delete Profile
	path('delete', views.deleteprofile),

	#Send Mail Delete
	path('deleteaccount', views.senddelete)
]
urlpatterns += [path("schema/" , Schema.as_view())]