English 中文(简体)
想在使用假日数据时添加斜线链接。
原标题:want to add url links to .csv datafeed using python

审视了目前的相关问题,但未能找到与我的需求相类似的东西。

正在建立一个使用高射线的附属仓库——现在的问题之一是,高射线不是为转头和附属仓库设计的,而是可以做的。 我将改变该仓库,这样它就象显示价格的显示仓储。

有一个叫作轻松的人群,使我能够上载数据。 这完全是好的,但我的附属关系不会在每一产品中。 在上载数据资料后,我可以人工操作,然后将数据输入到每个产品中,然后把数据作为具有直接链接的形象——然而,如果超过500件物品,它就会成为长期重复和耗费时间的工作。

我被告知,在将数据输入至高射线之前,我可以补充数据资料的链接,这应当用假日进行。 几天前,我一直在读一下大事,感觉到错事。 我很想知道,有人是否可以向我提供最简单的方式来做到这一点。

我希望这个问题是有意义的。

感谢

ab

问题回答

http://docs.python.org/library/csv.html 类似模块:

>>> import csv
>>> cartWriter = csv.writer(open( yourcart.csv ,  wb ))
>>> cartWriter.writerow([ Product ,  yourinfo ,  yourlink ])

你们需要知道,联系应如何格式化,希望能够利用文件上的其他参数组成。

首先,使用CSV模块作为系统平台告诉你,其次,你想要改变主人:

mimetype= text/csv 
Content-Disposition =  attachment; filename=name_of_your_file.csv 

这样做的方法在很大程度上取决于贵国网站的执行情况。 在纯粹的沙里,你很可能用HttpResponse。 在django,但也有

你们可以找到一个视频演示:,howing CSV文档,上载Lavromedo。 然而,它不是自由的。

现在,为了提供下载《公约》的链接,这取决于您的网站。 其背后的技术是什么:纯沙里、达詹戈、皮尔塔、图博格耳?

如果你能够回答问题,你应先询问你对基础设施的培训,然后再设法改变基础设施。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签