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

  • SEARCH
  • Home
  • 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 8646417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:48:09+00:00 2026-06-12T12:48:09+00:00

Today when I code my blog with ‘Building_a_blog_in_30_mins_with_Django_Screencast’,I meet some problems.When I click the

  • 0

Today when I code my blog with ‘Building_a_blog_in_30_mins_with_Django_Screencast’,I meet some problems.When I click the title with the article,it can’t appear the right page.!

Page not found (404)
Request Method:     GET

Using the URLconf defined in myblog.urls, Django tried these URL patterns, in this order:

^$
^(?P<pk>\d+)/$
^admin/
^admin/doc/

The current URL, app/1, didn’t match any of these.

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

and it’s my urls.py:

url(r'^$',ListView.as_view(queryset=Post.objects.all().order_by("created[:2]template_name="                                                                               blog.html")), 
url(r'^(?P<pk>\d+)/$',DetailView.as_view( model=Post, template_name="post.html")),
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/doc/', include('django.contrib.admindocs.urls'))

I doesn’t konw what is going on with it.Please help,thanks!

  • 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-06-12T12:48:10+00:00Added an answer on June 12, 2026 at 12:48 pm

    You need to add 'app/' in your url.

    url(r'^app/(?P<pk>\d+)/$',DetailView.as_view( model=Post, template_name="post.html")),
    

    Or may be you need to define these urls in urls.py of your app (named app ?) and include it in sites main urls.py

    url(r'app/', include('app.urls'))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While cleaning some code today written by someone else, I changed the access modifier
I wrote some code today and It was changed by another developer who said
I stumbled across this C code today. Can anyone tell me what the 'where'
I decided to modify some code today, and encountered an error that doesn't make
I ran into some singleton code today in our codebase and I wasn't sure
I accidently wrote some code today that was like this: Private Sub Foo() Dim
I was going through some code today and saw this: x.add(getResources().getString(R.string.none)); x.add(getResources().getString(R.string.today)); x.add(getResources().getString(R.string.tomorrow)); ...
Came across some code today that had a javascript array, made in php, using
Working on some code today, I found that the following would work in 5.3,
I came across some code today that surprised me. A variable was defined (outside

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.