Heroku의 MongoDB에서 장고를 사용하고 싶습니다. 그들의 문서에서 Getting Started with Django on Heroku/Cedar : Postgres Database Config은 DATABASE_URL을 사용하기 위해 settings.py에 몇 가지 코드가 추가되었다고 말합니다. 이 문제를 방지 할 수있는 방법이 있습니까? DATA
django-nonrel 및 django-mongodb 엔진을 사용하고 있습니다. 엔진의 documentation에는 django의 메타 옵션을 지원한다고 나와 있습니다. 내가 어떤 오류가 발생하지 않고 중복을 만들 수 있기 때문에 class Bottler(models.Model):
location = models.CharField(max_len
이렇게 장고/MongoDB를 설치하고 구성했습니다! 설치 PIP VIRTUALENV 소스에 MyProject/빈/ 가 HG + HTTPS를 설치 픽처 인 픽처 활성화 : HG + HTTPS를 설치 PIP //bitbucket.org/wkornewald/django-nonrel : //bitbucket.org/wkornewald/djangotoolbox 자식
Django MongoDB Engine과 함께 contrib.auth.models.User 또는 contrib.auth를 사용할 수 있습니까? from django.contrib.auth.models import User
a = User.objects.create_user(username='foo', email='[email protected]',