Commits

Andres Vargas  committed 8c92baa

fixing things

  • Participants
  • Parent commits 917c9e3

Comments (0)

Files changed (2)

File trident/tasks.py

         f = t.dump(db.name)
     except AdminTrytonException as e:
         pass
-    dump.file.save(".%s.dump" % db.name, ContentFile(f.getvalue()))
+    dump.file.save("%s.dump" % db.name, ContentFile(f.getvalue()))
     dump.created = datetime.datetime.now()
     dump.save()
 

File trident/urls.py

 from django.conf.urls import patterns, include, url
 from django.contrib import admin
-from django.views.generic.simple import direct_to_template
+from django.views.generic.simple import direct_to_template, redirect_to
 from django.conf.urls.static import static
 from django.conf import settings
 
 
 urlpatterns = patterns('',
      url(r'^admin/', include(admin.site.urls)),
-     #url(r'^$',direct_to_template,{"template":"index.html"}, name="index"),
+     url(r'^$',redirect_to,{"url":"/admin"}, name="index"),
 ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)