mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-04-03 16:34:22 +03:00
Use domain_name variable for Site object
This commit is contained in:
parent
0914c7a923
commit
c01b4a2f9a
|
@ -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