We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, i am trying to do the following:
class Upload(models.Model): upload_file = models.FileField(upload_to='media', blank=True, null=True) dataframe_from_transformed_uploadfile = PickledObjectField(blank=True, null=True, editable = False) pivoted_dataframe_from_transformed_uploadfile = PickledObjectField(blank=True, null=True, editable = False) pivotedlist_dataframe_from_transformed_uploadfile = PickledObjectField(blank=True, null=True, editable = False) upload_date = models.DateTimeField(auto_now_add =True) order_description = models.TextField(default="") def save(self, *args, **kwargs): generatereport(self) super(Upload, self).save(*args, **kwargs) # Call the "real" save() method. def generatereport(self): df = pd.read_excel(os.path.join('media',self.upload_file.name))
However at the read excel part i get:
FileNotFoundError at /report/ [Errno 2] No such file or directory: 'media\\bgbrgbruckleitha_orderlist.xlsx'
If i try it with .path instead of .name i get NotImplementedError at /report/ , probably because its not supported?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey, i am trying to do the following:
However at the read excel part i get:
If i try it with .path instead of .name i get NotImplementedError at /report/ , probably because its not supported?
The text was updated successfully, but these errors were encountered: