Skip to content

Commit

Permalink
urls.py modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ameek committed Aug 2, 2018
1 parent 235cdc1 commit 6e09572
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
7 changes: 7 additions & 0 deletions medicine_reminder/api/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from .views import CreateView

urlpatterns = {url(r'^bucketlists/$',CreateView.as_view(), name="create"),
}
urlpatterns = format_suffix_patterns(urlpatterns)
14 changes: 11 additions & 3 deletions medicine_reminder/medicine_reminder/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@
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.contrib import admin
# from django.urls import path

# urlpatterns = [
# path('admin/', admin.site.urls),
#
# ]

from django.conf.urls import url, include

urlpatterns = [
path('admin/', admin.site.urls),
url(r'^admin/', admin.site.urls),
url(r'^', include(api.urls))
]
4 changes: 4 additions & 0 deletions support.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ $ python manage.py makemigration

step8:
$ python manage.py migrate


step9:
make view

0 comments on commit 6e09572

Please sign in to comment.