Django community: Django links RSS
This page, updated regularly, aggregates Django links from the Django community.
-
WebFraction
One of the most popular django hosting in the industry Application memory is 256MB (upgradable) You can host unlimited ... -
eApps
eApps makes Django hosting easy. It is available as a one click installable application in the eApps hosting environment. ... -
RXName
1000 MB disk space 30 mailboxes 3 Domains Traffic unlimited Support Django 1.3, Python 2.5 Support mod_python, mod_wsgi ... -
Stable
They accept subscriptions for their service currently -
DjangoEurope
According to DjangoEurope, Customers from Europe will experience faster page loading with DjangoEurope.com than with a web hoster ... -
Gondor
Gondor is complete django hosting provider. They support variety of django technologies in terms of apps such as if ... -
DjangoDomain
- 99.9% network uptime - 15MB to 2000MB storage - 1GB to 200GB data transfer - Suits Personal or Business ... -
DjangoZoom
You can deploy your projects with web based client instead of pushing from command line. You can request invitation they ... -
Tinyflock
Private Beta Cloud django hosting with 10 MB shared database and 1 http server process -
RX-Name
1000 MB disk space 30 mailboxes 3 Domains Traffic unlimited Support Django 1.3, Python 2.5 Support mod_python, mod_wsgi for sites ... -
Heroku
Cloud application platform python django supported. -
Mochahost
Django support for (Business and Mocha plan) UNLIMITED mysql Databases Python mod_python support (ver 2.4 for SoHo, ver ... -
HelioHost
HelioHost is a free web hosting company that provides most of the functions you would expect in a paid ... -
WebFaction
One of the most popular django hosting in the industry Application memory is 256MB (upgradable) You can host unlimited ... -
A2Hosting
A2 Hosting offers Django on Linux Web Hosting packages! They have nice wiki and tutorials about using django in ... -
DotCloud
Dotcloud provides free django cloud hosting. -
ShellMix
They provide free shell account that you can use for your django applications. -
Stackable
Grow your Django site with instant scalability and automatic load balancing. Take your Django site all the way to 16GB ... -
Djangofoo
Djangofoo hosting supports 500Mb file storage 100Mb database storage Importing code from SVN or GIT current price is £5.99/month -
Ambitious Lemon
They are providing free web hosting to non-profits, students and teachers, artists, and programmers django web hosting is available -
Google App Engine
Google App Engine is another free django hosting provider. -
Bitnami
BitNami DjangoStack greatly simplifies the development and deployment of Django applications. It includes ready-to-run versions of Apache, MySQL, PostgreSQL, ... -
List of 50 Social Sites for creating Smart Business Presence Online
If your business limits its online presence to advertising banners and blogging, it’s missing out. The Internet provides powerful networking opportunities that allow users to effectively target their audience by logging on to Social Media sites like LinkedIn, Digg and more. Take advantage of these tools by asserting your company’s presence online and reaching more potential customers, business partners and employees. List of Smart Social-Media / Social-Bookmarking Sites Share your favorite Social media sites on the Web with potential clients and business partners by commenting on, uploading and ranking different newsworthy articles. You can also create a member profile that directs traffic back to your company’s Web site. Reddit: Upload stories and articles on reddit to drive traffic to your site or blog. Submit items often so that you’ll gain a more loyal following and increase your presence on the site. Digg: Digg has a huge following online because of its optimum usability. Visitors can submit and browse articles in categories like technology, business, entertainment, sports and more. Del.icio.us: Social bookmark your way to better business with sites like del.icio.us, which invite users to organize and publicize interesting items through tagging and networking. StumbleUpon: You’ll open your online presence up … -
让Django根据自定义属性排序
刚开始开发博客的时候,本来想让博客按照阅读量,评论量,赞成数等属性,根据某个计算公式计算结果来排序,但后来因为在Django的ORM里不知道怎么写,又不想混杂一些SQL语句,所以一直没有实现。到了现在,想想通过ORM来实现,还是无法做到的。因为Django的QUERYSET里,根据几个属性的计算(如:分别求出各个属性值的比例,再求和,最后按照比例再除法或更复杂的计算)结果去filter,或order by,是无法做到的。现在想想,如果在models里,建立一个子def(自定义属性),专门负责几个内置属性的计算,返回结果。这样就相当是models实例的一个属性了,然后再在QUERYSET里排序,不就好了吗?可是仔细想想,还是不行,这样只是降低QUERYSET语句写法的复杂性,最后的order by还是取不到实例的子def(自定义属性)的返回值。最终还是回到原点了。最后,想到一个不是很地道的办法,那就是使用原生python的sorted()函数:object_list = sorted(Blog.objects.all(), key=lambda blog: blog.cir_val,reverse=True)这样就解决了。models里需要先定义一个自定义属性cir_val,根据某个算法把几个内置属性组合结果算出来。形如:def cir_val(self): return self.browse*1/5+self.comment*2/5+self.zan*3/5一时的思维掠过,我也不知道自己在写什么,总之解决了我一年来,来不及想的问题,只是不知道怎么表达问题罢了。 -
让Nginx处理Django的静态文件
上次的《Django静态文件的配置》,说的主要是针对开发环境的配置。在开发中难免要处理网站的css js image等静态文件,不用顾及性能,安全的问题,交给Django内部处理好了;但如果正式部署到服务器的时候,这样的配置就会影响到性能和安全性了,这时怎么办呢?嗯,交给Nginx处理好了。假如项目的目录结构如下:myproject--app1--app2--media----css----js----images--templates--setting.py--urls.py--manage.py--...解释:通常项目文件夹下有若干个app应用,如app1 app2我们把静态文件方在项目的根目录下,起名为media(这个可以任意起名,但顾名思义,起个明了的名字),media文件夹里分别新建 css,js,images文件夹,用他们放置样式,脚本,图片等用途。剩下的就是Django生成的settings urls manage配置文件了。这回计划在开发环境中,使用Django处理静态文件,而正式部署后使用Nginx来处理他们。首先在urls.py文件中最后加上以上代码if settings.DEBUG: urlpatterns += patterns('', url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(settings.SITE_ROOT,'media')},name="media"), )具体的意思是:如果是开发环境,让Django的django.views.static.serve来处理,而正式部署时,Django不做任何事情,让Nginx来处理,后面会讲到Nginx的配置问题。settings.DEBUG其实就是开发和部署的标示变量,部署的时候在settings里给DEBUG变量赋值False,让Django Templates屏蔽一切Debug;赋值True时,相反,是开启Debug,开发中出错以便查看一些错误信息。开发环境中,settings的配置如下:import osDEBUG = TrueTEMPLATE_DEBUG = DEBUGSITE_ROOT=os.path.abspath(os.path.dirname(__file__))MEDIA_ROOT = os.path.join(SITE_ROOT,'media')MEDIA_URL = '/media/'正式部署的时候,把变量DEBUG改成False即可。正式部署的时候,Nginx的静态文件配置很关键,先看代码:location ~ ^/media/ { root /home/http/django_project/myproject/; expires 24h; access_log off; }如项目实际路径是:/home/http/django_project/myproject/,那以上的配置代码会到 /home/http/django_project/myproject/ 路径找 media文件夹。一两点值得注意的:1 刚开始一直没有配置成功,原因是root的没配置正确,写成 root /home/http/django_project/myproject/media/ 了, 导致Nginx老找不到media文件夹。2 还有一个值得注意的是:location ~ ^/media/ 要和实际的静态文件夹对应哦,如果写成location ~ ^/static/ 那肯定不行的(完)晚了,洗洗睡了。