This publication is present of django system for import data from excel:
Use this step by step for rapid start use wih django application:
1. Follow to page https://github.com/ostrovok-team/django-import-excel and push the button Watch
2.Download this project https://github.com/ostrovok-team/django-import-excel/zipball/master
3. Unpack, following to the folder and run pip install -e . or python setup.py install
4. In settings.py:
INSTALLED_APPS = [
...
'import_excel',
...
]
5. So, for example, you need import the data from excel for model
class Book(models.Model):
name = models.CharField(max_length=255)
author = models.CharField(max_length=255)
The excel file contains the data
name | author
Tom Sawyer | Mark Twain
The Sands of Mars | Arthur C. Clarke
To do is, create this form:
from django
...
Читать дальше »