1

I have django + postgresql web site.

I want publish them to Azure web site.

How I can sync db, or create postgresql database in azure web site?

If I can do it, what I need write in settings file?

DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'xxx',
            'USER': 'xxx',
            'PASSWORD': 'xxx',
            'HOST': 'xxx',
            #'PORT': 'xxx',
        }
    }
1
  • there is no build-in postgre in Azure App Service. you will have to point your app to a remote database. Commented Dec 30, 2015 at 21:58

1 Answer 1

2

You can publish your app to Azure App Service (web apps, formerly web sites, is within the App Service). However, you won't be able to install postgres there. Instead, you'll need to install that to a VM (or use a 3rd-party postgresql hoster).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.