The URL-pattern element of servlet-mapping or filter-mapping associates a filter or servlet with a set of URLs. When using this tag on implementation heavy questions - tag the code language the implementation is written in.
Questions tagged [url-pattern]
379 questions
0
votes
2 answers
Django: Reverse for '' not found. '' is not a valid view function or pattern name
I am getting the above error when i tried to redirect from my UserAuth app to UserArea app.
It says 'NoReverseMatch at /index/'.
UserAuth/views.py
def loginUser(request):
if request.method == "POST":
username =…

ReaL_HyDRA
- 314
- 1
- 18
0
votes
1 answer
Django ModelViewSet Method \"DELETE\" not allowed even when providing ID in the URL as required for detail views
I am using ModelViewSet for a CustomUser(AbstractBaseUser) model. Every other action is working except Destroy.
My viewset:
class UserDetailView(viewsets.ModelViewSet):
serializer_class = UserDetailSerializer
permission_classes =…

forest
- 1,312
- 3
- 20
- 47
0
votes
1 answer
NoReverseMatch at / 'QuizApp' is not a registered namespace inside 'basic_app'
I want to connect my basic_app with an index.html (index.html of my quiz app) file, which is inside the basic_app folder, but it is situated like this - basic_app/QuizApp/index.html and this problem is probably about the principle of having other…

JanKoci
- 59
- 11
0
votes
2 answers
TemplateDoesNotExist at /hobbies/
This question is the sequel of my previous question -
Reverse for 'hobbieswithCSS.html' not found. 'hobbieswithCSS.html' is not a valid view function or pattern name (solved)
I have moved from one error (in the title of previous question) to…

JanKoci
- 59
- 11
0
votes
0 answers
Codeigniter URL routing - naming URL patterns
Currently the Codeigniter routing configuration and site_url only makes it possible to decouple the visible URL from the underlying path to controller.
$routing['my/url/'] = "my/controller/path";
However this doesn't help that much when you want to…

Botond Béres
- 16,057
- 2
- 37
- 50
0
votes
0 answers
Handing image file not found error in Django
I am trying to handle the image not found an error in Django by defining a custom view unhandle_urls.
The way I am trying to do this is the following.
Define a URL pattern inside urls.py to match the image URL's pattern and route them to my custom…

Mazharul Islam
- 187
- 1
- 1
- 10
0
votes
1 answer
What is the difference between / and /* in web.xml
I am seeing 2 different URL pattern in web.xml. May I know what kind of URL matches with this pattern. It would be great if anyone explain this with example.
samplewithstar
…

Arun
- 21
- 2
0
votes
1 answer
Why am I seeing localhost:8000 empty path does not match Django?
I keep running into 'Page not found' when trying to load http://localhost:8000/ . I have an empty path set to direct the page to my project_index page, but this is all I get:
I have checked and re-checked all of my urlpatters, but cannot figure out…

Josh Crouse
- 343
- 1
- 13
0
votes
1 answer
Django Rest API shows only some urls
I have created a polls app with the Django tutorial and have added a REST API, again with the tutorial.
I think I have an error somewhere in my urlpatterns config because I can see only some pages, the rest give me an error.
My root url.py:
from…

Suki
- 177
- 3
- 12
0
votes
2 answers
Recognize "Invalid" URLs without Trying to Resolve Them
I'm building a Facebook App which grabs the URLs from various sources in a user's Facebook acount--e.g., a user's likes.
A problem I've encountered is that many Facebook entries have string which are not URLs in their "website" and "link" fields.…

Chris W.
- 37,583
- 36
- 99
- 136
0
votes
1 answer
I have a problem with my Django URL pattern naming
For whatever reason when I give a name="..." - argument to a URL pattern and I want to refer to it by using the name it does not seem to work.
That's my 'webapp/urls.py' file:
from django.urls import path
from .views import PostListView,…
0
votes
1 answer
I want to show the topic title in the website template url link on django 3
I want to show the topic title in the website template url link on django 3.
currently opening the topic id number.
for example : http://localhost:8000/detay/4
for example : http://localhost:8000/detay/2
for example :…

sefaseker
- 33
- 3
0
votes
1 answer
How to do Url patterns in servlets web.xml
I have a question on if this is possible to do. I have a profile servlet that has 2 url patterns, /profile and /profile/* .So in my project I have a user use GET /profile to get all of the profiles in JSON. Each profile has a favorite team string.…

Bobby.lock
- 59
- 1
- 7
0
votes
2 answers
How do I solve urlpatterns problem in django?
from django.conf.urls import url
from django.contrib.auth.views import LoginView
from django.contrib.auth.views import LoginView, LogoutView
from . import views
urlpatterns = [
url(r'^login/$', LoginView, name='login', kwargs={
…
0
votes
2 answers
Issue using i18n_patterns with API
I have an app which includes a website and an API. I have translated the website to a second language. The main language is currently English and the second one Farsi. I have used i18n_patterns in urlpatterns to redirect between the two languages.…

Saman Hamidi
- 353
- 1
- 7
- 20