Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:58:57+00:00 2026-05-25T18:58:57+00:00

In django, I defined url like that (r’^checkstring/(?P<string>\w+)/$’,views.check_str,name=’check str’) But, When i enter string

  • 0

In django, I defined url like that

(r'^checkstring/(?P<string>\w+)/$',views.check_str,name='check str')

But, When i enter string inputs like ibrahim.yilmaz, ibrahi!m or ibrahim@ibrahim.com, it returns http 404.
So how can i write the url which accept everykind of string?

any help will be appreciated.

İbrahim

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:58:58+00:00Added an answer on May 25, 2026 at 6:58 pm

    Django uses regular expressions to match incoming requests. In python a dot (.) matches any character except a newline. See docs for more information and try:

    (r'^checkstring/(?P<string>.+)/$',views.check_str,name='check str')
    

    Also keep in mind that this will accept any character (including the forward slash) which may not be desirable for you. Be sure to test to make sure everything works as you would expect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ive defined a a class that inherits from django.contrib.syndication.feeds.Feed class Rss(Feed): ... def item_title(self,
I'm using the generic CreateView like: #urls.py from django.conf.urls.defaults import * from django.views.generic import
I'm doing something like: {% extends 'base.html' %} {% url myapp.views.dashboard object as object_url
I try to use templatetags in django but I have trouble. I defined enumhelper.py
In browser I get: Request URL: http://xxxxxx:8000/person/test/ Using the URLconf defined in person.urls, Django
Django has a number of open source projects that tackle one of the framework's
I am applying the 'url' template tag to all links in my current Django
I'm open to persuasion that this is a bad idea. But if not, here's
I defined couple models in my app: class Project(models.Model): title = models.CharField(max_length=150) url =
i am creating a django app, my project name is domain_com and the application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.