mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 19:14:03 +03:00
28 lines
1.5 KiB
ReStructuredText
28 lines
1.5 KiB
ReStructuredText
FAQ
|
|
===
|
|
|
|
.. index:: FAQ, 12-Factor App
|
|
|
|
Why is there a django.contrib.sites directory in Cookiecutter Django?
|
|
---------------------------------------------------------------------
|
|
|
|
It is there to add a migration so you don't have to manually change the ``sites.Site`` record from ``example.com`` to whatever your domain is. Instead, your ``{{cookiecutter.domain_name}}`` and {{cookiecutter.project_name}} value is placed by **Cookiecutter** in the domain and name fields respectively.
|
|
|
|
See `0003_set_site_domain_and_name.py`_.
|
|
|
|
.. _`0003_set_site_domain_and_name.py`: https://github.com/cookiecutter/cookiecutter-django/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/contrib/sites/migrations/0003_set_site_domain_and_name.py
|
|
|
|
|
|
Why aren't you using just one configuration file (12-Factor App)
|
|
----------------------------------------------------------------------
|
|
|
|
TODO
|
|
.. TODO
|
|
|
|
Why doesn't this follow the layout from Two Scoops of Django?
|
|
-------------------------------------------------------------
|
|
|
|
You may notice that some elements of this project do not exactly match what we describe in chapter 3 of `Two Scoops of Django 1.11`_. The reason for that is this project, amongst other things, serves as a test bed for trying out new ideas and concepts. Sometimes they work, sometimes they don't, but the end result is that it won't necessarily match precisely what is described in the book I co-authored.
|
|
|
|
.. _Two Scoops of Django 1.11: https://www.feldroy.com/collections/django/products/two-scoops-of-django-1-11
|