you can change this url from your app

from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView
from rest_framework import routers

from user_profile.views import UserViewSet

router = routers.DefaultRouter()
router.register(r'user', UserViewSet,)

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),

    # This is used for user reset password
    url(r'^', include('django.contrib.auth.urls')),
    url(r'^rest-auth/', include('rest_auth.urls')),
    url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),
    url(r'^account/', include('allauth.urls')),
    url(r'^api/',  include(router.urls)),
]


On Mon, 17 Dec 2018 at 16:37, Daniel Hepper <daniel.hep...@gmail.com> wrote:

> Check out this repository:
> https://github.com/consideratecode/django-tutorial-step-by-step
>
> It's not updated for Django 2.1 yet, but the differences should not matter
> in your case.
>
> Hope that helps,
> Daniel
>
> On Sun, Dec 16, 2018 at 8:18 PM Sarthak Khandelwal <sarthak0...@gmail.com>
> wrote:
>
>> can you send your file structure after this step?
>> I am having a similar problem, after adding views to url according to the
>> tutorial in the documentation, when I was trying to run the server i was
>> having a similar to your problem.
>> If anyone has completed this step please share the file structure to
>> confirm if I am doing something wrong.
>>
>> and yes I am not doing this error.
>>
>> On Friday, October 18, 2013 at 2:04:28 AM UTC+5:30,
>> michael....@farecompare.com wrote:
>>>
>>> Oh my gosh ... I did. LOL. Thanks. I'm an idiot.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/e2a3e21b-6f32-4f67-8689-4f9a380f0b7b%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/e2a3e21b-6f32-4f67-8689-4f9a380f0b7b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHEnUVWeCXGeLj-7O%2BrMztP%3Dp6PTaO%2BMtm2m8KpAV-jG70i_BA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHEnUVWeCXGeLj-7O%2BrMztP%3Dp6PTaO%2BMtm2m8KpAV-jG70i_BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGxtV7ZprTYCjgQZzRhBP_aSNjj1vMqKvy%3DvGoodOfvvvd2yVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to