mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
Merge pull request #13 from Bouke/patch-7
Use domain_name variable for Site object
This commit is contained in:
commit
8def034acf
|
@ -28,6 +28,6 @@ Run this script: (TODO - automate this)
|
|||
|
||||
from django.contrib.sites.models import Site
|
||||
site = Site.objects.get()
|
||||
site.domain = "{{cookiecutter.project_name}}.com"
|
||||
site.domain = "{{cookiecutter.domain_name}}"
|
||||
site.name = "{{cookiecutter.project_name}}"
|
||||
site.save()
|
||||
|
|
Loading…
Reference in New Issue
Block a user