Reverse for 'mobile' not found

base.html

urls.py

mobile.html

Please do not post images of code. Images can’t be searched or quoted, and are not readable on all devices. Copy/paste your code here.
When posting code here, enclose it between lines consisting of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This allows the forum software to keep your code properly formatted, which is very important with Python.

To try and answer your question, somewhere you’re either rendering a url tag using the name mobile or you’re calling the reverse (or reverse_lazy) function with the name mobile.
However you don’t have a url with that name. (You reverse on the name not the path.)

unable to post code, because i am new user.

I don’t know what you mean - it’s just text in your message. Copy the text from your editor and paste it into the text box where you type your text. Put ``` before and after the block of text you’ve copied. There are no specific permissions needed for doing that.

Really close! The ``` needs to be on lines by itself. Make sure you’re using the ` and not “smart quotes” from some other editor. Note, you can also edit your posts, you don’t need to delete them and then add them as new replies.

’ from django.urls import path
from django.views.generic import base
from app import views
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [

path('',views.ProductView.as_view(),name="home"),
path('product-detail/<int:pk>', views.ProductDetailView.as_view(), name='product-detail'),
path('cart/', views.add_to_cart, name='add-to-cart'),
path('buy/', views.buy_now, name='buy-now'),
path('profile/', views.profile, name='profile'),
path('address/', views.address, name='address'),
path('orders/', views.orders, name='orders'),
path('changepassword/', views.change_password, name='changepassword'),
path('mobile/<slug:data>', views.mobile, name='Mobiledata'),
path('login/', views.login, name='login'),
path('registration/', views.customerregistration, name='customerregistration'),
path('checkout/', views.checkout, name='checkout'),

] + static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT’

can you assist me, through remote

Here’s an example:

# The line above this is ```
def function():
    pass
# The line after this is ```
from django.views.generic import base
from app import views
from django.conf import settings 
from django.conf.urls.static import static

urlpatterns = [

    path('',views.ProductView.as_view(),name="home"),
    path('product-detail/<int:pk>', views.ProductDetailView.as_view(), name='product-detail'),
    path('cart/', views.add_to_cart, name='add-to-cart'),
    path('buy/', views.buy_now, name='buy-now'),
    path('profile/', views.profile, name='profile'),
    path('address/', views.address, name='address'),
    path('orders/', views.orders, name='orders'),
    path('changepassword/', views.change_password, name='changepassword'),
    path('mobile/<slug:data>', views.mobile, name='Mobiledata'),
    path('login/', views.login, name='login'),
    path('registration/', views.customerregistration, name='customerregistration'),
    path('checkout/', views.checkout, name='checkout'),
] + static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT```
from django.views.generic import base
from app import views
from django.conf import settings 
from django.conf.urls.static import static

urlpatterns = [

    path('',views.ProductView.as_view(),name="home"),
    path('product-detail/<int:pk>', views.ProductDetailView.as_view(), name='product-detail'),
    path('cart/', views.add_to_cart, name='add-to-cart'),
    path('buy/', views.buy_now, name='buy-now'),
    path('profile/', views.profile, name='profile'),
    path('address/', views.address, name='address'),
    path('orders/', views.orders, name='orders'),
    path('changepassword/', views.change_password, name='changepassword'),
    path('mobile/<slug:data>', views.mobile, name='Mobiledata'),
    path('login/', views.login, name='login'),
    path('registration/', views.customerregistration, name='customerregistration'),
    path('checkout/', views.checkout, name='checkout'),
] + static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT ```

forum hidding my post

Is it giving a reason why?

because used wrong way to post my codes, please assist me through remote

Not possible at the moment, I’m not in a position to do that. What is the exact message you’re getting from the forum software about your response?

Hello,

Our automated spam filter, Akismet, has temporarily hidden in Reverse for ‘mobile’ not found for review.

A staff member will review your post soon, and it should appear shortly.

We apologize for the inconvenience.

Ok, my guess would be that it’s caused by you posting the same code multiple times, even though you deleted the first two. (That’s just a guess, I don’t know that for a fact.) You can try to Undelete your earlier post and edit it to correct it.


<li><a class="dropdown-item" href="{% url 'mobile' %}">Mobile</a></li>```