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 6476835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:52:28+00:00 2026-05-25T06:52:28+00:00

This is my problem now, have a Django project named ‘personal’ with an urls.py

  • 0

This is my problem now, have a Django project named ‘personal’ with an urls.py file like this:

# file personal/urls.py

    from django.conf.urls.defaults import *

    ### SAB
    urlpatterns = patterns('',
        (r'^sab/', include('personal.sab.sab_urls')),
    )
    ### STK
    urlpatterns += patterns('',
        (r'^stk/', include('personal.stk.stk_urls')),
    )
    ### TEST
    urlpatterns += patterns('',
        (r'^test_app/', include('personal.test_app.test_app_urls')),
    )

And the apps: sab, stk, and test_app with an urls file module like this:

# file personal/test_app/test_app_urls.py

    ### TEST urls.
    from django.conf.urls.defaults import *

    urlpatterns = patterns('personal.test_app',
        (r'^view_1$', 'view_1'),
    )

This is what I got in http://localhost/test_app/ -> 404 error screenshot

Why some urls modules work fine and other not?
The test_app_urls.py is loaded, but in the screenshot u can see how its look.

Any idea?

  • 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-25T06:52:29+00:00Added an answer on May 25, 2026 at 6:52 am

    It doesn’t appear that you have a url defined for http://localhost/test_app/ only for http://localhost/test_app/view_1

    Something along the lines of the following should work (in test_app/urls.py):

    urlpatterns = patterns('personal.test_app',
        (r'^$', 'test_app_index'),
        (r'^view_1/$', 'view_1'),
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple problem with XML got from database. Now, this XML can
This problem has bugged me so many times and i have now decided to
I am currently working in this problem for hours now. I have to create
I have been working on this problem for 2 days now and it's an
I have been working on this problem for a while now. I am trying
I have been stumped for 3 hours now on this problem, I need to
what's the problem there, I have uploaded this video to server, but now its
i have a problem. I need to create pure diagram for my project (Django).
Trying to learn Django, I closed the shell and am getting this problem now
When I have a given django model class like this: class BaseClass(models.Model): some_field =

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.