mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 21:14:03 +03:00
adding manage.py to scripts
This commit is contained in:
parent
969cc4d5a8
commit
0102b8a0ee
|
@ -4,7 +4,6 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import {{ cookiecutter.project_name }}
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
@ -25,4 +24,5 @@ setup(
|
||||||
install_requires=[
|
install_requires=[
|
||||||
],
|
],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
scripts=['manage.py'],
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{cookiecutter.project_name}}.config.settings")
|
||||||
os.environ.setdefault("DJANGO_CONFIGURATION", "Local")
|
os.environ.setdefault("DJANGO_CONFIGURATION", "Local")
|
||||||
|
|
||||||
from configurations.management import execute_from_command_line
|
from configurations.management import execute_from_command_line
|
||||||
|
|
Loading…
Reference in New Issue
Block a user