Opened 3 years ago

Closed 3 years ago

#33377 closed Bug (invalid)

Django Ignoring updates to urls.py

Reported by: Harsha Addanki Owned by: nobody
Component: Core (URLs) Version: 2.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The urls.py file In My Dango Project Is being Ignored; for Example I Tried Commenting Out The Admin Urls From the Project, And I Could Still Use The Admin. I tried Adding A Name Space, And Django Says It Doesn't Exist.

mysite/urls.py:

    """mysite 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 django.conf.urls.static import static
    from . import settings

    urlpatterns = [
        path('admin/', admin.site.urls),
        path('',include("Wallet.urls"),
        path('',include("django.contrib.auth.urls"))
    ] + static(settings.STATIC_URL, document_root='/home/dh_hemuuv/minicoin.fztl.com/static')

Wallet/urls.py:

from django.urls import path
from .views import signup,viewWallet,transfer,userpage,collectgift

urlpatterns = [
    path("signup/",signup,name="signup"),
    path("",viewWallet,name="home"),
    path("transfer/",transfer,name="transfer"),
    path("account/<str:username>/",userpage),
    path("collectgift/<int:id>/",collectgift,name="colgift"),
]

Please Help!

Change History (2)

comment:1 by Harsha Addanki, 3 years ago

Summary: mysqlclientDjango Ignoring updates to urls.py

comment:2 by Mariusz Felisiak, 3 years ago

Resolution: invalid
Severity: Release blockerNormal
Status: newclosed

Please don't use Trac as a support channel. If you're having trouble understanding how Django works, see TicketClosingReasons/UseSupportChannels for ways to get help.

Note: See TracTickets for help on using tickets.
Back to Top