[TASK] Begin crunching the sqlite database.
This commit is contained in:
1 parent
89e76b6844
commit
eca9caeb62
2 files changed
+40
-2
No files matched your search
+3
-2
@@ -154,11 +154,12 @@ class ProjectView(ProtectedFormView, SingleObjectMixin):
|
||||
path = os.path.join(settings.MEDIA_ROOT, relative_path)
|
||||
print "Path: " + path
|
||||
|
||||
#TODO: Use file to do things here.
|
||||
#Now things will happen
|
||||
from service.sqlitehelper import import_sqlite
|
||||
import_sqlite(project_id=project_id, sqlite_file=path)
|
||||
|
||||
default_storage.delete(relative_path)
|
||||
# Maybe it is a good idea to keep the file
|
||||
# default_storage.delete(relative_path)
|
||||
|
||||
return super(ProjectView, self).form_valid(form)
|
||||
|
||||
|
||||
Reference in new issue
Block a user