Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
Pinax
-
Pitmairen/hamlish-jinja · GitHub
-
Writing your first Django app, part 1 | Django documentation | Django
-
Django Packages : django reusable apps, sites and tools directory
-
michaeljoseph/changes
changes automates python library release tasks - PyPi -
Audreyr's PyPI Release Checklist
-
wildfish/cookiecutter-django-crud
-
angularjs - Get JSON response to Angular from Flask backend - Stack Overflow
-
python 多线程下载
#!/urs/bin/env python3#coding:utf-8import bugimport reimport osimport uuidimport threadingimport queueimport timeimport urllibqueue=queue.Queue()class ThreadUrl(threading.Thread): def __init__(self,queue,path='./pictures/',houz='.jpg'): threading.Thread.__init__(self) self.queue=queue self.path=path self.houz=houz def run(self): while True: url=self.queue.get() try: urllib.request.urlretrieve(url.strip('\n').strip('\n').strip(),filename='%s%s%s'%(self.path,uuid.uuid4(),self.houz)) except: pass self.queue.task_done()'''class MyThread(threading.Thread): def run(self): bug.download(lines,path='./pictures/',houz=".jpg")'''if __name__=="__main__": ''' #获取匹配的url #parrent=r'(?ui)src="(.*?\.jpg)"' parrent=r'(?ui)alt="游民星空" src="(.*?\.jpg)"' i=0 lists=[]#定义列表存放url while i<11: try: i=i+1 if i==1: url=r'http://www.gamersky.com/news/201310/303115.shtml' else: url=r'http://www.gamersky.com/news/201310/303115_%s.shtml'%i lists.append(url)#将所有url存入列表 except: pass try: bug.bug(lists,parrent)#调用方法bug.py的方法bug() except: pass ''' '''-----------------------------------------------------------------------------------------------------''' #读取文本文件中的url返回列表 lines=bug.read("1.txt") start=time.time() '''-----------------------------------------------------------------------------------------------------''' ''' # 1.普通下载 bug.download(lines,path='./pictures/',houz=".jpg") print(time.time()-start) ''' # 2.多线程下载 for line in lines: queue.put(line)#将列表中的url放入队列中 start=time.time() for i in range(5): t=ThreadUrl(queue,path='./pictures/',houz='.jpg')# t.setDaemon(True)#守护进程#穿衣出门 t.start() queue.join() print(time.time()-start) -
A List Of Django Packages
A grid list of Django packages -
Django Suit
Another Skin for the backend admin section of Django -
Grappelli Project
A beautiful Django Admin CMS -
ionelmc/django-redisboard
-
Webhost UK LTD
Webhost.UK.net is one the leading UK web hosting provider since 2004,we specialize in offering Django Web Hosting with one click ... -
haineault.com / blog / uWSGI brings real time to django
-
poiati/django-outbox
-
Django: Self-referencing many-to-many through
-
Salting your Django Stack
-
Per-request cache in Django? - Stack Overflow
-
Requests running in wrong Django instance under Apache/mod_wsgi.
-
ArunRocks - Real-time Applications and will Django adapt to it?
-
Useful django apps : django
-
haineault.com / blog / uWSGI brings real time to django
-
Mourafiq's • End to end web app with Django-Rest-Framework & AngularJS [Part 1]
-
An example of provisioning and deployment with Ansible - Stavros' Stuff