import os

from django.conf.urls.defaults import *

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^example/', include('example.foo.urls')),

    # This avoids breaking Django admin's localization JavaScript when using
    # the FeinCMS frontend editing:
    url(r'admin/page/page/jsi18n/',     'django.views.generic.simple.redirect_to', {'url': '/admin/jsi18n/'}),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    #(r'^admin/', include(admin.site.urls)),
    (r'^admin/', include(admin.site.urls) ),

    (r'^feincms_media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': os.path.join(os.path.dirname(os.path.dirname(__file__)), 'feincms/static/feincms/')}),

    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': os.path.join(os.path.dirname(__file__), 'media/')}),
)

import django
if django.VERSION > (1, 3):
    urlpatterns += patterns('', (r'', include('feincms.views.cbv.urls')))
else:
    urlpatterns += patterns('', (r'', include('feincms.urls')))

try:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    urlpatterns += staticfiles_urlpatterns()
except ImportError:
    pass

@@ -44,17 +44,16 @@
 mport *%0A
-%0A
 from dja
@@ -81,596 +81,133 @@
 min%0A
-admin.autodiscover()%0A%0Aurlpatterns = patterns('',%0A    # Example:%0A    # (r'%5Eexample/', include('example.foo.urls')),%0A%0A    # This avoids breaking Django admin's localization JavaScript when using%0A    # the FeinCMS frontend editing:%0A    url(r'admin/page/page/jsi18n/',     'django.views.generic.simple.redirect_to', %7B'url': '/admin/jsi18n/'%7D),%0A%0A    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'%0A    # to INSTALLED_APPS to enable admin documentation:%0A    # (r'%5Eadmin/doc/', include('django.contrib.admindocs.urls')),%0A%0A    #(r'%5Eadmin/', include(admin.site.urls)),%0A    
+from django.contrib.staticfiles.urls import staticfiles_urlpatterns%0A%0Aadmin.autodiscover()%0A%0Aurlpatterns = patterns('',%0A    url
 (r'%5E
@@ -247,613 +247,190 @@
  ),%0A
-%0A
     
-(r'%5Efeincms_media/(?P%3Cpath%3E.*)$', 'django.views.static.serve',%0A        %7B'document_root': os.path.join(os.path.dirname(os.path.dirname(__file__)), 'feincms/static/feincms/')%7D),%0A%0A    (r'%5Emedia/(?P%3Cpath%3E.*)$', 'django.views.static.serve',%0A        %7B'document_root': os.path.join(os.path.dirname(__file__), 'media/')%7D),%0A)%0A%0Aimport django%0Aif django.VERSION %3E (1, 3):%0A    urlpatterns += patterns('', (r'', include('feincms.views.cbv.urls')))%0Aelse:%0A    urlpatterns += patterns('', (r'', include('feincms.urls')))%0A%0Atry:%0A    from django.contrib.staticfiles.urls import staticfiles_urlpatterns%0A    urlpatterns
+url(r'%5Emedia/(?P%3Cpath%3E.*)$', 'django.views.static.serve',%0A        %7B'document_root': os.path.join(os.path.dirname(__file__), 'media/')%7D),%0A    url(r'', include('feincms.urls'))%0A)
  +
-=
  sta
@@ -456,33 +456,5 @@
 s()%0A
-except ImportError:%0A    pass
 %0A

Simplify example urls.py file