from django.conf.urls.defaults import patterns, include

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    (r"(?P<id>\d+)", "state.app.views.form_view"),
    (r"", "state.app.views.form_view"),
)

from django.conf.urls.defaults import patterns, include

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', admin.site.urls),
    (r"(?P<id>\d+)", "state.app.views.form_view"),
    (r"", "state.app.views.form_view"),
)

Change admin.site.urls to use a direct path