notefrom django.conf.urls import patterns, include, url urlpatterns=patterns('', url(r'^$', 'messege,views.messegePage'), url(r'^expand/$', 'messege.views.expandNameList'), #url(r'^address/$', 'messege.views.addressGroup'), url(r'^click/$', 'messege.views.click'), url(r'^chat/$', 'messege.views.chitchat'), )
urlpatterns = patterns('', # Eixamples: # url(r'^$', 'fileshare.views.home', name='home'), # url(r'^fileshare/', include('fileshare.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), ######################## URL OF COMPANY ############################### url(dajaxice_config.dajaxice_url, include('dajaxice.urls')), url(r'^view_of_create_company','sharing.views.view_of_create_company'), # url(r'^view_of_delete_company','sharing.views.view_of_delete_company'), url(r'^create_company','sharing.views.create_company'), url(r'^delete_company','sharing.views.delete_company'), url(r'^view_of_update_company','sharing.views.view_of_update_company'), url(r'^company_save_update','sharing.views.company_save_update'), url(r'^company','sharing.views.company_operations'), # url(r'^', include('filer.server.urls')), ######################## URL OF EMPLOYEE ############################### url(r'^create_employee','sharing.views.create_employee'), # url(r'^view_of_delete_employee','sharing.views.view_of_delete_employee'), url(r'^delete_employee','sharing.views.delete_employee'), # url(r'^view_of_create_employee','sharing.views.view_of_create_employee'), url(r'^view_of_update_employee/(?P<name>.*)$','sharing.views.view_of_update_employee'), url(r'^employee_save_update','sharing.views.employee_save_update'), # url(r'^attachments/',include('attachments.urls')), ######################## URL OF INDEX ############################### url(r'^mylogout','sharing.views.mylogout'), url(r'^mylogin','sharing.views.mylogin'), # url(r'^view_of_logout','sharing.views.view_of_logout'), url(r'^view_of_login','sharing.views.view_of_login'), url(r'^test','sharing.views.test'), # url(r'^save_newt','sharing.views.save_newt'), url(r'^index','sharing.views.index'), url(r'^fail','sharing.views.fail'), url(r'^sign_up','sharing.views.sign_up', name='sign_up'), # url(r'^view_of_sign_up','sharing.views.view_of_sign_up'), url(r'^home_page','sharing.views.home_page'), url(r'^employee_already_associated_with_company_fail','sharing.views.employee_already_associated_with_company_fail'), # (r'^tinymce/', include('tinymce.urls')), # (r'^search/', include('haystack.urls')), url(r'^search_result','sharing.views.search_result'), url(r'^wysiwyg_editor/(?P<path>.*)$','sharing.views.wysiwyg_editor'), ######################## URL OF FILE ############################### url(r'^update_file','sharing.views.update_file'), # url(r'^view_of_create_file','sharing.views.view_of_create_file'), # url(r'^create_file','sharing.views.create_file'), url(r'^media/(?P<path>.*)$','django.views.static.serve', {'document_root': settings.MEDIA_ROOT,'show_indexes':True}), # url(r'^view_of_upload_file','sharing.views.view_of_upload_file'), url(r'^upload_file','sharing.views.upload_file'), # url(r'^view_of_my_file','sharing.views.view_of_my_file'), url(r'^view_my_company_file','sharing.views.view_my_company_file'), url(r'^delete_my_file','sharing.views.delete_my_file'), # url(r'^view_of_delete_file','sharing.views.view_of_delete_file'), # url(r'^show_file','sharing.views.show_file'), # url(r'^social/', include('socialregistration.urls', namespace = 'socialregistration')), # url(r'^fileshare'), # url(r'^media/') # url(r'^file-picker/',include(file_picker.site.urls)), # http://stackoverflow.com/questions/1539697/can-i-filter-on-request-user-when-using-django-generic-views )
#!/usr/bin/env python """ urls.py Parsing URLs from user requests """ ifrom django.conf.urls import patterns, url from student import views urlpatterns = patterns('', url(r'^$', views.students, name='students'), url(r'^profile', views.student_profile, name='student_profile'), url(r'^edit_profile', views.edit_profile, name='edit_profile'), )
stafrom django.conf.urls import patterns, url from articles.views import NewsDetailView, create urlpatterns = patterns('pages.views', url(r'^$', 'home', name='home'), url(r'^admin/', include(admin.site.urls)), url(r'^noticias/', 'noticias', url( regex=r'^noticias/(?P<pk>\d+)', view=NewsDetailView.as_view(), name='News' ), url(r'^create/', create), )
from django.conf.urls/defaults import patterns, include, url from mysite.views import hello # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^hello/$', hello), # Examples: # url(r'^$', 'mysite.views.home', name='home'), # url(r'^mysite/', include('mysite.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), )
@h@ 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'polls', ) # Run python manage.py syncdb. Since you have added a new application to INSTALLED_APPS, the database tables need to be updated. # Edit your <mysite>/urls.py file and uncomment the lines that reference the admin – there are three lines in # total to uncomment. This file is a URLconf; we’ll dig into URLconfs in the next tutorial. For now, all you need # to know is that it maps URL roots to applications. In the end, you should have a urls.py file that looks like this: @h@from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: @h@from django.contrib import admin @[email protected]() urlpatterns = patterns('', # Examples: # url(r'^$', '{{ project_name }}.views.home', name='home'), # url(r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: @h@ url(r'^admin/', include(admin.site.urls)), ) # view the Admin Side here: http://127.0.0.1:8000/admin/
-from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^polls/', include('polls.urls', namespace="polls")), url(r'^admin/', include(admin.site.urls)), ) #seqvw-zs3n-08u6
rom django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^list-books/$', 'bookshelf.views.list_books', name='list_books'), url(r'^list-authors/$', 'bookshelf.views.list_authors', name='list_authors'), url(r'^list-genres/$', 'bookshelf.views.list_genres', name='list_genres'), url(r'^get/$', 'bookshelf.views.get_book', name='get_book'), url(r'^add/$', 'bookshelf.views.add_book_form', name='add_book_form'), url(r'^add-book/$', 'bookshelf.views.add_book', name='add_book'), url(r'^bookshelf/(?P<book_id>\d+)/$', 'bookshelf.views.see_book', name='see_book'), )