Re: 'URLPattern' Object is not a mapping

2019-03-01 Thread Anh Nguyen
Try path or re_path instead of url On Fri, Mar 1, 2019 at 8:25 PM Tina Upadhyay wrote: > Please suggest > > On Fri, Mar 1, 2019, 8:22 AM Tina Upadhyay > wrote: > >> This is working fine on my local machine but on server it is not.Can >> anyone suggest that what can i do to fix this?? >> >> >> O

Re: 'URLPattern' Object is not a mapping

2019-03-01 Thread Tina Upadhyay
Please suggest On Fri, Mar 1, 2019, 8:22 AM Tina Upadhyay wrote: > This is working fine on my local machine but on server it is not.Can > anyone suggest that what can i do to fix this?? > > > On Fri, Mar 1, 2019 at 12:22 AM wrote: > >> umm >> >> >> On Tuesday, February 26, 2019 at 6:06:20 PM UT

Re: 'URLPattern' Object is not a mapping

2019-02-28 Thread Tina Upadhyay
This is working fine on my local machine but on server it is not.Can anyone suggest that what can i do to fix this?? On Fri, Mar 1, 2019 at 12:22 AM wrote: > umm > > > On Tuesday, February 26, 2019 at 6:06:20 PM UTC+5:45, Tina Upadhyay wrote: >> >> Getting this error and the urls.py of my model

Re: 'URLPattern' Object is not a mapping

2019-02-28 Thread bikashsunabhatrai
umm On Tuesday, February 26, 2019 at 6:06:20 PM UTC+5:45, Tina Upadhyay wrote: > > Getting this error and the urls.py of my model is as shown below: > > > from django.conf.urls import url > from new import views > app_name = 'new' > > > urlpatterns = [ > url(r'^export/csv/$', views.export_users_c

Re: 'URLPattern' Object is not a mapping

2019-02-28 Thread Tina Upadhyay
yes i have at root project levelwhich has the below mentioned code: from django.conf.urls import url, include from django.contrib import admin from new.views import Systemsoftware admin.sites.AdminSite.site_header = 'SW Clearing Tool' admin.sites.AdminSite.site_title = 'SW Clearing Tool' admin.si

Re: 'URLPattern' Object is not a mapping

2019-02-26 Thread anthony . tedde . 85
Hello, Don't you have another urls.py file inside the directory that have the same name as your project. Probably something like that: + yourproject + yourproject - __init__.py - settings.py - -* urls.py* - If yes, what does it co

Re: 'URLPattern' Object is not a mapping

2019-02-26 Thread anthony . tedde . 85
Hi, Django's version is in the screenshot (2.1.4) Le mardi 26 février 2019 13:38:24 UTC+1, ANIL UMARANE a écrit : > > which version django you have used > > > On Tue, Feb 26, 2019 at 5:51 PM Tina Upadhyay > wrote: > >> Getting this error and the urls.py of my model is as shown below: >> >> >> fr

Re: 'URLPattern' Object is not a mapping

2019-02-26 Thread ANIL UMARANE
which version django you have used On Tue, Feb 26, 2019 at 5:51 PM Tina Upadhyay wrote: > Getting this error and the urls.py of my model is as shown below: > > > from django.conf.urls import url > from new import views > app_name = 'new' > > > urlpatterns = [ > url(r'^export/csv/$', views.expor

'URLPattern' Object is not a mapping

2019-02-26 Thread Tina Upadhyay
Getting this error and the urls.py of my model is as shown below: from django.conf.urls import url from new import views app_name = 'new' urlpatterns = [ url(r'^export/csv/$', views.export_users_csv, name='export_users_csv'), # url(r'^$', views.upload, name='uplink'), url(r'^download/(.*)', vie