2019-06-06 12:45:43 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project version="4">
|
2020-02-03 17:29:20 +03:00
|
|
|
{%- if cookiecutter.use_docker == 'n' %}
|
|
|
|
<component name="DjangoConsoleOptions"
|
|
|
|
custom-start-script="import sys; print('Python %s on %s' % (sys.version, sys.platform)) import django; print('Django %s' % django.get_version()) import os sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) if 'setup' in dir(django): django.setup() import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)"
|
|
|
|
module-name="{{ cookiecutter.project_slug }}" is-module-sdk="true">
|
|
|
|
</component>
|
|
|
|
{%- elif cookiecutter.use_celery == 'y' %}
|
2019-06-06 12:45:43 +03:00
|
|
|
<component name="DjangoConsoleOptions"
|
|
|
|
custom-start-script="import sys; print('Python %s on %s' % (sys.version, sys.platform)) import django; print('Django %s' % django.get_version()) import os os.environ.setdefault("DATABASE_URL","postgres://{}:{}@{}:{}/{}".format(os.environ['POSTGRES_USER'], os.environ['POSTGRES_PASSWORD'], os.environ['POSTGRES_HOST'], os.environ['POSTGRES_PORT'], os.environ['POSTGRES_DB'])) os.environ.setdefault("CELERY_BROKER_URL", os.environ['REDIS_URL']) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) if 'setup' in dir(django): django.setup() import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)"
|
|
|
|
module-name="{{ cookiecutter.project_slug }}" is-module-sdk="true">
|
|
|
|
</component>
|
|
|
|
{%- else %}
|
|
|
|
<component name="DjangoConsoleOptions"
|
|
|
|
custom-start-script="import sys; print('Python %s on %s' % (sys.version, sys.platform)) import django; print('Django %s' % django.get_version()) import os os.environ.setdefault("DATABASE_URL","postgres://{}:{}@{}:{}/{}".format(os.environ['POSTGRES_USER'], os.environ['POSTGRES_PASSWORD'], os.environ['POSTGRES_HOST'], os.environ['POSTGRES_PORT'], os.environ['POSTGRES_DB'])) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) if 'setup' in dir(django): django.setup() import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)"
|
|
|
|
module-name="{{ cookiecutter.project_slug }}" is-module-sdk="true">
|
|
|
|
</component>
|
|
|
|
{%- endif %}
|
|
|
|
</project>
|