Skip to content

Commit

Permalink
minor fixes in database urls and gettext_lazy
Browse files Browse the repository at this point in the history
Signed-off-by: Raghav Sharma <[email protected]>
  • Loading branch information
raghavTinker committed Feb 2, 2022
1 parent cda984d commit 28f73bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# For development
SECRET_KEY=<your-secret-key>
DEBUG=True

# For production
EMAIL_HOST_USER=<host-email>
EMAIL_HOST_PASSWORD=<host-password>
# If GCloud Storage is being used:
GS_BUCKET_NAME=<bucket-name>
GS_BUCKET_NAME=<bucket-name>
DATABASE_URL=/app/officialWebsite/database/db.sqlite3
2 changes: 1 addition & 1 deletion officialWebsite/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
"NAME": env("DATABASE_URL", default=BASE_DIR / "db.sqlite3"),
}
}

Expand Down
2 changes: 1 addition & 1 deletion officialWebsite/users/managers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib.auth.base_user import BaseUserManager
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


class UserManager(BaseUserManager):
Expand Down

0 comments on commit 28f73bc

Please sign in to comment.