http://www.quora.com/Lean-Startups
- RealPython
- 語言技術:Python Gossip
- Python Snippets, from Google: django email contact
- Open Sourcing a Python Project the Right Way - Jeff Knupp
- https://code.djangoproject.com/wiki/DjangoResources (from: Google: django ui framework)
- http://www.fullstackpython.com/
- djangoGirls on GitBook
- https://github.com/makaimc/awesome-django
- https://github.com/vinta/awesome-python
- http://en.wikipedia.org/wiki/Django_%28web_framework%29
- http://twoscoopspress.com/pages/django-tutorials
- http://www.tangowithdjango.com/
- http://www.tangowithdjango.com/book/index.html
- https://django-book.readthedocs.org/en/latest/# (from: http://www.meetup.com/Taipei-py/messages/boards/thread/34933702)
- http://www.barrymorrison.com/2012/10/zero-to-django-in-4-months-what-ive-learned-part-1/
- http://djangobook.py3k.cn/2.0/
- http://codecondo.com/web-scraping-python/
- Reddit: django
- http://www.quora.com/I-really-really-want-to-learn-to-code-However-upon-taking-classes-and-practicing-in-C-I-realized-that-I-hate-the-whole-process-of-programming-debugging-constant-unclear-ambiguous-errors-confusing-logic-What-can-I-do-to-get-over-this
- http://www.quora.com/Are-there-any-good-Django-video-tutorials
- Google: query django | rails | cakephp | codeigniter | laravel
- Google: debug django | rails | cakephp | codeigniter | laravel
- http://code.tutsplus.com/tutorials/why-laravel-is-taking-the-php-community-by-storm--pre-52639
- Google: django testing
- Google: django restful
- http://www.databaseanswers.org/data_models/index.htm (from: http://www.quora.com/What-is-the-fastest-way-to-learn-Django)
- Youtube: Django Blog example/tutorial | Django TODO example/tutorial
- Google: Django | Rails | Laravel ?株?????
- https://code.djangoproject.com/wiki/Tutorials
- https://django-book.readthedocs.org/en/latest/# (from: http://www.meetup.com/Taipei-py/messages/boards/thread/34933702)
Laravel official doc provides no tutorials (not like what django doc does nor rails guide does), I have to find it "outsite". -> Google: laravel guide | laravel cast
How to find tutorials?
- Google: django tutorial | django guide | django cast | django girls | django girls tutorial
- Quora: how to learn django
- Google: Laravel ?株?????
Django bulid a blog
Django Blog example
- http://arunrocks.com/recreating-the-building-a-blog-in-django-screencast/
- https://www.youtube.com/watch?v=7rgph8en0Jc
- https://github.com/django/djangoproject.com/tree/master/blog
Restful
- http://code.tutsplus.com/tutorials/beginners-guide-to-the-django-rest-framework--cms-19786
- https://realpython.com/blog/python/django-rest-framework-quick-start/
Class based view
- Google: django class based view
- https://godjango.com/69-the-class-based-view/
View & Template
- http://georgebrock.github.io/talks/sleeping-with-the-enemy/
- From Quora: how to learn django -> http://www.quora.com/How-would-learning-Django-change-a-Rails-developers-view-of-Rails -> http://georgebrock.github.io/talks/sleeping-with-the-enemy/
- Comparison on Django and Rails, but not exactly a comparison. It shows how Django and Rails solve familiar problems by different approach, and results in different framework design.
- http://blog.eddie.com.tw/2011/10/19/django-model-to-template/
Google: virtualenvwapper
Linux下使用Virtualenv搭建Django开发环境 shows how to use pip freeze to rebuild the python environment in development, soon or later in future.
pip freeze > prj.txt
pip freeze -r prj.txt
搭建基于virtualenv的python 2.7开发环境 - python shows how to upgrade to python 2.7 from 2.6. I might do this to upgrade to 3.3 from Pi's 3.2 also.
或許我應問得更直接: Google: Raspberry python3.3 django
Django 1.5, Python 3.3, and Virtual Environments runs Fedora 17 which ships with Python 3.2, Python 3.3 had to be installed from source. The author installed it into his home .local directory. Then, he used a virtual envirnment to install Django 1.5.
http://pydanny.com/experiences-with-django-python3.html
Google suggests me to search with "raspberry pi django nginx"
Google: raspberry pi django nginx
The 2nd link Setting Up Django On a Raspberry Pi
What is the suggested project structure with virtualenv? (Should I place my django projects inside the virtualenv created folder? Or should I keep my projects away from the virtualenv folder? Does virtualenv affects how I structure my folders comparing to not using it?)
Google: virtualenv project structure
""I never place files inside the virtualenv directory. Virtualenv need have no impact on your project structure; just activate the virtualenv (or use its bin/python), and work on your files wherever you'd have them anyway. – Carl Meyer Nov 23 '09 at 20:31""
there's no requirement to locate your application within a virtualenv directory. For example, you might have a project where you have multiple applications using the same virtualenv.
ref:
- http://stackoverflow.com/questions/1783146/where-in-a-virtualenv-does-my-code-go
- http://stackoverflow.com/questions/17837723/django-virtualenv-layout
Should I use generic foreign key, and how?
One table for diff type of category products
- http://stackoverflow.com/questions/3712688/creation-of-dynamic-model-fields-in-django/3713490#371349
Creation of dynamic model fields (dynamic attributes)
Django self-referential foreign key
access from the shell: https://docs.djangoproject.com/en/dev/topics/db/models/ https://docs.djangoproject.com/en/dev/topics/db/queries/ from django.db import models
from product.models import * help(Topic)
t = Topic.objects.all() type(t)
t1 = Topic.objects.get(pk=1) type(t1)
t1.source_set.count() # -> 16
Reuse "Material" info in pickup table
"Material" is a table column in the pickup table. The value of it maybe "cow skin", or "cow skin, plastic".
In order to min the data redundance, and save typing and free from typo, I am considering to reuse it.
That is, there are 2 solutions:
- I create a "materials" table, and make it in many-to-many relationship to "pickup" table.
- I make it a generic class, and then bind it to "pickup" table.
For 2:
For 1:
Google: Django tagging
- https://www.djangopackages.com/packages/p/django-taggit/
- keyword cloud (from: Google: ubuntu memcached django)
- https://godjango.com/33-tagging-with-django-taggit/
Google: django comment
But not shown in the admin interface. Google: django comment in admin http://stackoverflow.com/questions/4125022/how-to-display-comments-in-django-admin http://stackoverflow.com/questions/15165009/form-in-django-admin-for-notes-or-comments-on-models
image, gallery, media
- https://www.djangopackages.com/search/?q=image
- https://www.djangopackages.com/grids/g/gallery/
- https://github.com/stefanfoulis/django-filer (from: http://djangosuit.com)
Google: should I use south in django 1.7
- https://realpython.com/blog/python/django-migrations-a-primer/
- http://treyhunner.com/2014/03/migrating-to-django-1-dot-7/
to reset the migration, run zero
with migrate
./manage.py migrate <app name> zero
Google: django fixture | django initial database
- https://docs.djangoproject.com/en/dev/howto/initial-data/
- https://github.com/alex/django-fixture-generator
django-autocomplete-light
- https://www.youtube.com/watch?v=fJIHiqWKUXI
- http://django-autocomplete-light.readthedocs.org/en/latest/
- https://github.com/yourlabs/django-autocomplete-light/tree/master
- https://github.com/yourlabs/django-autocomplete-light/tree/master/test_project/non_admin
Google: django admin 2
Django bulid a blog
Django jquery Google: django jquery
Chart
Google: django markdown django_markdown https://github.com/klen/django_markdown Building a blog with Django1.7 in 16 mins
Render
Template
I have a queryset of Product Topic. Topics can be group by its status.
How can I display a group one after one in Django template?
Google: how to render queryset group by category in django template?
Django deployment
- http://django-china.cn/topic/360/ 基于 nginx + uwsgi + virtualenv 简单的部署 Django 应用
- https://github.com/imelucifer/MyNote/blob/master/django/django%2Buwsgi%2Bnginx%2Bcentos%E9%83%A8%E7%BD%B2.md 使用vps部署django:uwsgi+nginx
- http://lightbird.net/dbe/
Price in Python https://github.com/mirumee/prices (from: https://www.djangopackages.com/packages/p/django-images/) https://github.com/mirumee/django-prices (from: https://www.djangopackages.com/packages/p/django-images/)
Maybe useful
[利用 Django 与 jQuery 回创建电子表格应用程序] http://www.verydemo.com/demo_c110_i5114.html
[利用 Django admin 完成更多任务] http://www.verydemo.com/demo_c288_i69887.html
https://github.com/phalt/DjangoPi A one-click Django installer for Raspberry pi.
http://xmodulo.com/2012/11/how-to-view-list-of-mysql-users-and-their-privileges.html
http://xmodulo.com/2013/04/how-to-fix-apt-get-update-error-on-ubuntu.html
实例详解Django的 select_related 和 prefetch_related 函数对 QuerySet 查询的优化(三)
Starting a Django 1.6 Project the Right Way (from: http://blog.jobbole.com/53346/)
Google:productive infographic http://blog.visual.ly/10-infographics-to-help-your-productivity/
Google: rails cms http://designzum.com/2014/05/24/12-best-free-premium-wordpress-theme-frameworks-2014/ (from: http://designzum.com/2014/02/10/best-ruby-on-rails-content-management-systems-cms/, from Google: rails cms)