The admin page works fine only the other two don't

Project Structure Project Root Directory: provisioning/ this is where 
manage.py lives 

Project Settings Directory provisioning/provisioning/settings.py 

App Directory provisioning/vmware 

template directory /provisioning/vmware/templates/ this is wehre vms.html 
lives

from my project urls.py file

GNU nano 2.2.6                      File: provisioning/urls.py

from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
    # url(r'^$', 'provisioning.views.home', name='home'),
        url(r'^admin/', include(admin.site.urls)),
        url(r'^customers', include('vmware.urls')),
        url(r'^test/', include('vmware.urls')),
)

from my app urls.py file:

from django.conf.urls import patterns, include, url
from django.views.generic.list import ListView
from vmware.models import Customer

urlpatterns = patterns('',
        url(r'^customers', ListView.as_view(
                queryset=Customer.objects.all().order_by("-id")[:100],
                        template_name="vms.html")),
)

urlpatterns = patterns('',
        url(r'^test/', ListView.as_view(
                queryset=Customer.objects.all().order_by("-id")[:100],
                        template_name="vms.html")),
)

and then this is the error im getting

Page not found (404)
Request Method: GET
Request URL:    http://pythondev.enki.co:8001/test
Using the URLconf defined in provisioning.urls, Django tried these URL 
patterns, in this order:
^admin/
^customers
^test/
The current URL, test, 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.



>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fcba60dc-4bc2-4ca4-9e44-e4bc9fd7a5d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to