Advertisement
bAngelov

PostgreSQL Function Live Template

Sep 24th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.01 KB | None | 0 0
  1. <template name="postgres" value="DATABASES = {&#10;    'default': {&#10;        'ENGINE': 'django.db.backends.postgresql_psycopg2',&#10;        'NAME': '$DB_NAME$',&#10;        'USER': '$DB_USER$',&#10;        'PASSWORD': '$DB_BASSWORD$',&#10;        'HOST': '$DB_HOST$',&#10;        'PORT': '$DB_PORT$',&#10;    }&#10;}" description="Postgres in Settings" toReformat="false" toShortenFQNames="true">
  2.   <variable name="DB_NAME" expression="&quot;postgres&quot;" defaultValue="postgrgs" alwaysStopAt="true" />
  3.   <variable name="DB_USER" expression="&quot;postgres-user&quot;" defaultValue="postgres-use" alwaysStopAt="true" />
  4.   <variable name="DB_BASSWORD" expression="&quot;password&quot;" defaultValue="password" alwaysStopAt="true" />
  5.   <variable name="DB_HOST" expression="&quot;localhost&quot;" defaultValue="localhost" alwaysStopAt="true" />
  6.   <variable name="DB_PORT" expression="&quot;5432&quot;" defaultValue="5432" alwaysStopAt="true" />
  7.   <context>
  8.     <option name="Django" value="true" />
  9.   </context>
  10. </template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement