我想在我的django项目的子域基于我的模型。举个例子:
class blog(models.Model):
title = models.CharField(max_length=50)
...
例如,我想创建一个名为django的博客,并通过url访问它
django.localhost:8000/
我看过django subdomains,但不知道它是否适合我,也不知道如何配置它(ROOT\uurlconf、SUBDOMAIN\uurlconf、url等等)。
如果需要的话,我对任何图书馆都开放。
我使用python3.4和django1.8
目前没有回答
相关问题 更多 >
编程相关推荐