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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:34:52+00:00 2026-06-04T23:34:52+00:00

This is my url: from views import * urlpatterns = patterns(”, url(r’^$’, BillingView.as_view(), name=index),

  • 0

This is my url:

from views import *

urlpatterns = patterns('',

    url(r'^$', BillingView.as_view(), name="index"),

)

and this is the method in my views.py:

class BillingView(BaseCompositeView):

    """
    A view that lets you record new billing information. This view includes all
    of the forms needed by the users on one page.
    """
    # We cannot easily override FormView since this view uses multiple forms

    template_name = "billing/base_billing.html"

etc.

Why is my view is not accessible?

  • 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-04T23:34:55+00:00Added an answer on June 4, 2026 at 11:34 pm

    Are you using django 1.4? What is the name of the project?

    You probably want this for your import:

    from project.billing.views import *
    

    NameError means you’re referencing something that hasn’t been defined or declared in the current scope.

    Edit:

    To help diagnose the issue, try this:

    python manage.py shell
    >>> import django
    >>> django.get_version()
    '1.2.3'
    >>> import sys
    >>> sys.path
    ['/list/of/paths', '/and/other/paths/']
    

    And just examine if the correct libraries are on your path. You might find that you’ve got a newer version of django in your site-libs folder amongst other things.

    When are you getting the NameError? When running from the development server, or a production web server? Please show us the full error and stack trace.

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

Sidebar

Related Questions

The urls.py of the project is this from django.conf.urls.defaults import patterns, include, url #
here is my code: urls.py: from django.conf.urls import patterns from views import show,showpage urlpatterns
I've seen somewhere a urls.py construct like this: from project.f import SomeClass urlpatterns =
Is it possible to re-write (Apache Mod-Rewrite) a URL from this: http://www.example.com/view.php?t=h5k6 to this
I copy and paste code from this URL for creating and reading/writing a proc
I have a json feed from this URL which contains 20 fields and I
I try to get string from this url: http://autoc.finance.yahoo.com/autoc?query=google&callback=YAHOO.Finance.SymbolSuggest.ssCallback When I look at this
I need to replace this URL http:///prod/ap4s/appleproducts/iphone/4S with http:///prods.aspx?prod_id=ap4s Taking productId ap4s from existing
I am parsing data from this XML url The text input varies, depending on
I'm trying to pass parameter from python page to another through the URL,this parameter(key

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.