rjango icon indicating copy to clipboard operation
rjango copied to clipboard

Update the setup documentation

Open sourabhtk37 opened this issue 7 years ago • 3 comments

I was getting error while setting up the project . Please , update about .env file in the readme and nodejs version in dependency file.

sourabhtk37 avatar Nov 04 '17 13:11 sourabhtk37

@sourabhtk37 thanks for opening this issue.

We should also update the docs on the database

ncrmro avatar Nov 04 '17 13:11 ncrmro

We should also update the docs on the database

Yeah.

django.db.utils.ProgrammingError: permission denied to create extension "pg_trgm" HINT: Must be superuser to create this extension.

So the user have to be given super user access. Why though?

sourabhtk37 avatar Nov 04 '17 16:11 sourabhtk37

@sourabhtk37 this is used for the autocomplete full text search there a few postgres extensions that need to be manually enabled, Trigrams and also hstore.

You can see the trigram extension on the first polls app migration.

from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
from django.contrib.postgres.operations import TrigramExtension


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        TrigramExtension(),
...

I would say the easiest thing here would be to clarify that step in documentation. I didn't realise my local dev environment is using my personal postgres account which is an admin.

ncrmro avatar Nov 05 '17 04:11 ncrmro