Check this out: http://linkode.org/j5tuDIjRiGrzufkXDrCMh7
if you visit http://www.fsorgosuardi.com.ar/eventos you go to activos views if you visit http://www.fsorgosuardi.com.ar/eventos/ampliar/something-hereyou go to activos views with parameters if you visit http://www.fsorgosuardi.com.ar/eventos/archivados/ you go to archivados views (its inactive for now) what i see is that you construct something like www.domain.com/customers/customers -- Rafael E. Ferrero 2014-05-06 18:33 GMT-03:00 G Z <zuk...@gmail.com>: > 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<https://groups.google.com/d/msgid/django-users/fcba60dc-4bc2-4ca4-9e44-e4bc9fd7a5d4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAJJc_8X8jcggBe5Cn_-w5AvZ-7LGUk%3DFrO-zF2xrBQ6MDQU%2BRg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.