rjango
rjango copied to clipboard
Update the setup documentation
I was getting error while setting up the project . Please , update about .env
file in the readme and nodejs version in dependency file.
@sourabhtk37 thanks for opening this issue.
We should also update the docs on the database
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 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.